msm-pcm-routing-v2.c 1.2 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/pcm_params.h>
  21. #include <sound/hwdep.h>
  22. #include <audio/sound/audio_effects.h>
  23. #include <dsp/msm-dts-srs-tm-config.h>
  24. #include <dsp/q6voice.h>
  25. #include <dsp/q6adm-v2.h>
  26. #include <dsp/q6asm-v2.h>
  27. #include <dsp/q6afe-v2.h>
  28. #include <dsp/q6lsm.h>
  29. #include <dsp/q6core.h>
  30. #include <dsp/q6common.h>
  31. #include <dsp/audio_cal_utils.h>
  32. #include "msm-pcm-routing-v2.h"
  33. #include "msm-pcm-routing-devdep.h"
  34. #include "msm-qti-pp-config.h"
  35. #include "msm-dolby-dap-config.h"
  36. #include "msm-ds2-dap-config.h"
  37. #define DRV_NAME "msm-pcm-routing-v2"
  38. #ifndef CONFIG_DOLBY_DAP
  39. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  40. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  41. #endif
  42. #ifndef CONFIG_DOLBY_DS2
  43. #undef DS2_ADM_COPP_TOPOLOGY_ID
  44. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  45. #endif
  46. #define STRING_LENGTH_OF_INT 12
  47. #define MAX_USR_CTRL_CNT 128
  48. static struct mutex routing_lock;
  49. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  50. static int fm_switch_enable;
  51. static int hfp_switch_enable;
  52. static int a2dp_switch_enable;
  53. static int sco_switch_enable;
  54. #ifndef CONFIG_MI2S_DISABLE
  55. static int int0_mi2s_switch_enable;
  56. static int int4_mi2s_switch_enable;
  57. static int pri_mi2s_switch_enable;
  58. static int sec_mi2s_switch_enable;
  59. static int tert_mi2s_switch_enable;
  60. static int quat_mi2s_switch_enable;
  61. static int quin_mi2s_switch_enable;
  62. static int sen_mi2s_switch_enable;
  63. #endif
  64. static int fm_pcmrx_switch_enable;
  65. static int usb_switch_enable;
  66. static int lsm_port_index[MAX_LSM_SESSIONS];
  67. static int slim0_rx_aanc_fb_port;
  68. static int msm_route_ec_ref_rx;
  69. static int msm_ec_ref_ch = 4;
  70. static int msm_ec_ref_ch_downmixed = 4;
  71. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  72. static int msm_ec_ref_sampling_rate = 48000;
  73. static uint32_t voc_session_id = ALL_SESSION_VSID;
  74. static int msm_route_ext_ec_ref;
  75. static bool is_custom_stereo_on;
  76. static bool is_ds2_on;
  77. static bool ffecns_freeze_event;
  78. static bool swap_ch;
  79. static bool hifi_filter_enabled;
  80. static int aanc_level;
  81. static int num_app_cfg_types;
  82. static int msm_ec_ref_port_id;
  83. static int afe_loopback_tx_port_index;
  84. static int afe_loopback_tx_port_id = -1;
  85. #define WEIGHT_0_DB 0x4000
  86. /* all the FEs which can support channel mixer */
  87. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  88. /* all the FES which can support channel mixer for bidirection */
  89. static struct msm_pcm_channel_mixer
  90. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  91. /* input BE for each FE */
  92. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  93. enum {
  94. MADNONE,
  95. MADAUDIO,
  96. MADBEACON,
  97. MADULTRASOUND,
  98. MADSWAUDIO,
  99. };
  100. #define ADM_LSM_PORT_INDEX 9
  101. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  102. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  103. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  104. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  105. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  106. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  107. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  108. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  109. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  110. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  111. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  112. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  113. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  114. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  115. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  116. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  117. #define LSM_FUNCTION_TEXT "LSM Function"
  118. static const char * const lsm_port_text[] = {
  119. "None",
  120. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  121. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  122. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  123. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  124. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  125. TERT_TDM_TX_TEXT
  126. };
  127. struct msm_pcm_route_bdai_pp_params {
  128. u16 port_id; /* AFE port ID */
  129. unsigned long pp_params_config;
  130. bool mute_on;
  131. int latency;
  132. };
  133. static struct msm_pcm_route_bdai_pp_params
  134. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  135. {HDMI_RX, 0, 0, 0},
  136. {HDMI_RX_MS, 0, 0, 0},
  137. {DISPLAY_PORT_RX, 0, 0, 0},
  138. };
  139. /*
  140. * The be_dai_name_table is passed to HAL so that it can specify the
  141. * BE ID for the BE it wants to enable based on the name. Thus there
  142. * is a matching table and structure in HAL that need to be updated
  143. * if any changes to these are made.
  144. */
  145. struct msm_pcm_route_bdai_name {
  146. unsigned int be_id;
  147. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  148. };
  149. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  150. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  151. int fe_id);
  152. static void msm_routing_load_topology(size_t data_size, void *data);
  153. static void msm_routing_unload_topology(uint32_t topology_id);
  154. #ifndef SND_PCM_ADD_VOLUME_CTL
  155. static int pcm_volume_ctl_info(struct snd_kcontrol *kcontrol,
  156. struct snd_ctl_elem_info *uinfo)
  157. {
  158. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  159. uinfo->count = 1;
  160. uinfo->value.integer.min = 0;
  161. uinfo->value.integer.max = 0x2000;
  162. return 0;
  163. }
  164. static void pcm_volume_ctl_private_free(struct snd_kcontrol *kcontrol)
  165. {
  166. struct snd_pcm_volume *info = snd_kcontrol_chip(kcontrol);
  167. kfree(info);
  168. }
  169. /**
  170. * snd_pcm_add_volume_ctls - create volume control elements
  171. * @pcm: the assigned PCM instance
  172. * @stream: stream direction
  173. * @max_length: the max length of the volume parameter of stream
  174. * @private_value: the value passed to each kcontrol's private_value field
  175. * @info_ret: store struct snd_pcm_volume instance if non-NULL
  176. *
  177. * Create volume control elements assigned to the given PCM stream(s).
  178. * Returns zero if succeed, or a negative error value.
  179. */
  180. int snd_pcm_add_volume_ctls(struct snd_pcm *pcm, int stream,
  181. const struct snd_pcm_volume_elem *volume,
  182. int max_length,
  183. unsigned long private_value,
  184. struct snd_pcm_volume **info_ret)
  185. {
  186. int err = 0;
  187. int size = 0;
  188. struct snd_pcm_volume *info;
  189. struct snd_kcontrol_new knew = {
  190. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  191. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  192. SNDRV_CTL_ELEM_ACCESS_READWRITE,
  193. .info = pcm_volume_ctl_info,
  194. };
  195. info = kzalloc(sizeof(*info), GFP_KERNEL);
  196. if (!info)
  197. return -ENOMEM;
  198. info->pcm = pcm;
  199. info->stream = stream;
  200. info->volume = volume;
  201. info->max_length = max_length;
  202. size = sizeof("Playback ") + sizeof(" Volume") +
  203. STRING_LENGTH_OF_INT*sizeof(char) + 1;
  204. knew.name = kzalloc(size, GFP_KERNEL);
  205. if (!knew.name) {
  206. kfree(info);
  207. return -ENOMEM;
  208. }
  209. if (stream == SNDRV_PCM_STREAM_PLAYBACK)
  210. snprintf((char *)knew.name, size, "%s %d %s",
  211. "Playback", pcm->device, "Volume");
  212. else
  213. snprintf((char *)knew.name, size, "%s %d %s",
  214. "Capture", pcm->device, "Volume");
  215. knew.device = pcm->device;
  216. knew.count = pcm->streams[stream].substream_count;
  217. knew.private_value = private_value;
  218. info->kctl = snd_ctl_new1(&knew, info);
  219. if (!info->kctl) {
  220. kfree(info);
  221. kfree(knew.name);
  222. return -ENOMEM;
  223. }
  224. info->kctl->private_free = pcm_volume_ctl_private_free;
  225. err = snd_ctl_add(pcm->card, info->kctl);
  226. if (err < 0) {
  227. kfree(info);
  228. kfree(knew.name);
  229. return -ENOMEM;
  230. }
  231. if (info_ret)
  232. *info_ret = info;
  233. kfree(knew.name);
  234. return 0;
  235. }
  236. EXPORT_SYMBOL(snd_pcm_add_volume_ctls);
  237. #endif
  238. #ifndef SND_PCM_ADD_USR_CTL
  239. static int pcm_usr_ctl_info(struct snd_kcontrol *kcontrol,
  240. struct snd_ctl_elem_info *uinfo)
  241. {
  242. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  243. uinfo->count = MAX_USR_CTRL_CNT;
  244. uinfo->value.integer.min = 0;
  245. uinfo->value.integer.max = INT_MAX;
  246. return 0;
  247. }
  248. static void pcm_usr_ctl_private_free(struct snd_kcontrol *kcontrol)
  249. {
  250. struct snd_pcm_usr *info = snd_kcontrol_chip(kcontrol);
  251. kfree(info);
  252. }
  253. /**
  254. * snd_pcm_add_usr_ctls - create user control elements
  255. * @pcm: the assigned PCM instance
  256. * @stream: stream direction
  257. * @max_length: the max length of the user parameter of stream
  258. * @private_value: the value passed to each kcontrol's private_value field
  259. * @info_ret: store struct snd_pcm_usr instance if non-NULL
  260. *
  261. * Create usr control elements assigned to the given PCM stream(s).
  262. * Returns zero if succeed, or a negative error value.
  263. */
  264. int snd_pcm_add_usr_ctls(struct snd_pcm *pcm, int stream,
  265. const struct snd_pcm_usr_elem *usr,
  266. int max_length, int max_kctrl_str_len,
  267. unsigned long private_value,
  268. struct snd_pcm_usr **info_ret)
  269. {
  270. int err = 0;
  271. char *buf = NULL;
  272. struct snd_pcm_usr *info;
  273. struct snd_kcontrol_new knew = {
  274. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  275. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  276. .info = pcm_usr_ctl_info,
  277. };
  278. info = kzalloc(sizeof(*info), GFP_KERNEL);
  279. if (!info)
  280. return -ENOMEM;
  281. info->pcm = pcm;
  282. info->stream = stream;
  283. info->usr = usr;
  284. info->max_length = max_length;
  285. buf = kzalloc(max_kctrl_str_len, GFP_KERNEL);
  286. if (!buf) {
  287. pr_err("%s: buffer allocation failed\n", __func__);
  288. kfree(info);
  289. return -ENOMEM;
  290. }
  291. knew.name = buf;
  292. if (stream == SNDRV_PCM_STREAM_PLAYBACK)
  293. snprintf(buf, max_kctrl_str_len, "%s %d %s",
  294. "Playback", pcm->device, "User kcontrol");
  295. else
  296. snprintf(buf, max_kctrl_str_len, "%s %d %s",
  297. "Capture", pcm->device, "User kcontrol");
  298. knew.device = pcm->device;
  299. knew.count = pcm->streams[stream].substream_count;
  300. knew.private_value = private_value;
  301. info->kctl = snd_ctl_new1(&knew, info);
  302. if (!info->kctl) {
  303. kfree(info);
  304. kfree(knew.name);
  305. pr_err("%s: snd_ctl_new failed\n", __func__);
  306. return -ENOMEM;
  307. }
  308. info->kctl->private_free = pcm_usr_ctl_private_free;
  309. err = snd_ctl_add(pcm->card, info->kctl);
  310. if (err < 0) {
  311. kfree(info);
  312. kfree(knew.name);
  313. pr_err("%s: snd_ctl_add failed:%d\n", __func__,
  314. err);
  315. return -ENOMEM;
  316. }
  317. if (info_ret)
  318. *info_ret = info;
  319. kfree(knew.name);
  320. return 0;
  321. }
  322. EXPORT_SYMBOL(snd_pcm_add_usr_ctls);
  323. #endif
  324. static int msm_routing_get_bit_width(unsigned int format)
  325. {
  326. int bit_width;
  327. switch (format) {
  328. case SNDRV_PCM_FORMAT_S32_LE:
  329. bit_width = 32;
  330. break;
  331. case SNDRV_PCM_FORMAT_S24_LE:
  332. case SNDRV_PCM_FORMAT_S24_3LE:
  333. bit_width = 24;
  334. break;
  335. case SNDRV_PCM_FORMAT_S16_LE:
  336. default:
  337. bit_width = 16;
  338. }
  339. return bit_width;
  340. }
  341. static bool msm_is_resample_needed(int input_sr, int output_sr)
  342. {
  343. bool rc = false;
  344. if (input_sr != output_sr)
  345. rc = true;
  346. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  347. (rc ? "oh yes" : "not really"),
  348. input_sr, output_sr);
  349. return rc;
  350. }
  351. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  352. int channels)
  353. {
  354. int rc = 0;
  355. switch (topology) {
  356. case SRS_TRUMEDIA_TOPOLOGY_ID:
  357. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  358. msm_dts_srs_tm_init(port_id, copp_idx);
  359. break;
  360. case DS2_ADM_COPP_TOPOLOGY_ID:
  361. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  362. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  363. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  364. is_custom_stereo_on);
  365. if (rc < 0)
  366. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  367. __func__, topology, port_id,
  368. is_custom_stereo_on, rc);
  369. break;
  370. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  371. if (is_ds2_on) {
  372. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  373. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  374. is_custom_stereo_on);
  375. if (rc < 0)
  376. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  377. __func__, topology, port_id, rc);
  378. } else {
  379. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  380. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  381. is_custom_stereo_on);
  382. if (rc < 0)
  383. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  384. __func__, topology, port_id, rc);
  385. }
  386. break;
  387. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  388. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  389. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  390. if (rc < 0)
  391. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  392. __func__, topology, port_id, copp_idx, rc);
  393. break;
  394. default:
  395. /* custom topology specific feature param handlers */
  396. break;
  397. }
  398. }
  399. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  400. {
  401. switch (topology) {
  402. case SRS_TRUMEDIA_TOPOLOGY_ID:
  403. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  404. msm_dts_srs_tm_deinit(port_id);
  405. break;
  406. case DS2_ADM_COPP_TOPOLOGY_ID:
  407. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  408. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  409. msm_ds2_dap_deinit(port_id);
  410. break;
  411. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  412. if (is_ds2_on) {
  413. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  414. msm_ds2_dap_deinit(port_id);
  415. } else {
  416. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  417. msm_dolby_dap_deinit(port_id);
  418. }
  419. break;
  420. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  421. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  422. msm_qti_pp_asphere_deinit(port_id);
  423. break;
  424. default:
  425. /* custom topology specific feature deinit handlers */
  426. break;
  427. }
  428. }
  429. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  430. int path_type, int perf_mode)
  431. {
  432. int itr = 0, rc = 0;
  433. if ((path_type == ADM_PATH_PLAYBACK) &&
  434. (perf_mode == LEGACY_PCM_MODE) &&
  435. is_custom_stereo_on) {
  436. for (itr = 0; itr < payload.num_copps; itr++) {
  437. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  438. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  439. continue;
  440. }
  441. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  442. payload.port_id[itr],
  443. payload.copp_idx[itr],
  444. payload.session_id,
  445. Q14_GAIN_ZERO_POINT_FIVE,
  446. Q14_GAIN_ZERO_POINT_FIVE,
  447. Q14_GAIN_ZERO_POINT_FIVE,
  448. Q14_GAIN_ZERO_POINT_FIVE);
  449. if (rc < 0)
  450. pr_err("%s: err setting custom stereo\n",
  451. __func__);
  452. }
  453. }
  454. }
  455. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  456. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  457. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  458. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  459. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  460. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  461. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  462. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  463. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  464. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  465. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  466. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_AFE_PCM_RX},
  468. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_AFE_PCM_TX},
  470. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_AUXPCM_RX},
  472. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_AUXPCM_TX},
  474. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_VOICE_PLAYBACK_TX},
  476. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_VOICE2_PLAYBACK_TX},
  478. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_INCALL_RECORD_RX},
  480. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_INCALL_RECORD_TX},
  482. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  483. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  484. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  485. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  486. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  487. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  488. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  489. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  490. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  491. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  492. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  493. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  494. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  495. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  496. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  497. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  498. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  499. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  500. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  501. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  502. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  503. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  504. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUAT_MI2S_RX},
  506. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUAT_MI2S_TX},
  508. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_SEC_MI2S_RX},
  510. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_SEC_MI2S_TX},
  512. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_PRI_MI2S_RX},
  514. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_PRI_MI2S_TX},
  516. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_TERT_MI2S_RX},
  518. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_TERT_MI2S_TX},
  520. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_AUDIO_I2S_RX},
  522. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEC_AUXPCM_RX},
  524. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEC_AUXPCM_TX},
  526. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_PRI_SPDIF_RX},
  528. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEC_MI2S_RX_SD1},
  530. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_QUIN_MI2S_RX},
  532. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_QUIN_MI2S_TX},
  534. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SENARY_MI2S_TX},
  536. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_PRI_TDM_RX_0},
  538. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_PRI_TDM_TX_0},
  540. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_PRI_TDM_RX_1},
  542. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_PRI_TDM_TX_1},
  544. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_PRI_TDM_RX_2},
  546. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_PRI_TDM_TX_2},
  548. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_PRI_TDM_RX_3},
  550. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_PRI_TDM_TX_3},
  552. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_PRI_TDM_RX_4},
  554. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_PRI_TDM_TX_4},
  556. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_PRI_TDM_RX_5},
  558. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_PRI_TDM_TX_5},
  560. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_PRI_TDM_RX_6},
  562. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_PRI_TDM_TX_6},
  564. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_PRI_TDM_RX_7},
  566. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_PRI_TDM_TX_7},
  568. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_SEC_TDM_RX_0},
  570. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_SEC_TDM_TX_0},
  572. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_SEC_TDM_RX_1},
  574. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_SEC_TDM_TX_1},
  576. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_SEC_TDM_RX_2},
  578. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_SEC_TDM_TX_2},
  580. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_SEC_TDM_RX_3},
  582. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_SEC_TDM_TX_3},
  584. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_SEC_TDM_RX_4},
  586. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_SEC_TDM_TX_4},
  588. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_SEC_TDM_RX_5},
  590. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_SEC_TDM_TX_5},
  592. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_SEC_TDM_RX_6},
  594. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_SEC_TDM_TX_6},
  596. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_SEC_TDM_RX_7},
  598. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_SEC_TDM_TX_7},
  600. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_TERT_TDM_RX_0},
  602. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_TERT_TDM_TX_0},
  604. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_TERT_TDM_RX_1},
  606. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_TERT_TDM_TX_1},
  608. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_TERT_TDM_RX_2},
  610. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_TERT_TDM_TX_2},
  612. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_TERT_TDM_RX_3},
  614. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_TERT_TDM_TX_3},
  616. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_TERT_TDM_RX_4},
  618. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_TERT_TDM_TX_4},
  620. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_TERT_TDM_RX_5},
  622. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_TERT_TDM_TX_5},
  624. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_TERT_TDM_RX_6},
  626. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_TERT_TDM_TX_6},
  628. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TERT_TDM_RX_7},
  630. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_TERT_TDM_TX_7},
  632. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_QUAT_TDM_RX_0},
  634. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_QUAT_TDM_TX_0},
  636. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_QUAT_TDM_RX_1},
  638. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_QUAT_TDM_TX_1},
  640. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_QUAT_TDM_RX_2},
  642. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_QUAT_TDM_TX_2},
  644. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_QUAT_TDM_RX_3},
  646. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_QUAT_TDM_TX_3},
  648. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_QUAT_TDM_RX_4},
  650. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_QUAT_TDM_TX_4},
  652. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_QUAT_TDM_RX_5},
  654. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_QUAT_TDM_TX_5},
  656. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  657. LPASS_BE_QUAT_TDM_RX_6},
  658. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  659. LPASS_BE_QUAT_TDM_TX_6},
  660. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_QUAT_TDM_RX_7},
  662. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_QUAT_TDM_TX_7},
  664. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_QUIN_TDM_RX_0},
  666. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  667. LPASS_BE_QUIN_TDM_TX_0},
  668. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  669. LPASS_BE_QUIN_TDM_RX_1},
  670. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  671. LPASS_BE_QUIN_TDM_TX_1},
  672. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  673. LPASS_BE_QUIN_TDM_RX_2},
  674. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  675. LPASS_BE_QUIN_TDM_TX_2},
  676. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  677. LPASS_BE_QUIN_TDM_RX_3},
  678. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  679. LPASS_BE_QUIN_TDM_TX_3},
  680. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  681. LPASS_BE_QUIN_TDM_RX_4},
  682. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  683. LPASS_BE_QUIN_TDM_TX_4},
  684. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  685. LPASS_BE_QUIN_TDM_RX_5},
  686. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  687. LPASS_BE_QUIN_TDM_TX_5},
  688. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  689. LPASS_BE_QUIN_TDM_RX_6},
  690. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  691. LPASS_BE_QUIN_TDM_TX_6},
  692. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  693. LPASS_BE_QUIN_TDM_RX_7},
  694. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  695. LPASS_BE_QUIN_TDM_TX_7},
  696. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  697. LPASS_BE_SEN_TDM_RX_0},
  698. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  699. LPASS_BE_SEN_TDM_TX_0},
  700. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  701. LPASS_BE_SEN_TDM_RX_1},
  702. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  703. LPASS_BE_SEN_TDM_TX_1},
  704. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  705. LPASS_BE_SEN_TDM_RX_2},
  706. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  707. LPASS_BE_SEN_TDM_TX_2},
  708. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  709. LPASS_BE_SEN_TDM_RX_3},
  710. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  711. LPASS_BE_SEN_TDM_TX_3},
  712. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  713. LPASS_BE_SEN_TDM_RX_4},
  714. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  715. LPASS_BE_SEN_TDM_TX_4},
  716. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  717. LPASS_BE_SEN_TDM_RX_5},
  718. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  719. LPASS_BE_SEN_TDM_TX_5},
  720. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  721. LPASS_BE_SEN_TDM_RX_6},
  722. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  723. LPASS_BE_SEN_TDM_TX_6},
  724. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  725. LPASS_BE_SEN_TDM_RX_7},
  726. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  727. LPASS_BE_SEN_TDM_TX_7},
  728. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  729. LPASS_BE_INT_BT_A2DP_RX},
  730. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  731. LPASS_BE_USB_AUDIO_RX},
  732. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  733. LPASS_BE_USB_AUDIO_TX},
  734. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  735. LPASS_BE_DISPLAY_PORT},
  736. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  737. LPASS_BE_DISPLAY_PORT1},
  738. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  739. LPASS_BE_TERT_AUXPCM_RX},
  740. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  741. LPASS_BE_TERT_AUXPCM_TX},
  742. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  743. LPASS_BE_QUAT_AUXPCM_RX},
  744. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  745. LPASS_BE_QUAT_AUXPCM_TX},
  746. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  747. LPASS_BE_QUIN_AUXPCM_RX},
  748. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  749. LPASS_BE_QUIN_AUXPCM_TX},
  750. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  751. LPASS_BE_INT0_MI2S_RX},
  752. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  753. LPASS_BE_INT0_MI2S_TX},
  754. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  755. LPASS_BE_INT1_MI2S_RX},
  756. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  757. LPASS_BE_INT1_MI2S_TX},
  758. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  759. LPASS_BE_INT2_MI2S_RX},
  760. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  761. LPASS_BE_INT2_MI2S_TX},
  762. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  763. LPASS_BE_INT3_MI2S_RX},
  764. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  765. LPASS_BE_INT3_MI2S_TX},
  766. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  767. LPASS_BE_INT4_MI2S_RX},
  768. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  769. LPASS_BE_INT4_MI2S_TX},
  770. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  771. LPASS_BE_INT5_MI2S_RX},
  772. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  773. LPASS_BE_INT5_MI2S_TX},
  774. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  775. LPASS_BE_INT6_MI2S_RX},
  776. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  777. LPASS_BE_INT6_MI2S_TX},
  778. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  779. LPASS_BE_SEN_AUXPCM_RX},
  780. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  781. LPASS_BE_SEN_AUXPCM_TX},
  782. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  783. LPASS_BE_SENARY_MI2S_RX},
  784. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  785. LPASS_BE_WSA_CDC_DMA_RX_0},
  786. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  787. LPASS_BE_WSA_CDC_DMA_TX_0},
  788. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  789. LPASS_BE_WSA_CDC_DMA_RX_1},
  790. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  791. LPASS_BE_WSA_CDC_DMA_TX_1},
  792. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  793. LPASS_BE_WSA_CDC_DMA_TX_2},
  794. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  795. LPASS_BE_VA_CDC_DMA_TX_0},
  796. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  797. LPASS_BE_VA_CDC_DMA_TX_1},
  798. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  799. LPASS_BE_VA_CDC_DMA_TX_2},
  800. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  801. LPASS_BE_RX_CDC_DMA_RX_0},
  802. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  803. LPASS_BE_TX_CDC_DMA_TX_0},
  804. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  805. LPASS_BE_RX_CDC_DMA_RX_1},
  806. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  807. LPASS_BE_TX_CDC_DMA_TX_1},
  808. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  809. LPASS_BE_RX_CDC_DMA_RX_2},
  810. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  811. LPASS_BE_TX_CDC_DMA_TX_2},
  812. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  813. LPASS_BE_RX_CDC_DMA_RX_3},
  814. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  815. LPASS_BE_TX_CDC_DMA_TX_3},
  816. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  817. LPASS_BE_RX_CDC_DMA_RX_4},
  818. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  819. LPASS_BE_TX_CDC_DMA_TX_4},
  820. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  821. LPASS_BE_RX_CDC_DMA_RX_5},
  822. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  823. LPASS_BE_TX_CDC_DMA_TX_5},
  824. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  825. LPASS_BE_RX_CDC_DMA_RX_6},
  826. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  827. LPASS_BE_RX_CDC_DMA_RX_7},
  828. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  829. LPASS_BE_PRI_SPDIF_TX},
  830. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  831. LPASS_BE_SEC_SPDIF_RX},
  832. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  833. LPASS_BE_SEC_SPDIF_TX},
  834. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  835. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  836. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  837. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  838. LPASS_BE_PRI_META_MI2S_RX},
  839. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  840. LPASS_BE_SEC_META_MI2S_RX},
  841. { RT_PROXY_PORT_002_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_RX},
  842. { RT_PROXY_PORT_002_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_TX},
  843. { HDMI_RX_MS, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI_MS},
  844. };
  845. /* Track ASM playback & capture sessions of DAI
  846. * Track LSM listen sessions
  847. */
  848. static struct msm_pcm_routing_fdai_data
  849. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  850. /* MULTIMEDIA1 */
  851. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  852. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  853. /* MULTIMEDIA2 */
  854. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  855. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  856. /* MULTIMEDIA3 */
  857. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  858. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  859. /* MULTIMEDIA4 */
  860. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  861. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  862. /* MULTIMEDIA5 */
  863. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  864. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  865. /* MULTIMEDIA6 */
  866. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  867. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  868. /* MULTIMEDIA7*/
  869. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  870. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  871. /* MULTIMEDIA8 */
  872. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  873. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  874. /* MULTIMEDIA9 */
  875. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  876. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  877. /* MULTIMEDIA10 */
  878. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  879. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  880. /* MULTIMEDIA11 */
  881. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  882. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  883. /* MULTIMEDIA12 */
  884. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  885. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  886. /* MULTIMEDIA13 */
  887. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  888. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  889. /* MULTIMEDIA14 */
  890. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  891. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  892. /* MULTIMEDIA15 */
  893. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  894. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  895. /* MULTIMEDIA16 */
  896. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  897. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  898. /* MULTIMEDIA17 */
  899. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  900. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  901. /* MULTIMEDIA18 */
  902. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  903. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  904. /* MULTIMEDIA19 */
  905. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  906. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  907. /* MULTIMEDIA20 */
  908. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  909. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  910. /* MULTIMEDIA21 */
  911. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  912. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  913. /* MULTIMEDIA22 */
  914. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  915. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  916. /* MULTIMEDIA23 */
  917. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  918. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  919. /* MULTIMEDIA24 */
  920. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  921. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  922. /* MULTIMEDIA25 */
  923. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  924. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  925. /* MULTIMEDIA26 */
  926. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  927. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  928. /* MULTIMEDIA27 */
  929. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  930. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  931. /* MULTIMEDIA28 */
  932. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  933. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  934. /* MULTIMEDIA29 */
  935. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  936. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  937. /* MULTIMEDIA30 */
  938. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  939. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  940. /* MULTIMEDIA31 */
  941. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  942. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  943. /* MULTIMEDIA32 */
  944. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  945. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  946. /* MULTIMEDIA33 */
  947. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  948. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  949. /* MULTIMEDIA34 */
  950. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  951. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  952. /* VOIP */
  953. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  954. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  955. /* AFE_RX */
  956. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  957. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  958. /* AFE_TX */
  959. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  960. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  961. /* VOICE_STUB */
  962. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  963. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  964. /* DTMF_RX */
  965. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  966. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  967. /* QCHAT */
  968. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  969. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  970. /* VOLTE_STUB */
  971. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  972. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  973. /* LSM1 */
  974. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  975. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  976. /* LSM2 */
  977. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  978. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  979. /* LSM3 */
  980. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  981. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  982. /* LSM4 */
  983. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  984. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  985. /* LSM5 */
  986. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  987. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  988. /* LSM6 */
  989. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  990. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  991. /* LSM7 */
  992. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  993. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  994. /* LSM8 */
  995. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  996. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  997. /* VOICE2_STUB */
  998. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  999. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  1000. /* VOICEMMODE1 */
  1001. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  1002. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  1003. /* VOICEMMODE2 */
  1004. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  1005. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  1006. };
  1007. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  1008. [MSM_BACKEND_DAI_MAX];
  1009. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  1010. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  1011. static struct msm_pcm_stream_app_type_cfg
  1012. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  1013. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  1014. /* The caller of this should acquire routing lock */
  1015. void msm_pcm_routing_get_bedai_info(int be_idx,
  1016. struct msm_pcm_routing_bdai_data *be_dai)
  1017. {
  1018. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  1019. memcpy(be_dai, &msm_bedais[be_idx],
  1020. sizeof(struct msm_pcm_routing_bdai_data));
  1021. }
  1022. /* The caller of this should acquire routing lock */
  1023. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  1024. struct msm_pcm_routing_fdai_data *fe_dai)
  1025. {
  1026. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  1027. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  1028. sizeof(struct msm_pcm_routing_fdai_data));
  1029. }
  1030. void msm_pcm_routing_acquire_lock(void)
  1031. {
  1032. mutex_lock(&routing_lock);
  1033. }
  1034. void msm_pcm_routing_release_lock(void)
  1035. {
  1036. mutex_unlock(&routing_lock);
  1037. }
  1038. static int msm_pcm_routing_get_app_type_idx(int app_type)
  1039. {
  1040. int idx;
  1041. pr_debug("%s: app_type: %d\n", __func__, app_type);
  1042. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  1043. if (app_type_cfg[idx].app_type == app_type)
  1044. return idx;
  1045. }
  1046. pr_info("%s: App type not available, fallback to default\n", __func__);
  1047. return 0;
  1048. }
  1049. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  1050. {
  1051. int idx;
  1052. pr_debug("%s: app_type: %d\n", __func__, app_type);
  1053. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  1054. if (lsm_app_type_cfg[idx].app_type == app_type)
  1055. return idx;
  1056. }
  1057. pr_debug("%s: App type not available, fallback to default\n", __func__);
  1058. return 0;
  1059. }
  1060. static int get_port_id(int port_id)
  1061. {
  1062. int ret = port_id;
  1063. if (port_id == AFE_LOOPBACK_TX) {
  1064. /*
  1065. * Return afe_loopback_tx_port_id if set. Else return
  1066. * msm_ec_ref_port_id to maintain backward compatibility.
  1067. */
  1068. if (afe_loopback_tx_port_id != -1)
  1069. ret = afe_loopback_tx_port_id;
  1070. else
  1071. ret = msm_ec_ref_port_id;
  1072. }
  1073. return ret;
  1074. }
  1075. static bool is_mm_lsm_fe_id(int fe_id)
  1076. {
  1077. bool rc = true;
  1078. if (fe_id >= MSM_FRONTEND_DAI_MM_MAX_ID &&
  1079. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  1080. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  1081. rc = false;
  1082. }
  1083. return rc;
  1084. }
  1085. /*
  1086. * msm_pcm_routing_send_chmix_cfg:
  1087. * send the channel mixer command to mix the input channels
  1088. * into output channels.
  1089. *
  1090. * @fe_id: front end id
  1091. * @ip_channel_cnt: input channel count
  1092. * @op_channel_cnt: output channel count
  1093. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  1094. * @session_type: indicates session is of type TX or RX
  1095. * @stream_type: indicates either Audio or Listen stream type
  1096. */
  1097. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  1098. int op_channel_cnt, int *ch_wght_coeff,
  1099. int session_type, int stream_type)
  1100. {
  1101. int rc = 0, idx = 0;
  1102. int be_index = 0, port_id;
  1103. unsigned int session_id = 0;
  1104. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  1105. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  1106. stream_type);
  1107. if (!is_mm_lsm_fe_id(fe_id)) {
  1108. /* bad ID assigned in machine driver */
  1109. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1110. return -EINVAL;
  1111. }
  1112. if (ch_wght_coeff == NULL) {
  1113. pr_err("%s: Null channel weightage coefficients passed\n",
  1114. __func__);
  1115. return -EINVAL;
  1116. }
  1117. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  1118. port_id = msm_bedais[be_index].port_id;
  1119. if (!msm_bedais[be_index].active ||
  1120. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  1121. continue;
  1122. session_id = fe_dai_map[fe_id][session_type].strm_id;
  1123. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  1124. unsigned long copp =
  1125. session_copp_map[fe_id][session_type][be_index];
  1126. if (!test_bit(idx, &copp))
  1127. continue;
  1128. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  1129. session_id, ip_channel_cnt,
  1130. op_channel_cnt, ch_wght_coeff,
  1131. session_type, stream_type);
  1132. if (rc < 0)
  1133. pr_err("%s: err setting channel mix config\n",
  1134. __func__);
  1135. }
  1136. }
  1137. return 0;
  1138. }
  1139. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  1140. /**
  1141. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  1142. * setting before use case start.
  1143. *
  1144. * @fe_id: frontend idx
  1145. * @type: stream direction type
  1146. * @params: parameters of channel mixer setting
  1147. *
  1148. * Return 0 for success
  1149. */
  1150. int msm_pcm_routing_set_channel_mixer_cfg(
  1151. int fe_id, int type,
  1152. struct msm_pcm_channel_mixer *params)
  1153. {
  1154. int i, j = 0;
  1155. channel_mixer_v2[fe_id][type].enable = params->enable;
  1156. channel_mixer_v2[fe_id][type].rule = params->rule;
  1157. channel_mixer_v2[fe_id][type].input_channel =
  1158. params->input_channel;
  1159. channel_mixer_v2[fe_id][type].output_channel =
  1160. params->output_channel;
  1161. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  1162. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1163. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  1164. params->in_ch_map[i];
  1165. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1166. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  1167. params->out_ch_map[i];
  1168. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1169. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  1170. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  1171. params->channel_weight[i][j];
  1172. channel_mixer_v2[fe_id][type].override_in_ch_map =
  1173. params->override_in_ch_map;
  1174. channel_mixer_v2[fe_id][type].override_out_ch_map =
  1175. params->override_out_ch_map;
  1176. return 0;
  1177. }
  1178. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  1179. int msm_pcm_routing_reg_stream_app_type_cfg(
  1180. int fedai_id, int session_type, int be_id,
  1181. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1182. {
  1183. int ret = 0;
  1184. if (cfg_data == NULL) {
  1185. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  1186. ret = -EINVAL;
  1187. goto done;
  1188. }
  1189. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d copp_token %d\n",
  1190. __func__, fedai_id, session_type, be_id,
  1191. cfg_data->app_type, cfg_data->acdb_dev_id,
  1192. cfg_data->sample_rate, cfg_data->copp_token);
  1193. if (!is_mm_lsm_fe_id(fedai_id)) {
  1194. pr_err("%s: Invalid machine driver ID %d\n",
  1195. __func__, fedai_id);
  1196. ret = -EINVAL;
  1197. goto done;
  1198. }
  1199. if (session_type != SESSION_TYPE_RX &&
  1200. session_type != SESSION_TYPE_TX) {
  1201. pr_err("%s: Invalid session type %d\n",
  1202. __func__, session_type);
  1203. ret = -EINVAL;
  1204. goto done;
  1205. }
  1206. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1207. pr_err("%s: Received out of bounds be_id %d\n",
  1208. __func__, be_id);
  1209. ret = -EINVAL;
  1210. goto done;
  1211. }
  1212. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1213. /*
  1214. * Store the BE ID of the configuration information set as the latest so
  1215. * the get mixer control knows what to return.
  1216. */
  1217. last_be_id_configured[fedai_id][session_type] = be_id;
  1218. done:
  1219. return ret;
  1220. }
  1221. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1222. /**
  1223. * msm_pcm_routing_get_stream_app_type_cfg
  1224. *
  1225. * Receives fedai_id, session_type, be_id, and populates app_type,
  1226. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1227. * -EINVAL and does not alter passed values.
  1228. *
  1229. * fedai_id - Passed value, front end ID for which app type config is wanted
  1230. * session_type - Passed value, session type for which app type config
  1231. * is wanted
  1232. * be_id - Returned value, back end device id the app type config data is for
  1233. * cfg_data - Returned value, configuration data used by app type config
  1234. */
  1235. int msm_pcm_routing_get_stream_app_type_cfg(
  1236. int fedai_id, int session_type, int *bedai_id,
  1237. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1238. {
  1239. int be_id;
  1240. int ret = 0;
  1241. if (bedai_id == NULL) {
  1242. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1243. ret = -EINVAL;
  1244. goto done;
  1245. } else if (cfg_data == NULL) {
  1246. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1247. ret = -EINVAL;
  1248. goto done;
  1249. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1250. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1251. ret = -EINVAL;
  1252. goto done;
  1253. } else if (session_type != SESSION_TYPE_RX &&
  1254. session_type != SESSION_TYPE_TX) {
  1255. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1256. ret = -EINVAL;
  1257. goto done;
  1258. }
  1259. be_id = last_be_id_configured[fedai_id][session_type];
  1260. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1261. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1262. ret = -EINVAL;
  1263. goto done;
  1264. }
  1265. *bedai_id = be_id;
  1266. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1267. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d copp_token %d\n",
  1268. __func__, fedai_id, session_type, *bedai_id,
  1269. cfg_data->app_type, cfg_data->acdb_dev_id,
  1270. cfg_data->sample_rate, cfg_data->copp_token);
  1271. done:
  1272. return ret;
  1273. }
  1274. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1275. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1276. int cal_index)
  1277. {
  1278. struct list_head *ptr, *next;
  1279. struct cal_block_data *cal_block = NULL;
  1280. pr_debug("%s\n", __func__);
  1281. list_for_each_safe(ptr, next,
  1282. &cal_data[cal_index]->cal_blocks) {
  1283. cal_block = list_entry(ptr,
  1284. struct cal_block_data, list);
  1285. if (cal_utils_is_cal_stale(cal_block, cal_data[cal_index]))
  1286. continue;
  1287. if (((struct audio_cal_info_adm_top *)cal_block
  1288. ->cal_info)->path == path) {
  1289. return cal_block;
  1290. }
  1291. }
  1292. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1293. return NULL;
  1294. }
  1295. static struct cal_block_data *msm_routing_find_topology(int path,
  1296. int app_type,
  1297. int acdb_id,
  1298. int cal_index,
  1299. bool exact)
  1300. {
  1301. struct list_head *ptr, *next;
  1302. struct cal_block_data *cal_block = NULL;
  1303. struct audio_cal_info_adm_top *cal_info;
  1304. pr_debug("%s\n", __func__);
  1305. list_for_each_safe(ptr, next,
  1306. &cal_data[cal_index]->cal_blocks) {
  1307. cal_block = list_entry(ptr,
  1308. struct cal_block_data, list);
  1309. if (cal_utils_is_cal_stale(cal_block, cal_data[cal_index]))
  1310. continue;
  1311. cal_info = (struct audio_cal_info_adm_top *)
  1312. cal_block->cal_info;
  1313. if ((cal_info->path == path) &&
  1314. (cal_info->app_type == app_type) &&
  1315. (cal_info->acdb_id == acdb_id)) {
  1316. return cal_block;
  1317. }
  1318. }
  1319. pr_debug("%s: Can't find topology for path %d, app %d, "
  1320. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1321. exact ? "fail" : "defaulting to search by path");
  1322. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1323. cal_index);
  1324. }
  1325. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1326. int acdb_dev_id, int idx,
  1327. bool exact)
  1328. {
  1329. int topology = -EINVAL;
  1330. struct cal_block_data *cal_block = NULL;
  1331. mutex_lock(&cal_data[idx]->lock);
  1332. cal_block = msm_routing_find_topology(session_type, app_type,
  1333. acdb_dev_id, idx, exact);
  1334. if (cal_block != NULL) {
  1335. topology = ((struct audio_cal_info_adm_top *)
  1336. cal_block->cal_info)->topology;
  1337. }
  1338. mutex_unlock(&cal_data[idx]->lock);
  1339. return topology;
  1340. }
  1341. /*
  1342. * Retrieving cal_block will mark cal_block as stale.
  1343. * Hence it cannot be reused or resent unless the flag
  1344. * is reset.
  1345. */
  1346. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1347. int be_id)
  1348. {
  1349. int topology = NULL_COPP_TOPOLOGY;
  1350. int app_type = 0, acdb_dev_id = 0;
  1351. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1352. __func__, fedai_id, session_type, be_id);
  1353. if (cal_data == NULL)
  1354. goto done;
  1355. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1356. acdb_dev_id =
  1357. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1358. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1359. topology = msm_routing_find_topology_on_index(session_type,
  1360. app_type,
  1361. acdb_dev_id,
  1362. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1363. true /*exact*/);
  1364. if (topology < 0) {
  1365. pr_debug("%s: Check for compatible topology\n", __func__);
  1366. topology = msm_routing_find_topology_on_index(session_type,
  1367. app_type,
  1368. acdb_dev_id,
  1369. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1370. false /*exact*/);
  1371. if (topology < 0)
  1372. topology = NULL_COPP_TOPOLOGY;
  1373. }
  1374. done:
  1375. pr_debug("%s: Using topology %d\n", __func__, topology);
  1376. return topology;
  1377. }
  1378. static uint8_t is_be_dai_extproc(int be_dai)
  1379. {
  1380. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1381. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1382. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1383. return 1;
  1384. else
  1385. return 0;
  1386. }
  1387. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1388. int path_type, int perf_mode,
  1389. uint32_t passthr_mode)
  1390. {
  1391. int i, port_type, j, num_copps = 0;
  1392. struct route_payload payload;
  1393. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1394. path_type == ADM_PATH_COMPRESSED_RX) ?
  1395. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1396. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1397. if (!is_be_dai_extproc(i) &&
  1398. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1399. (msm_bedais[i].active) &&
  1400. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1401. int port_id = get_port_id(msm_bedais[i].port_id);
  1402. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1403. unsigned long copp =
  1404. session_copp_map[fedai_id][sess_type][i];
  1405. if (test_bit(j, &copp)) {
  1406. payload.port_id[num_copps] = port_id;
  1407. payload.copp_idx[num_copps] = j;
  1408. payload.app_type[num_copps] =
  1409. fe_dai_app_type_cfg
  1410. [fedai_id][sess_type][i]
  1411. .app_type;
  1412. payload.acdb_dev_id[num_copps] =
  1413. fe_dai_app_type_cfg
  1414. [fedai_id][sess_type][i]
  1415. .acdb_dev_id;
  1416. payload.sample_rate[num_copps] =
  1417. fe_dai_app_type_cfg
  1418. [fedai_id][sess_type][i]
  1419. .sample_rate;
  1420. num_copps++;
  1421. }
  1422. }
  1423. }
  1424. }
  1425. if (num_copps) {
  1426. payload.num_copps = num_copps;
  1427. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1428. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1429. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1430. }
  1431. }
  1432. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1433. int stream_type)
  1434. {
  1435. int i, session_type, path_type, port_type;
  1436. u32 mode = 0;
  1437. if (fedai_id >= MSM_FRONTEND_DAI_MM_MAX_ID) {
  1438. /* bad ID assigned in machine driver */
  1439. pr_err("%s: bad MM ID\n", __func__);
  1440. return;
  1441. }
  1442. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1443. session_type = SESSION_TYPE_RX;
  1444. path_type = ADM_PATH_PLAYBACK;
  1445. port_type = MSM_AFE_PORT_TYPE_RX;
  1446. } else {
  1447. session_type = SESSION_TYPE_TX;
  1448. path_type = ADM_PATH_LIVE_REC;
  1449. port_type = MSM_AFE_PORT_TYPE_TX;
  1450. }
  1451. mutex_lock(&routing_lock);
  1452. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1453. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1454. if (!is_be_dai_extproc(i) &&
  1455. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1456. (msm_bedais[i].active) &&
  1457. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1458. mode = afe_get_port_type(msm_bedais[i].port_id);
  1459. adm_connect_afe_port(mode, dspst_id,
  1460. msm_bedais[i].port_id);
  1461. break;
  1462. }
  1463. }
  1464. mutex_unlock(&routing_lock);
  1465. }
  1466. static bool route_check_fe_id_adm_support(int fe_id)
  1467. {
  1468. bool rc = true;
  1469. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1470. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1471. /* fe id is listen while port is set to afe */
  1472. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1473. ADM_LSM_PORT_INDEX) {
  1474. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1475. __func__, fe_id,
  1476. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1477. rc = false;
  1478. }
  1479. }
  1480. return rc;
  1481. }
  1482. /*
  1483. * msm_pcm_routing_get_pp_ch_cnt:
  1484. * Read the processed channel count
  1485. *
  1486. * @fe_id: Front end ID
  1487. * @session_type: Inidicates RX or TX session type
  1488. */
  1489. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1490. {
  1491. struct msm_pcm_stream_app_type_cfg cfg_data;
  1492. int be_id = 0, app_type_idx = 0, app_type = 0;
  1493. int ret = -EINVAL;
  1494. memset(&cfg_data, 0, sizeof(cfg_data));
  1495. if (!is_mm_lsm_fe_id(fe_id)) {
  1496. pr_err("%s: bad MM ID\n", __func__);
  1497. return -EINVAL;
  1498. }
  1499. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1500. &be_id, &cfg_data);
  1501. if (ret) {
  1502. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1503. return ret;
  1504. }
  1505. app_type = cfg_data.app_type;
  1506. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1507. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1508. }
  1509. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1510. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1511. int dspst_id, int stream_type,
  1512. uint32_t passthr_mode)
  1513. {
  1514. int i, j, session_type, path_type, port_type, topology;
  1515. int num_copps = 0;
  1516. struct route_payload payload;
  1517. u32 channels, sample_rate;
  1518. u16 bit_width = 16, be_bit_width;
  1519. bool is_lsm;
  1520. uint32_t copp_token = 0;
  1521. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1522. __func__, fe_id, perf_mode, dspst_id,
  1523. stream_type, passthr_mode);
  1524. if (!is_mm_lsm_fe_id(fe_id)) {
  1525. /* bad ID assigned in machine driver */
  1526. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1527. return -EINVAL;
  1528. }
  1529. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1530. session_type = SESSION_TYPE_RX;
  1531. if (passthr_mode != LEGACY_PCM)
  1532. path_type = ADM_PATH_COMPRESSED_RX;
  1533. else
  1534. path_type = ADM_PATH_PLAYBACK;
  1535. port_type = MSM_AFE_PORT_TYPE_RX;
  1536. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1537. session_type = SESSION_TYPE_TX;
  1538. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1539. path_type = ADM_PATH_COMPRESSED_TX;
  1540. else
  1541. path_type = ADM_PATH_LIVE_REC;
  1542. port_type = MSM_AFE_PORT_TYPE_TX;
  1543. } else {
  1544. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1545. return -EINVAL;
  1546. }
  1547. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1548. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1549. mutex_lock(&routing_lock);
  1550. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1551. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1552. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1553. if (!route_check_fe_id_adm_support(fe_id)) {
  1554. /* ignore adm open if not supported for fe_id */
  1555. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1556. mutex_unlock(&routing_lock);
  1557. return 0;
  1558. }
  1559. payload.num_copps = 0; /* only RX needs to use payload */
  1560. /* re-enable EQ if active */
  1561. msm_qti_pp_send_eq_values(fe_id);
  1562. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1563. if (!is_be_dai_extproc(i) &&
  1564. (afe_get_port_type(msm_bedais[i].port_id) ==
  1565. port_type) &&
  1566. (msm_bedais[i].active) &&
  1567. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1568. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1569. int port_id = get_port_id(msm_bedais[i].port_id);
  1570. /*
  1571. * check if ADM needs to be configured with different
  1572. * channel mapping than backend
  1573. */
  1574. if (!msm_bedais[i].adm_override_ch)
  1575. channels = msm_bedais[i].channel;
  1576. else
  1577. channels = msm_bedais[i].adm_override_ch;
  1578. bit_width = msm_routing_get_bit_width(
  1579. msm_bedais[i].format);
  1580. app_type =
  1581. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1582. if (app_type && is_lsm) {
  1583. app_type_idx =
  1584. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1585. sample_rate =
  1586. fe_dai_app_type_cfg[fe_id][session_type][i]
  1587. .sample_rate;
  1588. bit_width =
  1589. lsm_app_type_cfg[app_type_idx].bit_width;
  1590. } else if (app_type) {
  1591. app_type_idx =
  1592. msm_pcm_routing_get_app_type_idx(
  1593. app_type);
  1594. sample_rate =
  1595. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1596. bit_width =
  1597. app_type_cfg[app_type_idx].bit_width;
  1598. copp_token =
  1599. fe_dai_app_type_cfg[fe_id][session_type][i].copp_token;
  1600. } else {
  1601. sample_rate = msm_bedais[i].sample_rate;
  1602. }
  1603. acdb_dev_id =
  1604. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1605. topology = msm_routing_get_adm_topology(fe_id,
  1606. session_type,
  1607. i);
  1608. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1609. || (passthr_mode ==
  1610. COMPRESSED_PASSTHROUGH_GEN)
  1611. || (passthr_mode ==
  1612. COMPRESSED_PASSTHROUGH_IEC61937))
  1613. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1614. pr_debug("%s: Before adm open topology %d\n", __func__,
  1615. topology);
  1616. be_bit_width = msm_routing_get_bit_width(
  1617. msm_bedais[i].format);
  1618. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1619. == 384000 || msm_bedais[i].sample_rate ==
  1620. 352800) && be_bit_width == 32)
  1621. bit_width = msm_routing_get_bit_width(
  1622. SNDRV_PCM_FORMAT_S32_LE);
  1623. copp_idx =
  1624. adm_open(port_id, path_type, sample_rate,
  1625. channels, topology, perf_mode,
  1626. bit_width, app_type, acdb_dev_id,
  1627. session_type, passthr_mode, copp_token);
  1628. if ((copp_idx < 0) ||
  1629. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1630. pr_err("%s:adm open failed coppid:%d\n",
  1631. __func__, copp_idx);
  1632. mutex_unlock(&routing_lock);
  1633. return -EINVAL;
  1634. }
  1635. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1636. __func__, fe_id, session_type, i);
  1637. set_bit(copp_idx,
  1638. &session_copp_map[fe_id][session_type][i]);
  1639. if (msm_is_resample_needed(
  1640. sample_rate,
  1641. msm_bedais[i].sample_rate))
  1642. adm_copp_mfc_cfg(port_id, copp_idx,
  1643. msm_bedais[i].sample_rate);
  1644. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1645. unsigned long copp =
  1646. session_copp_map[fe_id][session_type][i];
  1647. if (test_bit(j, &copp)) {
  1648. payload.port_id[num_copps] = port_id;
  1649. payload.copp_idx[num_copps] = j;
  1650. payload.app_type[num_copps] =
  1651. fe_dai_app_type_cfg
  1652. [fe_id][session_type][i]
  1653. .app_type;
  1654. payload.acdb_dev_id[num_copps] =
  1655. fe_dai_app_type_cfg
  1656. [fe_id][session_type][i]
  1657. .acdb_dev_id;
  1658. payload.sample_rate[num_copps] =
  1659. fe_dai_app_type_cfg
  1660. [fe_id][session_type][i]
  1661. .sample_rate;
  1662. num_copps++;
  1663. }
  1664. }
  1665. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1666. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1667. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1668. msm_routing_send_device_pp_params(port_id,
  1669. copp_idx, fe_id);
  1670. }
  1671. }
  1672. if (num_copps) {
  1673. payload.num_copps = num_copps;
  1674. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1675. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1676. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1677. }
  1678. mutex_unlock(&routing_lock);
  1679. return 0;
  1680. }
  1681. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1682. {
  1683. u32 session_id;
  1684. switch (val) {
  1685. case MSM_FRONTEND_DAI_QCHAT:
  1686. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1687. break;
  1688. case MSM_FRONTEND_DAI_VOIP:
  1689. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1690. break;
  1691. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1692. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1693. break;
  1694. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1695. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1696. break;
  1697. default:
  1698. session_id = 0;
  1699. }
  1700. pr_debug("%s session_id 0x%x", __func__, session_id);
  1701. return session_id;
  1702. }
  1703. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1704. int dspst_id, int stream_type)
  1705. {
  1706. int copp_idx = 0;
  1707. int sess_type = 0;
  1708. int j = 0, be_id = 0;
  1709. int ret = 0;
  1710. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1711. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1712. return 0;
  1713. }
  1714. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1715. sess_type = SESSION_TYPE_RX;
  1716. else
  1717. sess_type = SESSION_TYPE_TX;
  1718. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1719. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1720. __func__, fe_id, sess_type);
  1721. return 0;
  1722. }
  1723. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1724. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1725. channel_mixer_v2[fe_id][sess_type].input_channel;
  1726. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1727. __func__, sess_type, fe_id,
  1728. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1729. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1730. msm_bedais[be_id].active);
  1731. if ((msm_bedais[be_id].active) &&
  1732. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1733. unsigned long copp =
  1734. session_copp_map[fe_id][sess_type][be_id];
  1735. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1736. if (test_bit(j, &copp)) {
  1737. copp_idx = j;
  1738. break;
  1739. }
  1740. }
  1741. ret = adm_programable_channel_mixer(
  1742. msm_bedais[be_id].port_id,
  1743. copp_idx, dspst_id, sess_type,
  1744. &channel_mixer_v2[fe_id][sess_type], 0);
  1745. }
  1746. return ret;
  1747. }
  1748. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1749. int dspst_id, int stream_type)
  1750. {
  1751. int copp_idx = 0;
  1752. int sess_type = 0;
  1753. int i = 0, j = 0, be_id;
  1754. int ret = 0;
  1755. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1756. dspst_id, stream_type);
  1757. if (ret) {
  1758. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1759. fe_id);
  1760. return ret;
  1761. }
  1762. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1763. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1764. return 0;
  1765. }
  1766. if (!(channel_mixer[fe_id].enable)) {
  1767. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1768. __func__, fe_id);
  1769. return 0;
  1770. }
  1771. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1772. sess_type = SESSION_TYPE_RX;
  1773. else
  1774. sess_type = SESSION_TYPE_TX;
  1775. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1776. ++i) {
  1777. be_id = channel_input[fe_id][i] - 1;
  1778. channel_mixer[fe_id].input_channels[i] =
  1779. msm_bedais[be_id].channel;
  1780. if ((msm_bedais[be_id].active) &&
  1781. test_bit(fe_id,
  1782. &msm_bedais[be_id].fe_sessions[0])) {
  1783. unsigned long copp =
  1784. session_copp_map[fe_id][sess_type][be_id];
  1785. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1786. if (test_bit(j, &copp)) {
  1787. copp_idx = j;
  1788. break;
  1789. }
  1790. }
  1791. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1792. __func__,
  1793. fe_id, be_id, msm_bedais[be_id].channel,
  1794. copp_idx);
  1795. ret = adm_programable_channel_mixer(
  1796. get_port_id(msm_bedais[be_id].port_id),
  1797. copp_idx, dspst_id, sess_type,
  1798. channel_mixer + fe_id, i);
  1799. }
  1800. }
  1801. return ret;
  1802. }
  1803. /**
  1804. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1805. * setting during runtime.
  1806. *
  1807. * @be_id: backend index
  1808. * @session_id: session index
  1809. * @session_type: session type
  1810. * @params: parameters for channel mixer
  1811. *
  1812. * Retuen: 0 for success, else error
  1813. */
  1814. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1815. int session_type,
  1816. struct msm_pcm_channel_mixer *params)
  1817. {
  1818. int rc = 0;
  1819. int port_id, copp_idx = 0;
  1820. be_id--;
  1821. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1822. pr_err("%s: invalid backend id %d\n", __func__,
  1823. be_id);
  1824. return -EINVAL;
  1825. }
  1826. port_id = msm_bedais[be_id].port_id;
  1827. copp_idx = adm_get_default_copp_idx(port_id);
  1828. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1829. __func__, port_id, copp_idx, session_id);
  1830. if ((params->input_channel < 0) ||
  1831. (params->input_channel > ADM_MAX_CHANNELS)) {
  1832. pr_err("%s: invalid input channel %d\n", __func__,
  1833. params->input_channel);
  1834. return -EINVAL;
  1835. }
  1836. if ((params->output_channel < 0) ||
  1837. (params->output_channel > ADM_MAX_CHANNELS)) {
  1838. pr_err("%s: invalid output channel %d\n", __func__,
  1839. params->output_channel);
  1840. return -EINVAL;
  1841. }
  1842. params->input_channels[0] = params->input_channel;
  1843. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1844. __func__, session_type,
  1845. params->override_in_ch_map,
  1846. params->override_out_ch_map,
  1847. msm_bedais[be_id].active);
  1848. rc = adm_programable_channel_mixer(port_id,
  1849. copp_idx,
  1850. session_id,
  1851. session_type,
  1852. params,
  1853. 0);
  1854. if (rc) {
  1855. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1856. rc = -EINVAL;
  1857. }
  1858. return rc;
  1859. }
  1860. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1861. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1862. int dspst_id, int stream_type)
  1863. {
  1864. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1865. struct route_payload payload;
  1866. u32 channels, sample_rate;
  1867. uint16_t bits_per_sample = 16, be_bit_width;
  1868. uint32_t passthr_mode = LEGACY_PCM;
  1869. int ret = 0;
  1870. uint32_t copp_token = 0;
  1871. if (fedai_id >= MSM_FRONTEND_DAI_MM_MAX_ID) {
  1872. /* bad ID assigned in machine driver */
  1873. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1874. return -EINVAL;
  1875. }
  1876. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1877. session_type = SESSION_TYPE_RX;
  1878. path_type = ADM_PATH_PLAYBACK;
  1879. port_type = MSM_AFE_PORT_TYPE_RX;
  1880. } else {
  1881. session_type = SESSION_TYPE_TX;
  1882. path_type = ADM_PATH_LIVE_REC;
  1883. port_type = MSM_AFE_PORT_TYPE_TX;
  1884. }
  1885. mutex_lock(&routing_lock);
  1886. payload.num_copps = 0; /* only RX needs to use payload */
  1887. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1888. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1889. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1890. /* re-enable EQ if active */
  1891. msm_qti_pp_send_eq_values(fedai_id);
  1892. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1893. if (!is_be_dai_extproc(i) &&
  1894. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1895. (msm_bedais[i].active) &&
  1896. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1897. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1898. int port_id = get_port_id(msm_bedais[i].port_id);
  1899. /*
  1900. * check if ADM needs to be configured with different
  1901. * channel mapping than backend
  1902. */
  1903. if (!msm_bedais[i].adm_override_ch)
  1904. channels = msm_bedais[i].channel;
  1905. else
  1906. channels = msm_bedais[i].adm_override_ch;
  1907. bits_per_sample = msm_routing_get_bit_width(
  1908. msm_bedais[i].format);
  1909. app_type =
  1910. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1911. if (app_type) {
  1912. app_type_idx =
  1913. msm_pcm_routing_get_app_type_idx(app_type);
  1914. sample_rate =
  1915. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1916. .sample_rate;
  1917. bits_per_sample =
  1918. app_type_cfg[app_type_idx].bit_width;
  1919. copp_token =
  1920. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1921. .copp_token;
  1922. } else
  1923. sample_rate = msm_bedais[i].sample_rate;
  1924. acdb_dev_id =
  1925. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1926. .acdb_dev_id;
  1927. topology = msm_routing_get_adm_topology(fedai_id,
  1928. session_type,
  1929. i);
  1930. be_bit_width = msm_routing_get_bit_width(
  1931. msm_bedais[i].format);
  1932. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1933. 384000 ||msm_bedais[i].sample_rate == 352800)
  1934. && be_bit_width == 32)
  1935. bits_per_sample = msm_routing_get_bit_width(
  1936. SNDRV_PCM_FORMAT_S32_LE);
  1937. copp_idx = adm_open(port_id, path_type,
  1938. sample_rate, channels, topology,
  1939. perf_mode, bits_per_sample,
  1940. app_type, acdb_dev_id,
  1941. session_type, passthr_mode, copp_token);
  1942. if ((copp_idx < 0) ||
  1943. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1944. pr_err("%s: adm open failed copp_idx:%d\n",
  1945. __func__, copp_idx);
  1946. mutex_unlock(&routing_lock);
  1947. return -EINVAL;
  1948. }
  1949. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1950. __func__, fedai_id, session_type, i);
  1951. set_bit(copp_idx,
  1952. &session_copp_map[fedai_id][session_type][i]);
  1953. if (msm_is_resample_needed(
  1954. sample_rate,
  1955. msm_bedais[i].sample_rate))
  1956. adm_copp_mfc_cfg(port_id, copp_idx,
  1957. msm_bedais[i].sample_rate);
  1958. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1959. unsigned long copp =
  1960. session_copp_map[fedai_id][session_type][i];
  1961. if (test_bit(j, &copp)) {
  1962. payload.port_id[num_copps] = port_id;
  1963. payload.copp_idx[num_copps] = j;
  1964. payload.app_type[num_copps] =
  1965. fe_dai_app_type_cfg
  1966. [fedai_id][session_type]
  1967. [i].app_type;
  1968. payload.acdb_dev_id[num_copps] =
  1969. fe_dai_app_type_cfg
  1970. [fedai_id][session_type]
  1971. [i].acdb_dev_id;
  1972. payload.sample_rate[num_copps] =
  1973. fe_dai_app_type_cfg
  1974. [fedai_id][session_type]
  1975. [i].sample_rate;
  1976. num_copps++;
  1977. }
  1978. }
  1979. if (perf_mode == LEGACY_PCM_MODE)
  1980. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1981. topology, channels);
  1982. }
  1983. }
  1984. if (num_copps) {
  1985. payload.num_copps = num_copps;
  1986. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1987. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1988. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1989. }
  1990. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1991. dspst_id, stream_type);
  1992. mutex_unlock(&routing_lock);
  1993. return ret;
  1994. }
  1995. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1996. int dspst_id, int stream_type,
  1997. struct msm_pcm_routing_evt event_info)
  1998. {
  1999. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  2000. stream_type)) {
  2001. pr_err("%s: failed to reg phy stream\n", __func__);
  2002. return -EINVAL;
  2003. }
  2004. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  2005. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  2006. else
  2007. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  2008. return 0;
  2009. }
  2010. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  2011. {
  2012. int i, port_type, session_type, path_type, topology, port_id;
  2013. struct msm_pcm_routing_fdai_data *fdai;
  2014. if (!is_mm_lsm_fe_id(fedai_id)) {
  2015. /* bad ID assigned in machine driver */
  2016. pr_err("%s: bad MM ID\n", __func__);
  2017. return;
  2018. }
  2019. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  2020. port_type = MSM_AFE_PORT_TYPE_RX;
  2021. session_type = SESSION_TYPE_RX;
  2022. path_type = ADM_PATH_PLAYBACK;
  2023. } else {
  2024. port_type = MSM_AFE_PORT_TYPE_TX;
  2025. session_type = SESSION_TYPE_TX;
  2026. path_type = ADM_PATH_LIVE_REC;
  2027. }
  2028. mutex_lock(&routing_lock);
  2029. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2030. if (!is_be_dai_extproc(i) &&
  2031. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  2032. (msm_bedais[i].active) &&
  2033. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  2034. int idx;
  2035. unsigned long copp =
  2036. session_copp_map[fedai_id][session_type][i];
  2037. fdai = &fe_dai_map[fedai_id][session_type];
  2038. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2039. if (test_bit(idx, &copp))
  2040. break;
  2041. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  2042. pr_debug("%s: copp idx is invalid, exiting\n",
  2043. __func__);
  2044. continue;
  2045. }
  2046. port_id = get_port_id(msm_bedais[i].port_id);
  2047. topology = adm_get_topology_for_port_copp_idx(
  2048. port_id, idx);
  2049. msm_routing_unload_topology(topology);
  2050. adm_close(port_id, fdai->perf_mode, idx);
  2051. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  2052. __func__, copp, fedai_id, session_type, i);
  2053. clear_bit(idx,
  2054. &session_copp_map[fedai_id][session_type][i]);
  2055. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2056. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2057. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2058. (fdai->passthr_mode == LEGACY_PCM))
  2059. msm_pcm_routing_deinit_pp(port_id, topology);
  2060. }
  2061. }
  2062. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  2063. fe_dai_map[fedai_id][session_type].be_srate = 0;
  2064. mutex_unlock(&routing_lock);
  2065. }
  2066. /* Check if FE/BE route is set */
  2067. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  2068. {
  2069. bool rc = false;
  2070. if (!is_mm_lsm_fe_id(fe_id)) {
  2071. /* recheck FE ID in the mixer control defined in this file */
  2072. pr_err("%s: bad MM ID\n", __func__);
  2073. return rc;
  2074. }
  2075. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  2076. rc = true;
  2077. return rc;
  2078. }
  2079. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  2080. {
  2081. int session_type, path_type, topology;
  2082. u32 channels, sample_rate;
  2083. uint16_t bits_per_sample = 16, be_bit_width;
  2084. struct msm_pcm_routing_fdai_data *fdai;
  2085. uint32_t passthr_mode;
  2086. bool is_lsm;
  2087. uint32_t copp_token = 0;
  2088. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2089. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2090. afe_get_port_type(msm_bedais[reg].port_id) ==
  2091. MSM_AFE_PORT_TYPE_RX) {
  2092. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2093. __func__, set, msm_bedais[reg].port_id);
  2094. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2095. } else if (!is_mm_lsm_fe_id(val)) {
  2096. /* recheck FE ID in the mixer control defined in this file */
  2097. pr_err("%s: bad MM ID\n", __func__);
  2098. return;
  2099. }
  2100. if (!route_check_fe_id_adm_support(val)) {
  2101. /* ignore adm open if not supported for fe_id */
  2102. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  2103. if (set)
  2104. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2105. else
  2106. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2107. return;
  2108. }
  2109. session_type =
  2110. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  2111. SESSION_TYPE_RX : SESSION_TYPE_TX;
  2112. fdai = &fe_dai_map[val][session_type];
  2113. passthr_mode = fdai->passthr_mode;
  2114. if (session_type == SESSION_TYPE_RX) {
  2115. if (passthr_mode != LEGACY_PCM)
  2116. path_type = ADM_PATH_COMPRESSED_RX;
  2117. else
  2118. path_type = ADM_PATH_PLAYBACK;
  2119. } else {
  2120. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  2121. path_type = ADM_PATH_COMPRESSED_TX;
  2122. else
  2123. path_type = ADM_PATH_LIVE_REC;
  2124. }
  2125. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  2126. (val <= MSM_FRONTEND_DAI_LSM8);
  2127. mutex_lock(&routing_lock);
  2128. if (set) {
  2129. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2130. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2131. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2132. voc_start_playback(set, msm_bedais[reg].port_id);
  2133. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2134. if (msm_bedais[reg].active && fdai->strm_id !=
  2135. INVALID_SESSION) {
  2136. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  2137. int port_id = get_port_id(msm_bedais[reg].port_id);
  2138. /*
  2139. * check if ADM needs to be configured with different
  2140. * channel mapping than backend
  2141. */
  2142. if (!msm_bedais[reg].adm_override_ch)
  2143. channels = msm_bedais[reg].channel;
  2144. else
  2145. channels = msm_bedais[reg].adm_override_ch;
  2146. if (session_type == SESSION_TYPE_TX &&
  2147. fdai->be_srate &&
  2148. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  2149. pr_debug("%s: flush strm %d diff BE rates\n",
  2150. __func__, fdai->strm_id);
  2151. if (fdai->event_info.event_func)
  2152. fdai->event_info.event_func(
  2153. MSM_PCM_RT_EVT_BUF_RECFG,
  2154. fdai->event_info.priv_data);
  2155. fdai->be_srate = 0; /* might not need it */
  2156. }
  2157. bits_per_sample = msm_routing_get_bit_width(
  2158. msm_bedais[reg].format);
  2159. app_type =
  2160. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  2161. if (app_type && is_lsm) {
  2162. app_type_idx =
  2163. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  2164. sample_rate =
  2165. fe_dai_app_type_cfg[val][session_type][reg]
  2166. .sample_rate;
  2167. bits_per_sample =
  2168. lsm_app_type_cfg[app_type_idx].bit_width;
  2169. } else if (app_type) {
  2170. app_type_idx =
  2171. msm_pcm_routing_get_app_type_idx(app_type);
  2172. sample_rate =
  2173. fe_dai_app_type_cfg[val][session_type][reg]
  2174. .sample_rate;
  2175. bits_per_sample =
  2176. app_type_cfg[app_type_idx].bit_width;
  2177. copp_token =
  2178. fe_dai_app_type_cfg[val][session_type][reg]
  2179. .copp_token;
  2180. } else
  2181. sample_rate = msm_bedais[reg].sample_rate;
  2182. topology = msm_routing_get_adm_topology(val,
  2183. session_type,
  2184. reg);
  2185. acdb_dev_id =
  2186. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  2187. be_bit_width = msm_routing_get_bit_width(
  2188. msm_bedais[reg].format);
  2189. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  2190. == 384000 ||msm_bedais[reg].sample_rate ==
  2191. 352800) && be_bit_width == 32)
  2192. bits_per_sample = msm_routing_get_bit_width(
  2193. SNDRV_PCM_FORMAT_S32_LE);
  2194. copp_idx = adm_open(port_id, path_type,
  2195. sample_rate, channels, topology,
  2196. fdai->perf_mode, bits_per_sample,
  2197. app_type, acdb_dev_id,
  2198. session_type, passthr_mode, copp_token);
  2199. if ((copp_idx < 0) ||
  2200. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2201. pr_err("%s: adm open failed\n", __func__);
  2202. mutex_unlock(&routing_lock);
  2203. return;
  2204. }
  2205. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2206. __func__, val, session_type, reg);
  2207. set_bit(copp_idx,
  2208. &session_copp_map[val][session_type][reg]);
  2209. if (msm_is_resample_needed(
  2210. sample_rate,
  2211. msm_bedais[reg].sample_rate))
  2212. adm_copp_mfc_cfg(port_id, copp_idx,
  2213. msm_bedais[reg].sample_rate);
  2214. if (session_type == SESSION_TYPE_RX &&
  2215. fdai->event_info.event_func)
  2216. fdai->event_info.event_func(
  2217. MSM_PCM_RT_EVT_DEVSWITCH,
  2218. fdai->event_info.priv_data);
  2219. msm_pcm_routing_build_matrix(val, session_type,
  2220. path_type,
  2221. fdai->perf_mode,
  2222. passthr_mode);
  2223. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2224. (passthr_mode == LEGACY_PCM))
  2225. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2226. topology, channels);
  2227. }
  2228. } else {
  2229. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2230. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2231. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2232. voc_start_playback(set, msm_bedais[reg].port_id);
  2233. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2234. if (msm_bedais[reg].active && fdai->strm_id !=
  2235. INVALID_SESSION) {
  2236. int idx;
  2237. int port_id;
  2238. unsigned long copp =
  2239. session_copp_map[val][session_type][reg];
  2240. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2241. if (test_bit(idx, &copp))
  2242. break;
  2243. if (idx >= MAX_COPPS_PER_PORT) {
  2244. pr_debug("%s: copp idx is invalid, exiting\n",
  2245. __func__);
  2246. mutex_unlock(&routing_lock);
  2247. return;
  2248. }
  2249. port_id = get_port_id(msm_bedais[reg].port_id);
  2250. topology = adm_get_topology_for_port_copp_idx(port_id,
  2251. idx);
  2252. msm_routing_unload_topology(topology);
  2253. adm_close(port_id, fdai->perf_mode, idx);
  2254. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2255. __func__, copp, val, session_type, reg,
  2256. topology);
  2257. clear_bit(idx,
  2258. &session_copp_map[val][session_type][reg]);
  2259. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2260. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2261. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2262. (passthr_mode == LEGACY_PCM))
  2263. msm_pcm_routing_deinit_pp(port_id, topology);
  2264. msm_pcm_routing_build_matrix(val, session_type,
  2265. path_type,
  2266. fdai->perf_mode,
  2267. passthr_mode);
  2268. }
  2269. }
  2270. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2271. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2272. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2273. mutex_unlock(&routing_lock);
  2274. }
  2275. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2276. struct snd_ctl_elem_value *ucontrol)
  2277. {
  2278. struct soc_mixer_control *mc =
  2279. (struct soc_mixer_control *)kcontrol->private_value;
  2280. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2281. ucontrol->value.integer.value[0] = 1;
  2282. else
  2283. ucontrol->value.integer.value[0] = 0;
  2284. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2285. ucontrol->value.integer.value[0]);
  2286. return 0;
  2287. }
  2288. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2289. struct snd_ctl_elem_value *ucontrol)
  2290. {
  2291. struct snd_soc_dapm_widget *widget =
  2292. snd_soc_dapm_kcontrol_widget(kcontrol);
  2293. struct soc_mixer_control *mc =
  2294. (struct soc_mixer_control *)kcontrol->private_value;
  2295. struct snd_soc_dapm_update *update = NULL;
  2296. if (ucontrol->value.integer.value[0] &&
  2297. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2298. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2299. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2300. update);
  2301. } else if (!ucontrol->value.integer.value[0] &&
  2302. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2303. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2304. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2305. update);
  2306. }
  2307. return 1;
  2308. }
  2309. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2310. struct snd_ctl_elem_value *ucontrol)
  2311. {
  2312. struct soc_mixer_control *mc =
  2313. (struct soc_mixer_control *)kcontrol->private_value;
  2314. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2315. ucontrol->value.integer.value[0] = 1;
  2316. else
  2317. ucontrol->value.integer.value[0] = 0;
  2318. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2319. ucontrol->value.integer.value[0]);
  2320. return 0;
  2321. }
  2322. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2323. struct snd_ctl_elem_value *ucontrol)
  2324. {
  2325. struct snd_soc_dapm_widget *widget =
  2326. snd_soc_dapm_kcontrol_widget(kcontrol);
  2327. struct soc_mixer_control *mc =
  2328. (struct soc_mixer_control *)kcontrol->private_value;
  2329. struct snd_soc_dapm_update *update = NULL;
  2330. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2331. ucontrol->value.integer.value[0]);
  2332. if (ucontrol->value.integer.value[0]) {
  2333. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2334. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2335. snd_soc_dapm_mixer_update_power(widget->dapm,
  2336. kcontrol, 1, update);
  2337. } else if (!ucontrol->value.integer.value[0]) {
  2338. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2339. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2340. snd_soc_dapm_mixer_update_power(widget->dapm,
  2341. kcontrol, 0, update);
  2342. }
  2343. return 1;
  2344. }
  2345. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2346. {
  2347. u32 session_id = 0;
  2348. u16 path_type;
  2349. struct media_format_info voc_be_media_format;
  2350. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2351. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2352. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2353. __func__, val, session_id);
  2354. mutex_lock(&routing_lock);
  2355. if (set)
  2356. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2357. else
  2358. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2359. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2360. afe_get_port_type(msm_bedais[reg].port_id) ==
  2361. MSM_AFE_PORT_TYPE_RX) {
  2362. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2363. __func__, set, msm_bedais[reg].port_id);
  2364. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2365. }
  2366. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2367. MSM_AFE_PORT_TYPE_RX)
  2368. path_type = RX_PATH;
  2369. else
  2370. path_type = TX_PATH;
  2371. if (set) {
  2372. if (msm_bedais[reg].active) {
  2373. voc_set_route_flag(session_id, path_type, 1);
  2374. memset(&voc_be_media_format, 0,
  2375. sizeof(struct media_format_info));
  2376. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2377. voc_be_media_format.num_channels =
  2378. msm_bedais[reg].channel;
  2379. voc_be_media_format.sample_rate =
  2380. msm_bedais[reg].sample_rate;
  2381. voc_be_media_format.bits_per_sample =
  2382. msm_bedais[reg].format;
  2383. /* Defaulting this to 1 for voice call usecases */
  2384. voc_be_media_format.channel_mapping[0] = 1;
  2385. voc_set_device_config(session_id, path_type,
  2386. &voc_be_media_format);
  2387. if (voc_get_route_flag(session_id, TX_PATH) &&
  2388. voc_get_route_flag(session_id, RX_PATH))
  2389. voc_enable_device(session_id);
  2390. } else {
  2391. pr_debug("%s BE is not active\n", __func__);
  2392. }
  2393. } else {
  2394. voc_set_route_flag(session_id, path_type, 0);
  2395. voc_disable_device(session_id);
  2396. }
  2397. mutex_unlock(&routing_lock);
  2398. }
  2399. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2400. struct snd_ctl_elem_value *ucontrol)
  2401. {
  2402. struct soc_mixer_control *mc =
  2403. (struct soc_mixer_control *)kcontrol->private_value;
  2404. mutex_lock(&routing_lock);
  2405. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2406. ucontrol->value.integer.value[0] = 1;
  2407. else
  2408. ucontrol->value.integer.value[0] = 0;
  2409. mutex_unlock(&routing_lock);
  2410. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2411. ucontrol->value.integer.value[0]);
  2412. return 0;
  2413. }
  2414. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2415. struct snd_ctl_elem_value *ucontrol)
  2416. {
  2417. struct snd_soc_dapm_widget *widget =
  2418. snd_soc_dapm_kcontrol_widget(kcontrol);
  2419. struct soc_mixer_control *mc =
  2420. (struct soc_mixer_control *)kcontrol->private_value;
  2421. struct snd_soc_dapm_update *update = NULL;
  2422. if (ucontrol->value.integer.value[0]) {
  2423. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2424. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2425. update);
  2426. } else {
  2427. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2428. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2429. update);
  2430. }
  2431. return 1;
  2432. }
  2433. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2434. struct snd_ctl_elem_value *ucontrol)
  2435. {
  2436. struct soc_mixer_control *mc =
  2437. (struct soc_mixer_control *)kcontrol->private_value;
  2438. mutex_lock(&routing_lock);
  2439. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2440. ucontrol->value.integer.value[0] = 1;
  2441. else
  2442. ucontrol->value.integer.value[0] = 0;
  2443. mutex_unlock(&routing_lock);
  2444. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2445. ucontrol->value.integer.value[0]);
  2446. return 0;
  2447. }
  2448. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2449. struct snd_ctl_elem_value *ucontrol)
  2450. {
  2451. struct snd_soc_dapm_widget *widget =
  2452. snd_soc_dapm_kcontrol_widget(kcontrol);
  2453. struct soc_mixer_control *mc =
  2454. (struct soc_mixer_control *)kcontrol->private_value;
  2455. struct snd_soc_dapm_update *update = NULL;
  2456. if (ucontrol->value.integer.value[0]) {
  2457. mutex_lock(&routing_lock);
  2458. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2459. mutex_unlock(&routing_lock);
  2460. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2461. update);
  2462. } else {
  2463. mutex_lock(&routing_lock);
  2464. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2465. mutex_unlock(&routing_lock);
  2466. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2467. update);
  2468. }
  2469. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2470. ucontrol->value.integer.value[0]);
  2471. return 1;
  2472. }
  2473. /*
  2474. * Return the mapping between port ID and backend ID to enable the AFE callback
  2475. * to determine the acdb_dev_id from the port id
  2476. */
  2477. int msm_pcm_get_be_id_from_port_id(int port_id)
  2478. {
  2479. int i;
  2480. int be_id = -EINVAL;
  2481. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2482. if (msm_bedais[i].port_id == port_id) {
  2483. be_id = i;
  2484. break;
  2485. }
  2486. }
  2487. return be_id;
  2488. }
  2489. /*
  2490. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2491. * correct AFE calibration information by comparing the header information.
  2492. */
  2493. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2494. {
  2495. int acdb_id = -EINVAL;
  2496. int i = 0;
  2497. int session;
  2498. int port_type = afe_get_port_type(port_id);
  2499. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2500. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2501. __func__, port_id, be_id, port_type);
  2502. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2503. session = SESSION_TYPE_TX;
  2504. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2505. session = SESSION_TYPE_RX;
  2506. } else {
  2507. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2508. acdb_id = -EINVAL;
  2509. goto exit;
  2510. }
  2511. if (be_id < 0) {
  2512. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2513. goto exit;
  2514. }
  2515. mutex_lock(&routing_lock);
  2516. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2517. MSM_FRONTEND_DAI_MAX);
  2518. if (i < MSM_FRONTEND_DAI_MAX)
  2519. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2520. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2521. __func__, i, session, be_id, acdb_id);
  2522. mutex_unlock(&routing_lock);
  2523. exit:
  2524. return acdb_id;
  2525. }
  2526. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2527. struct snd_ctl_elem_value *ucontrol)
  2528. {
  2529. ucontrol->value.integer.value[0] = fm_switch_enable;
  2530. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2531. ucontrol->value.integer.value[0]);
  2532. return 0;
  2533. }
  2534. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2535. struct snd_ctl_elem_value *ucontrol)
  2536. {
  2537. struct snd_soc_dapm_widget *widget =
  2538. snd_soc_dapm_kcontrol_widget(kcontrol);
  2539. struct snd_soc_dapm_update *update = NULL;
  2540. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2541. ucontrol->value.integer.value[0]);
  2542. if (ucontrol->value.integer.value[0])
  2543. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2544. update);
  2545. else
  2546. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2547. update);
  2548. fm_switch_enable = ucontrol->value.integer.value[0];
  2549. return 1;
  2550. }
  2551. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2552. struct snd_ctl_elem_value *ucontrol)
  2553. {
  2554. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2555. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2556. ucontrol->value.integer.value[0]);
  2557. return 0;
  2558. }
  2559. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. struct snd_soc_dapm_widget *widget =
  2563. snd_soc_dapm_kcontrol_widget(kcontrol);
  2564. struct snd_soc_dapm_update *update = NULL;
  2565. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2566. ucontrol->value.integer.value[0]);
  2567. if (ucontrol->value.integer.value[0])
  2568. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2569. 1, update);
  2570. else
  2571. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2572. 0, update);
  2573. hfp_switch_enable = ucontrol->value.integer.value[0];
  2574. return 1;
  2575. }
  2576. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2577. struct snd_ctl_elem_value *ucontrol)
  2578. {
  2579. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2580. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2581. ucontrol->value.integer.value[0]);
  2582. return 0;
  2583. }
  2584. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2585. struct snd_ctl_elem_value *ucontrol)
  2586. {
  2587. struct snd_soc_dapm_widget *widget =
  2588. snd_soc_dapm_kcontrol_widget(kcontrol);
  2589. struct snd_soc_dapm_update *update = NULL;
  2590. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2591. ucontrol->value.integer.value[0]);
  2592. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2593. if (a2dp_switch_enable)
  2594. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2595. 1, update);
  2596. else
  2597. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2598. 0, update);
  2599. return 1;
  2600. }
  2601. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2602. struct snd_ctl_elem_value *ucontrol)
  2603. {
  2604. ucontrol->value.integer.value[0] = sco_switch_enable;
  2605. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2606. ucontrol->value.integer.value[0]);
  2607. return 0;
  2608. }
  2609. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2610. struct snd_ctl_elem_value *ucontrol)
  2611. {
  2612. struct snd_soc_dapm_widget *widget =
  2613. snd_soc_dapm_kcontrol_widget(kcontrol);
  2614. struct snd_soc_dapm_update *update = NULL;
  2615. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2616. ucontrol->value.integer.value[0]);
  2617. sco_switch_enable = ucontrol->value.integer.value[0];
  2618. if (sco_switch_enable)
  2619. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2620. 1, update);
  2621. else
  2622. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2623. 0, update);
  2624. return 1;
  2625. }
  2626. #ifndef CONFIG_MI2S_DISABLE
  2627. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2628. struct snd_ctl_elem_value *ucontrol)
  2629. {
  2630. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2631. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2632. ucontrol->value.integer.value[0]);
  2633. return 0;
  2634. }
  2635. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2636. struct snd_ctl_elem_value *ucontrol)
  2637. {
  2638. struct snd_soc_dapm_widget *widget =
  2639. snd_soc_dapm_kcontrol_widget(kcontrol);
  2640. struct snd_soc_dapm_update *update = NULL;
  2641. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2642. ucontrol->value.integer.value[0]);
  2643. if (ucontrol->value.integer.value[0])
  2644. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2645. update);
  2646. else
  2647. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2648. update);
  2649. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2650. return 1;
  2651. }
  2652. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2653. struct snd_ctl_elem_value *ucontrol)
  2654. {
  2655. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2656. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2657. ucontrol->value.integer.value[0]);
  2658. return 0;
  2659. }
  2660. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2661. struct snd_ctl_elem_value *ucontrol)
  2662. {
  2663. struct snd_soc_dapm_widget *widget =
  2664. snd_soc_dapm_kcontrol_widget(kcontrol);
  2665. struct snd_soc_dapm_update *update = NULL;
  2666. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2667. ucontrol->value.integer.value[0]);
  2668. if (ucontrol->value.integer.value[0])
  2669. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2670. update);
  2671. else
  2672. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2673. update);
  2674. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2675. return 1;
  2676. }
  2677. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2678. struct snd_ctl_elem_value *ucontrol)
  2679. {
  2680. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2681. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2682. ucontrol->value.integer.value[0]);
  2683. return 0;
  2684. }
  2685. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2686. struct snd_ctl_elem_value *ucontrol)
  2687. {
  2688. struct snd_soc_dapm_widget *widget =
  2689. snd_soc_dapm_kcontrol_widget(kcontrol);
  2690. struct snd_soc_dapm_update *update = NULL;
  2691. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2692. ucontrol->value.integer.value[0]);
  2693. if (ucontrol->value.integer.value[0])
  2694. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2695. update);
  2696. else
  2697. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2698. update);
  2699. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2700. return 1;
  2701. }
  2702. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2703. struct snd_ctl_elem_value *ucontrol)
  2704. {
  2705. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2706. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2707. ucontrol->value.integer.value[0]);
  2708. return 0;
  2709. }
  2710. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2711. struct snd_ctl_elem_value *ucontrol)
  2712. {
  2713. struct snd_soc_dapm_widget *widget =
  2714. snd_soc_dapm_kcontrol_widget(kcontrol);
  2715. struct snd_soc_dapm_update *update = NULL;
  2716. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2717. ucontrol->value.integer.value[0]);
  2718. if (ucontrol->value.integer.value[0])
  2719. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2720. update);
  2721. else
  2722. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2723. update);
  2724. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2725. return 1;
  2726. }
  2727. static int msm_routing_get_tert_mi2s_switch_mixer(
  2728. struct snd_kcontrol *kcontrol,
  2729. struct snd_ctl_elem_value *ucontrol)
  2730. {
  2731. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2732. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2733. ucontrol->value.integer.value[0]);
  2734. return 0;
  2735. }
  2736. static int msm_routing_put_tert_mi2s_switch_mixer(
  2737. struct snd_kcontrol *kcontrol,
  2738. struct snd_ctl_elem_value *ucontrol)
  2739. {
  2740. struct snd_soc_dapm_widget *widget =
  2741. snd_soc_dapm_kcontrol_widget(kcontrol);
  2742. struct snd_soc_dapm_update *update = NULL;
  2743. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2744. ucontrol->value.integer.value[0]);
  2745. if (ucontrol->value.integer.value[0])
  2746. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2747. update);
  2748. else
  2749. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2750. update);
  2751. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2752. return 1;
  2753. }
  2754. static int msm_routing_get_quat_mi2s_switch_mixer(
  2755. struct snd_kcontrol *kcontrol,
  2756. struct snd_ctl_elem_value *ucontrol)
  2757. {
  2758. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2759. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2760. ucontrol->value.integer.value[0]);
  2761. return 0;
  2762. }
  2763. static int msm_routing_put_quat_mi2s_switch_mixer(
  2764. struct snd_kcontrol *kcontrol,
  2765. struct snd_ctl_elem_value *ucontrol)
  2766. {
  2767. struct snd_soc_dapm_widget *widget =
  2768. snd_soc_dapm_kcontrol_widget(kcontrol);
  2769. struct snd_soc_dapm_update *update = NULL;
  2770. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2771. ucontrol->value.integer.value[0]);
  2772. if (ucontrol->value.integer.value[0])
  2773. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2774. update);
  2775. else
  2776. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2777. update);
  2778. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2779. return 1;
  2780. }
  2781. static int msm_routing_get_quin_mi2s_switch_mixer(
  2782. struct snd_kcontrol *kcontrol,
  2783. struct snd_ctl_elem_value *ucontrol)
  2784. {
  2785. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2786. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2787. ucontrol->value.integer.value[0]);
  2788. return 0;
  2789. }
  2790. static int msm_routing_put_quin_mi2s_switch_mixer(
  2791. struct snd_kcontrol *kcontrol,
  2792. struct snd_ctl_elem_value *ucontrol)
  2793. {
  2794. struct snd_soc_dapm_widget *widget =
  2795. snd_soc_dapm_kcontrol_widget(kcontrol);
  2796. struct snd_soc_dapm_update *update = NULL;
  2797. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2798. ucontrol->value.integer.value[0]);
  2799. if (ucontrol->value.integer.value[0])
  2800. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2801. update);
  2802. else
  2803. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2804. update);
  2805. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2806. return 1;
  2807. }
  2808. static int msm_routing_get_sen_mi2s_switch_mixer(
  2809. struct snd_kcontrol *kcontrol,
  2810. struct snd_ctl_elem_value *ucontrol)
  2811. {
  2812. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2813. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2814. ucontrol->value.integer.value[0]);
  2815. return 0;
  2816. }
  2817. static int msm_routing_put_sen_mi2s_switch_mixer(
  2818. struct snd_kcontrol *kcontrol,
  2819. struct snd_ctl_elem_value *ucontrol)
  2820. {
  2821. struct snd_soc_dapm_widget *widget =
  2822. snd_soc_dapm_kcontrol_widget(kcontrol);
  2823. struct snd_soc_dapm_update *update = NULL;
  2824. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2825. ucontrol->value.integer.value[0]);
  2826. if (ucontrol->value.integer.value[0])
  2827. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2828. update);
  2829. else
  2830. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2831. update);
  2832. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2833. return 1;
  2834. }
  2835. #endif
  2836. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2837. struct snd_ctl_elem_value *ucontrol)
  2838. {
  2839. ucontrol->value.integer.value[0] = usb_switch_enable;
  2840. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2841. ucontrol->value.integer.value[0]);
  2842. return 0;
  2843. }
  2844. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2845. struct snd_ctl_elem_value *ucontrol)
  2846. {
  2847. struct snd_soc_dapm_widget *widget =
  2848. snd_soc_dapm_kcontrol_widget(kcontrol);
  2849. struct snd_soc_dapm_update *update = NULL;
  2850. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2851. ucontrol->value.integer.value[0]);
  2852. if (ucontrol->value.integer.value[0])
  2853. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2854. 1, update);
  2855. else
  2856. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2857. 0, update);
  2858. usb_switch_enable = ucontrol->value.integer.value[0];
  2859. return 1;
  2860. }
  2861. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2862. struct snd_ctl_elem_value *ucontrol)
  2863. {
  2864. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2865. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2866. ucontrol->value.integer.value[0]);
  2867. return 0;
  2868. }
  2869. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2870. struct snd_ctl_elem_value *ucontrol)
  2871. {
  2872. struct snd_soc_dapm_widget *widget =
  2873. snd_soc_dapm_kcontrol_widget(kcontrol);
  2874. struct snd_soc_dapm_update *update = NULL;
  2875. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2876. ucontrol->value.integer.value[0]);
  2877. if (ucontrol->value.integer.value[0])
  2878. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2879. update);
  2880. else
  2881. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2882. update);
  2883. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2884. return 1;
  2885. }
  2886. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2887. u8 *fe_idx)
  2888. {
  2889. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2890. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2891. fe_id = MSM_FRONTEND_DAI_LSM1;
  2892. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2893. fe_id = MSM_FRONTEND_DAI_LSM2;
  2894. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2895. fe_id = MSM_FRONTEND_DAI_LSM3;
  2896. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2897. fe_id = MSM_FRONTEND_DAI_LSM4;
  2898. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2899. fe_id = MSM_FRONTEND_DAI_LSM5;
  2900. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2901. fe_id = MSM_FRONTEND_DAI_LSM6;
  2902. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2903. fe_id = MSM_FRONTEND_DAI_LSM7;
  2904. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2905. fe_id = MSM_FRONTEND_DAI_LSM8;
  2906. } else {
  2907. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2908. kcontrol->id.name);
  2909. return;
  2910. }
  2911. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2912. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2913. }
  2914. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2915. struct snd_ctl_elem_value *ucontrol)
  2916. {
  2917. u8 fe_idx = 0;
  2918. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2919. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2920. return 0;
  2921. }
  2922. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2923. struct snd_ctl_elem_value *ucontrol)
  2924. {
  2925. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2926. int mux = ucontrol->value.enumerated.item[0];
  2927. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2928. u8 fe_idx = 0;
  2929. if (mux >= e->items) {
  2930. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2931. return -EINVAL;
  2932. }
  2933. pr_debug("%s: LSM enable %ld\n", __func__,
  2934. ucontrol->value.integer.value[0]);
  2935. switch (ucontrol->value.integer.value[0]) {
  2936. case 1:
  2937. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2938. break;
  2939. case 2:
  2940. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2941. break;
  2942. case 3:
  2943. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2944. break;
  2945. case 4:
  2946. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2947. break;
  2948. case 5:
  2949. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2950. break;
  2951. case 6:
  2952. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2953. break;
  2954. case 7:
  2955. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2956. break;
  2957. case 8:
  2958. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2959. break;
  2960. case 9:
  2961. lsm_port = ADM_LSM_PORT_ID;
  2962. break;
  2963. case 10:
  2964. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2965. break;
  2966. case 11:
  2967. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2968. break;
  2969. case 12:
  2970. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2971. break;
  2972. case 13:
  2973. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2974. break;
  2975. case 14:
  2976. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2977. break;
  2978. case 15:
  2979. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2980. break;
  2981. case 16:
  2982. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2983. break;
  2984. default:
  2985. pr_err("Default lsm port");
  2986. break;
  2987. }
  2988. set_lsm_port(lsm_port);
  2989. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2990. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2991. return 0;
  2992. }
  2993. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2994. struct snd_ctl_elem_value *ucontrol)
  2995. {
  2996. int i;
  2997. u16 port_id;
  2998. enum afe_mad_type mad_type;
  2999. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  3000. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  3001. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  3002. strlen(lsm_port_text[i])))
  3003. break;
  3004. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  3005. pr_warn("%s: Invalid id name %s\n", __func__,
  3006. kcontrol->id.name);
  3007. return -EINVAL;
  3008. }
  3009. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  3010. /*Check for Tertiary/Quaternary/INT3 TX port*/
  3011. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  3012. strlen(lsm_port_text[7])))
  3013. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3014. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  3015. strlen(lsm_port_text[8])))
  3016. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3017. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  3018. strlen(lsm_port_text[10])))
  3019. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3020. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  3021. strlen(lsm_port_text[14])))
  3022. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  3023. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  3024. strlen(lsm_port_text[15])))
  3025. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  3026. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3027. strlen(lsm_port_text[16])))
  3028. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3029. mad_type = afe_port_get_mad_type(port_id);
  3030. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3031. mad_type);
  3032. switch (mad_type) {
  3033. case MAD_HW_NONE:
  3034. ucontrol->value.integer.value[0] = MADNONE;
  3035. break;
  3036. case MAD_HW_AUDIO:
  3037. ucontrol->value.integer.value[0] = MADAUDIO;
  3038. break;
  3039. case MAD_HW_BEACON:
  3040. ucontrol->value.integer.value[0] = MADBEACON;
  3041. break;
  3042. case MAD_HW_ULTRASOUND:
  3043. ucontrol->value.integer.value[0] = MADULTRASOUND;
  3044. break;
  3045. case MAD_SW_AUDIO:
  3046. ucontrol->value.integer.value[0] = MADSWAUDIO;
  3047. break;
  3048. default:
  3049. pr_warn("%s: Unknown\n", __func__);
  3050. return -EINVAL;
  3051. }
  3052. return 0;
  3053. }
  3054. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  3055. struct snd_ctl_elem_value *ucontrol)
  3056. {
  3057. int i;
  3058. u16 port_id;
  3059. enum afe_mad_type mad_type;
  3060. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  3061. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  3062. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  3063. strlen(lsm_port_text[i])))
  3064. break;
  3065. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  3066. pr_warn("%s: Invalid id name %s\n", __func__,
  3067. kcontrol->id.name);
  3068. return -EINVAL;
  3069. }
  3070. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  3071. switch (ucontrol->value.integer.value[0]) {
  3072. case MADNONE:
  3073. mad_type = MAD_HW_NONE;
  3074. break;
  3075. case MADAUDIO:
  3076. mad_type = MAD_HW_AUDIO;
  3077. break;
  3078. case MADBEACON:
  3079. mad_type = MAD_HW_BEACON;
  3080. break;
  3081. case MADULTRASOUND:
  3082. mad_type = MAD_HW_ULTRASOUND;
  3083. break;
  3084. case MADSWAUDIO:
  3085. mad_type = MAD_SW_AUDIO;
  3086. break;
  3087. default:
  3088. pr_warn("%s: Unknown\n", __func__);
  3089. return -EINVAL;
  3090. }
  3091. /*Check for Tertiary/Quaternary/INT3 TX port*/
  3092. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  3093. strlen(lsm_port_text[7])))
  3094. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3095. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  3096. strlen(lsm_port_text[8])))
  3097. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3098. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  3099. strlen(lsm_port_text[10])))
  3100. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3101. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  3102. strlen(lsm_port_text[14])))
  3103. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  3104. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  3105. strlen(lsm_port_text[15])))
  3106. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  3107. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3108. strlen(lsm_port_text[16])))
  3109. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3110. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3111. mad_type);
  3112. return afe_port_set_mad_type(port_id, mad_type);
  3113. }
  3114. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  3115. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  3116. adm_override_chs_text);
  3117. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  3118. {
  3119. int backend_id;
  3120. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  3121. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  3122. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  3123. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  3124. } else {
  3125. pr_err("%s: unsupported backend id: %s",
  3126. __func__, kcontrol->id.name);
  3127. return -EINVAL;
  3128. }
  3129. return backend_id;
  3130. }
  3131. static int msm_routing_adm_channel_config_get(
  3132. struct snd_kcontrol *kcontrol,
  3133. struct snd_ctl_elem_value *ucontrol)
  3134. {
  3135. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3136. if (backend_id >= 0) {
  3137. mutex_lock(&routing_lock);
  3138. ucontrol->value.integer.value[0] =
  3139. msm_bedais[backend_id].adm_override_ch;
  3140. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  3141. ucontrol->value.integer.value[0], backend_id);
  3142. mutex_unlock(&routing_lock);
  3143. }
  3144. return 0;
  3145. }
  3146. static int msm_routing_adm_channel_config_put(
  3147. struct snd_kcontrol *kcontrol,
  3148. struct snd_ctl_elem_value *ucontrol)
  3149. {
  3150. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3151. if (backend_id >= 0) {
  3152. mutex_lock(&routing_lock);
  3153. msm_bedais[backend_id].adm_override_ch =
  3154. ucontrol->value.integer.value[0];
  3155. pr_debug("%s:updating BE :%d adm channels: %d\n",
  3156. __func__, backend_id,
  3157. msm_bedais[backend_id].adm_override_ch);
  3158. mutex_unlock(&routing_lock);
  3159. }
  3160. return 0;
  3161. }
  3162. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  3163. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  3164. msm_routing_adm_channel_config_get,
  3165. msm_routing_adm_channel_config_put),
  3166. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  3167. msm_routing_adm_channel_config_get,
  3168. msm_routing_adm_channel_config_put),
  3169. };
  3170. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  3171. struct snd_ctl_elem_value *ucontrol)
  3172. {
  3173. mutex_lock(&routing_lock);
  3174. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  3175. mutex_unlock(&routing_lock);
  3176. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3177. ucontrol->value.integer.value[0]);
  3178. return 0;
  3179. };
  3180. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  3181. struct snd_ctl_elem_value *ucontrol)
  3182. {
  3183. struct aanc_data aanc_info;
  3184. mutex_lock(&routing_lock);
  3185. memset(&aanc_info, 0x00, sizeof(aanc_info));
  3186. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3187. ucontrol->value.integer.value[0]);
  3188. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  3189. if (ucontrol->value.integer.value[0] == 0) {
  3190. aanc_info.aanc_active = false;
  3191. aanc_info.aanc_tx_port = 0;
  3192. aanc_info.aanc_rx_port = 0;
  3193. } else {
  3194. aanc_info.aanc_active = true;
  3195. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  3196. aanc_info.aanc_tx_port =
  3197. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  3198. }
  3199. afe_set_aanc_info(&aanc_info);
  3200. mutex_unlock(&routing_lock);
  3201. return 0;
  3202. };
  3203. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3204. struct snd_ctl_elem_value *ucontrol)
  3205. {
  3206. int idx = 0, shift = 0;
  3207. struct soc_mixer_control *mc =
  3208. (struct soc_mixer_control *)kcontrol->private_value;
  3209. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3210. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3211. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3212. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3213. return -EINVAL;
  3214. }
  3215. if (test_bit(shift,
  3216. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3217. ucontrol->value.integer.value[0] = 1;
  3218. else
  3219. ucontrol->value.integer.value[0] = 0;
  3220. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3221. ucontrol->value.integer.value[0]);
  3222. return 0;
  3223. }
  3224. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3225. struct snd_ctl_elem_value *ucontrol)
  3226. {
  3227. int idx = 0, shift = 0;
  3228. struct soc_mixer_control *mc =
  3229. (struct soc_mixer_control *)kcontrol->private_value;
  3230. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3231. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3232. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3233. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3234. return -EINVAL;
  3235. }
  3236. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3237. __func__, mc->shift, mc->rshift,
  3238. ucontrol->value.integer.value[0], idx, shift);
  3239. if (ucontrol->value.integer.value[0]) {
  3240. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3241. msm_bedais[mc->rshift].port_id);
  3242. set_bit(shift,
  3243. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3244. } else {
  3245. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3246. msm_bedais[mc->rshift].port_id);
  3247. clear_bit(shift,
  3248. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3249. }
  3250. return 1;
  3251. }
  3252. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3253. struct snd_ctl_elem_value *ucontrol)
  3254. {
  3255. u16 fe_id = 0;
  3256. fe_id = ((struct soc_mixer_control *)
  3257. kcontrol->private_value)->shift;
  3258. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3259. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3260. return -EINVAL;
  3261. }
  3262. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3263. return 0;
  3264. }
  3265. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3266. struct snd_ctl_elem_value *ucontrol)
  3267. {
  3268. u16 fe_id = 0;
  3269. fe_id = ((struct soc_mixer_control *)
  3270. kcontrol->private_value)->shift;
  3271. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3272. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3273. return -EINVAL;
  3274. }
  3275. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3276. return 1;
  3277. }
  3278. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3279. struct snd_ctl_elem_value *ucontrol)
  3280. {
  3281. u16 fe_id = 0;
  3282. fe_id = ((struct soc_multi_mixer_control *)
  3283. kcontrol->private_value)->shift;
  3284. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3285. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3286. return -EINVAL;
  3287. }
  3288. ucontrol->value.integer.value[0] =
  3289. channel_mixer[fe_id].output_channel;
  3290. return 0;
  3291. }
  3292. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3293. struct snd_ctl_elem_value *ucontrol)
  3294. {
  3295. u16 fe_id = 0;
  3296. fe_id = ((struct soc_multi_mixer_control *)
  3297. kcontrol->private_value)->shift;
  3298. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3299. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3300. return -EINVAL;
  3301. }
  3302. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3303. fe_id,
  3304. (unsigned int)(ucontrol->value.integer.value[0]));
  3305. channel_mixer[fe_id].output_channel =
  3306. (unsigned int)(ucontrol->value.integer.value[0]);
  3307. return 1;
  3308. }
  3309. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3310. /* If new backend is added, need update this array */
  3311. static const char *const be_name[] = {
  3312. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3313. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3314. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3315. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3316. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3317. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3318. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3319. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3320. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3321. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3322. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3323. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3324. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3325. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3326. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3327. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3328. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3329. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3330. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3331. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3332. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3333. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3334. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3335. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3336. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3337. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3338. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3339. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3340. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3341. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3342. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3343. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3344. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3345. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3346. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3347. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3348. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3349. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3350. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3351. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3352. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3353. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3354. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3355. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3356. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3357. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3358. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3359. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3360. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3361. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3362. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3363. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3364. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3365. "SEC_META_MI2S_RX", "PROXY_RX", "PROXY_TX", "HDMI_RX_MS"
  3366. };
  3367. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3368. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3369. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3370. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3371. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3372. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3373. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3374. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3375. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3376. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3377. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3378. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3379. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3380. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3381. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3382. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3383. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3384. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3385. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3386. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3387. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3388. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3389. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3390. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3391. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3392. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3393. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3394. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3395. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3396. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3397. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3398. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3399. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3400. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3401. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3402. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3403. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3404. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3405. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3406. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3407. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3408. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3409. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3410. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3411. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3412. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3413. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3414. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3415. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3416. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3417. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3418. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3419. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3420. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3421. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3422. unsigned int channels,
  3423. unsigned int items, const char *const names[])
  3424. {
  3425. if (uinfo->value.enumerated.item >= items)
  3426. uinfo->value.enumerated.item = items - 1;
  3427. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3428. sizeof(uinfo->value.enumerated.name),
  3429. "ALSA: too long item name '%s'\n",
  3430. names[uinfo->value.enumerated.item]);
  3431. strlcpy(uinfo->value.enumerated.name,
  3432. names[uinfo->value.enumerated.item],
  3433. sizeof(uinfo->value.enumerated.name));
  3434. return 0;
  3435. }
  3436. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3437. struct snd_ctl_elem_info *uinfo)
  3438. {
  3439. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3440. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3441. uinfo->count = 1;
  3442. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3443. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3444. return 0;
  3445. }
  3446. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3447. struct snd_ctl_elem_value *ucontrol)
  3448. {
  3449. u16 fe_id = 0;
  3450. fe_id = ((struct soc_enum *)
  3451. kcontrol->private_value)->shift_l;
  3452. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3453. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3454. return -EINVAL;
  3455. }
  3456. pr_debug("%s: FE %d %s\n", __func__,
  3457. fe_id,
  3458. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3459. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3460. return 0;
  3461. }
  3462. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3463. struct snd_ctl_elem_value *ucontrol)
  3464. {
  3465. u16 fe_id = 0;
  3466. fe_id = ((struct soc_enum *)
  3467. kcontrol->private_value)->shift_l;
  3468. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3469. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3470. return -EINVAL;
  3471. }
  3472. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3473. pr_debug("%s: %s FE %d\n", __func__,
  3474. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3475. fe_id);
  3476. return 0;
  3477. }
  3478. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3479. struct snd_ctl_elem_info *uinfo)
  3480. {
  3481. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3482. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3483. uinfo->count = 1;
  3484. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3485. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3486. return 0;
  3487. }
  3488. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3489. struct snd_ctl_elem_value *ucontrol)
  3490. {
  3491. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3492. u16 fe_id = 0, in_ch = 0;
  3493. fe_id = e->shift_l;
  3494. in_ch = e->shift_r;
  3495. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3496. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3497. return -EINVAL;
  3498. }
  3499. if (in_ch >= ADM_MAX_CHANNELS) {
  3500. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3501. return -EINVAL;
  3502. }
  3503. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3504. return 1;
  3505. }
  3506. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3507. struct snd_ctl_elem_value *ucontrol)
  3508. {
  3509. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3510. u16 fe_id = 0, in_ch = 0;
  3511. fe_id = e->shift_l;
  3512. in_ch = e->shift_r;
  3513. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3514. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3515. return -EINVAL;
  3516. }
  3517. if (in_ch >= ADM_MAX_CHANNELS) {
  3518. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3519. return -EINVAL;
  3520. }
  3521. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3522. return 1;
  3523. }
  3524. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3525. struct snd_ctl_elem_info *uinfo)
  3526. {
  3527. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3528. uinfo->count = ADM_MAX_CHANNELS;
  3529. uinfo->value.integer.min = 0;
  3530. uinfo->value.integer.max = WEIGHT_0_DB;
  3531. return 0;
  3532. }
  3533. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3534. struct snd_ctl_elem_value *ucontrol)
  3535. {
  3536. u16 fe_id = 0, out_ch = 0;
  3537. int i, weight;
  3538. fe_id = ((struct soc_multi_mixer_control *)
  3539. kcontrol->private_value)->shift;
  3540. out_ch = ((struct soc_multi_mixer_control *)
  3541. kcontrol->private_value)->rshift;
  3542. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3543. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3544. return -EINVAL;
  3545. }
  3546. if (out_ch >= ADM_MAX_CHANNELS) {
  3547. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3548. return -EINVAL;
  3549. }
  3550. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3551. __func__, fe_id,
  3552. ucontrol->value.integer.value[0],
  3553. ucontrol->value.integer.value[1],
  3554. ucontrol->value.integer.value[2],
  3555. ucontrol->value.integer.value[3],
  3556. ucontrol->value.integer.value[4],
  3557. ucontrol->value.integer.value[5],
  3558. ucontrol->value.integer.value[6],
  3559. ucontrol->value.integer.value[7]);
  3560. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3561. weight = ucontrol->value.integer.value[i];
  3562. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3563. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3564. __func__, fe_id, out_ch, i,
  3565. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3566. }
  3567. return 0;
  3568. }
  3569. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3570. struct snd_ctl_elem_value *ucontrol)
  3571. {
  3572. u16 fe_id = 0, out_ch = 0;
  3573. int i;
  3574. fe_id = ((struct soc_multi_mixer_control *)
  3575. kcontrol->private_value)->shift;
  3576. out_ch = ((struct soc_multi_mixer_control *)
  3577. kcontrol->private_value)->rshift;
  3578. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3579. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3580. return -EINVAL;
  3581. }
  3582. if (out_ch >= ADM_MAX_CHANNELS) {
  3583. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3584. return -EINVAL;
  3585. }
  3586. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3587. ucontrol->value.integer.value[i] =
  3588. channel_mixer[fe_id].channel_weight[out_ch][i];
  3589. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3590. __func__, fe_id,
  3591. ucontrol->value.integer.value[0],
  3592. ucontrol->value.integer.value[1],
  3593. ucontrol->value.integer.value[2],
  3594. ucontrol->value.integer.value[3],
  3595. ucontrol->value.integer.value[4],
  3596. ucontrol->value.integer.value[5],
  3597. ucontrol->value.integer.value[6],
  3598. ucontrol->value.integer.value[7]);
  3599. return 0;
  3600. }
  3601. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3602. struct snd_ctl_elem_info *uinfo)
  3603. {
  3604. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3605. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3606. /* Valid channel map value ranges from 1 to 64 */
  3607. uinfo->value.integer.min = 0;
  3608. uinfo->value.integer.max = 64;
  3609. return 0;
  3610. }
  3611. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3612. struct snd_ctl_elem_value *ucontrol)
  3613. {
  3614. u16 fe_id = 0;
  3615. int i, ch_map;
  3616. fe_id = ((struct soc_multi_mixer_control *)
  3617. kcontrol->private_value)->shift;
  3618. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3619. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3620. return -EINVAL;
  3621. }
  3622. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3623. ch_map = ucontrol->value.integer.value[i];
  3624. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3625. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3626. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3627. }
  3628. /* Make override_out_ch_map false if ch map is reset */
  3629. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3630. channel_mixer[fe_id].override_out_ch_map = false;
  3631. else
  3632. channel_mixer[fe_id].override_out_ch_map = true;
  3633. return 0;
  3634. }
  3635. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3636. struct snd_ctl_elem_value *ucontrol)
  3637. {
  3638. u16 fe_id = 0;
  3639. int i;
  3640. fe_id = ((struct soc_multi_mixer_control *)
  3641. kcontrol->private_value)->shift;
  3642. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3643. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3644. return -EINVAL;
  3645. }
  3646. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3647. ucontrol->value.integer.value[i] =
  3648. channel_mixer[fe_id].out_ch_map[i];
  3649. return 0;
  3650. }
  3651. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3652. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3653. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3654. msm_pcm_get_channel_rule_index,
  3655. msm_pcm_put_channel_rule_index),
  3656. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3657. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3658. msm_pcm_get_channel_rule_index,
  3659. msm_pcm_put_channel_rule_index),
  3660. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3662. msm_pcm_get_channel_rule_index,
  3663. msm_pcm_put_channel_rule_index),
  3664. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3665. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3666. msm_pcm_get_channel_rule_index,
  3667. msm_pcm_put_channel_rule_index),
  3668. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3669. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3670. msm_pcm_get_channel_rule_index,
  3671. msm_pcm_put_channel_rule_index),
  3672. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3674. msm_pcm_get_channel_rule_index,
  3675. msm_pcm_put_channel_rule_index),
  3676. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3677. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3678. msm_pcm_get_channel_rule_index,
  3679. msm_pcm_put_channel_rule_index),
  3680. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3681. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3682. msm_pcm_get_channel_rule_index,
  3683. msm_pcm_put_channel_rule_index),
  3684. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3686. msm_pcm_get_channel_rule_index,
  3687. msm_pcm_put_channel_rule_index),
  3688. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3689. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3690. msm_pcm_get_channel_rule_index,
  3691. msm_pcm_put_channel_rule_index),
  3692. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3693. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3694. msm_pcm_get_channel_rule_index,
  3695. msm_pcm_put_channel_rule_index),
  3696. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3698. msm_pcm_get_out_chs,
  3699. msm_pcm_put_out_chs),
  3700. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3701. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3702. msm_pcm_get_out_chs,
  3703. msm_pcm_put_out_chs),
  3704. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3705. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3706. msm_pcm_get_out_chs,
  3707. msm_pcm_put_out_chs),
  3708. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3709. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3710. msm_pcm_get_out_chs,
  3711. msm_pcm_put_out_chs),
  3712. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3713. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3714. msm_pcm_get_out_chs,
  3715. msm_pcm_put_out_chs),
  3716. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3718. msm_pcm_get_out_chs,
  3719. msm_pcm_put_out_chs),
  3720. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3721. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3722. msm_pcm_get_out_chs,
  3723. msm_pcm_put_out_chs),
  3724. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3725. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3726. msm_pcm_get_out_chs,
  3727. msm_pcm_put_out_chs),
  3728. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3730. msm_pcm_get_out_chs,
  3731. msm_pcm_put_out_chs),
  3732. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3733. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3734. msm_pcm_get_out_chs,
  3735. msm_pcm_put_out_chs),
  3736. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3738. msm_pcm_get_out_chs,
  3739. msm_pcm_put_out_chs),
  3740. {
  3741. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3742. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3743. .name = "MultiMedia1 Channel Mixer",
  3744. .info = msm_pcm_channel_mixer_info,
  3745. .get = msm_pcm_channel_mixer_get,
  3746. .put = msm_pcm_channel_mixer_put,
  3747. .private_value = (unsigned long)&(mm1_channel_mux)
  3748. },
  3749. {
  3750. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3751. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3752. .name = "MultiMedia2 Channel Mixer",
  3753. .info = msm_pcm_channel_mixer_info,
  3754. .get = msm_pcm_channel_mixer_get,
  3755. .put = msm_pcm_channel_mixer_put,
  3756. .private_value = (unsigned long)&(mm2_channel_mux)
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia3 Channel Mixer",
  3762. .info = msm_pcm_channel_mixer_info,
  3763. .get = msm_pcm_channel_mixer_get,
  3764. .put = msm_pcm_channel_mixer_put,
  3765. .private_value = (unsigned long)&(mm3_channel_mux)
  3766. },
  3767. {
  3768. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3769. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3770. .name = "MultiMedia4 Channel Mixer",
  3771. .info = msm_pcm_channel_mixer_info,
  3772. .get = msm_pcm_channel_mixer_get,
  3773. .put = msm_pcm_channel_mixer_put,
  3774. .private_value = (unsigned long)&(mm4_channel_mux)
  3775. },
  3776. {
  3777. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3778. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3779. .name = "MultiMedia18 Channel Mixer",
  3780. .info = msm_pcm_channel_mixer_info,
  3781. .get = msm_pcm_channel_mixer_get,
  3782. .put = msm_pcm_channel_mixer_put,
  3783. .private_value = (unsigned long)&(mm18_channel_mux)
  3784. },
  3785. {
  3786. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3787. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3788. .name = "MultiMedia19 Channel Mixer",
  3789. .info = msm_pcm_channel_mixer_info,
  3790. .get = msm_pcm_channel_mixer_get,
  3791. .put = msm_pcm_channel_mixer_put,
  3792. .private_value = (unsigned long)&(mm19_channel_mux)
  3793. },
  3794. {
  3795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3796. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3797. .name = "MultiMedia28 Channel Mixer",
  3798. .info = msm_pcm_channel_mixer_info,
  3799. .get = msm_pcm_channel_mixer_get,
  3800. .put = msm_pcm_channel_mixer_put,
  3801. .private_value = (unsigned long)&(mm28_channel_mux)
  3802. },
  3803. {
  3804. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3805. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3806. .name = "MultiMedia29 Channel Mixer",
  3807. .info = msm_pcm_channel_mixer_info,
  3808. .get = msm_pcm_channel_mixer_get,
  3809. .put = msm_pcm_channel_mixer_put,
  3810. .private_value = (unsigned long)&(mm29_channel_mux)
  3811. },
  3812. {
  3813. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3814. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3815. .name = "MultiMedia30 Channel Mixer",
  3816. .info = msm_pcm_channel_mixer_info,
  3817. .get = msm_pcm_channel_mixer_get,
  3818. .put = msm_pcm_channel_mixer_put,
  3819. .private_value = (unsigned long)&(mm30_channel_mux)
  3820. },
  3821. {
  3822. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3823. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3824. .name = "MultiMedia1 Output Channel1",
  3825. .info = msm_pcm_channel_weight_info,
  3826. .get = msm_pcm_channel_weight_get,
  3827. .put = msm_pcm_channel_weight_put,
  3828. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3829. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3830. },
  3831. {
  3832. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3833. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3834. .name = "MultiMedia1 Output Channel2",
  3835. .info = msm_pcm_channel_weight_info,
  3836. .get = msm_pcm_channel_weight_get,
  3837. .put = msm_pcm_channel_weight_put,
  3838. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3839. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3840. },
  3841. {
  3842. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3843. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3844. .name = "MultiMedia1 Output Channel3",
  3845. .info = msm_pcm_channel_weight_info,
  3846. .get = msm_pcm_channel_weight_get,
  3847. .put = msm_pcm_channel_weight_put,
  3848. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3849. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3850. },
  3851. {
  3852. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3853. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3854. .name = "MultiMedia1 Output Channel4",
  3855. .info = msm_pcm_channel_weight_info,
  3856. .get = msm_pcm_channel_weight_get,
  3857. .put = msm_pcm_channel_weight_put,
  3858. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3859. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3860. },
  3861. {
  3862. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3863. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3864. .name = "MultiMedia1 Output Channel5",
  3865. .info = msm_pcm_channel_weight_info,
  3866. .get = msm_pcm_channel_weight_get,
  3867. .put = msm_pcm_channel_weight_put,
  3868. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3869. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3870. },
  3871. {
  3872. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3873. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3874. .name = "MultiMedia1 Output Channel6",
  3875. .info = msm_pcm_channel_weight_info,
  3876. .get = msm_pcm_channel_weight_get,
  3877. .put = msm_pcm_channel_weight_put,
  3878. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3879. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3880. },
  3881. {
  3882. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3883. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3884. .name = "MultiMedia1 Output Channel7",
  3885. .info = msm_pcm_channel_weight_info,
  3886. .get = msm_pcm_channel_weight_get,
  3887. .put = msm_pcm_channel_weight_put,
  3888. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3889. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3890. },
  3891. {
  3892. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3893. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3894. .name = "MultiMedia1 Output Channel8",
  3895. .info = msm_pcm_channel_weight_info,
  3896. .get = msm_pcm_channel_weight_get,
  3897. .put = msm_pcm_channel_weight_put,
  3898. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3899. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3900. },
  3901. {
  3902. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3903. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3904. .name = "MultiMedia1 Output Channel9",
  3905. .info = msm_pcm_channel_weight_info,
  3906. .get = msm_pcm_channel_weight_get,
  3907. .put = msm_pcm_channel_weight_put,
  3908. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3909. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3910. },
  3911. {
  3912. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3913. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3914. .name = "MultiMedia1 Output Channel10",
  3915. .info = msm_pcm_channel_weight_info,
  3916. .get = msm_pcm_channel_weight_get,
  3917. .put = msm_pcm_channel_weight_put,
  3918. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3919. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3920. },
  3921. {
  3922. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3923. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3924. .name = "MultiMedia1 Output Channel11",
  3925. .info = msm_pcm_channel_weight_info,
  3926. .get = msm_pcm_channel_weight_get,
  3927. .put = msm_pcm_channel_weight_put,
  3928. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3929. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3930. },
  3931. {
  3932. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3933. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3934. .name = "MultiMedia1 Output Channel12",
  3935. .info = msm_pcm_channel_weight_info,
  3936. .get = msm_pcm_channel_weight_get,
  3937. .put = msm_pcm_channel_weight_put,
  3938. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3939. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3940. },
  3941. {
  3942. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3943. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3944. .name = "MultiMedia1 Output Channel13",
  3945. .info = msm_pcm_channel_weight_info,
  3946. .get = msm_pcm_channel_weight_get,
  3947. .put = msm_pcm_channel_weight_put,
  3948. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3949. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3950. },
  3951. {
  3952. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3953. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3954. .name = "MultiMedia1 Output Channel14",
  3955. .info = msm_pcm_channel_weight_info,
  3956. .get = msm_pcm_channel_weight_get,
  3957. .put = msm_pcm_channel_weight_put,
  3958. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3959. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3960. },
  3961. {
  3962. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3963. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3964. .name = "MultiMedia2 Output Channel1",
  3965. .info = msm_pcm_channel_weight_info,
  3966. .get = msm_pcm_channel_weight_get,
  3967. .put = msm_pcm_channel_weight_put,
  3968. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3969. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3970. },
  3971. {
  3972. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3973. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3974. .name = "MultiMedia2 Output Channel2",
  3975. .info = msm_pcm_channel_weight_info,
  3976. .get = msm_pcm_channel_weight_get,
  3977. .put = msm_pcm_channel_weight_put,
  3978. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3979. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3980. },
  3981. {
  3982. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3984. .name = "MultiMedia2 Output Channel3",
  3985. .info = msm_pcm_channel_weight_info,
  3986. .get = msm_pcm_channel_weight_get,
  3987. .put = msm_pcm_channel_weight_put,
  3988. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3989. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3990. },
  3991. {
  3992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3993. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3994. .name = "MultiMedia3 Output Channel1",
  3995. .info = msm_pcm_channel_weight_info,
  3996. .get = msm_pcm_channel_weight_get,
  3997. .put = msm_pcm_channel_weight_put,
  3998. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3999. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  4000. },
  4001. {
  4002. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4003. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4004. .name = "MultiMedia3 Output Channel2",
  4005. .info = msm_pcm_channel_weight_info,
  4006. .get = msm_pcm_channel_weight_get,
  4007. .put = msm_pcm_channel_weight_put,
  4008. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4009. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  4010. },
  4011. {
  4012. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4014. .name = "MultiMedia18 Output Channel1",
  4015. .info = msm_pcm_channel_weight_info,
  4016. .get = msm_pcm_channel_weight_get,
  4017. .put = msm_pcm_channel_weight_put,
  4018. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4019. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  4020. },
  4021. {
  4022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4023. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4024. .name = "MultiMedia18 Output Channel2",
  4025. .info = msm_pcm_channel_weight_info,
  4026. .get = msm_pcm_channel_weight_get,
  4027. .put = msm_pcm_channel_weight_put,
  4028. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4029. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  4030. },
  4031. {
  4032. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4033. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4034. .name = "MultiMedia18 Output Channel3",
  4035. .info = msm_pcm_channel_weight_info,
  4036. .get = msm_pcm_channel_weight_get,
  4037. .put = msm_pcm_channel_weight_put,
  4038. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4039. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  4040. },
  4041. {
  4042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4044. .name = "MultiMedia18 Output Channel4",
  4045. .info = msm_pcm_channel_weight_info,
  4046. .get = msm_pcm_channel_weight_get,
  4047. .put = msm_pcm_channel_weight_put,
  4048. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4049. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  4050. },
  4051. {
  4052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4053. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4054. .name = "MultiMedia18 Output Channel5",
  4055. .info = msm_pcm_channel_weight_info,
  4056. .get = msm_pcm_channel_weight_get,
  4057. .put = msm_pcm_channel_weight_put,
  4058. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4059. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  4060. },
  4061. {
  4062. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4063. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4064. .name = "MultiMedia18 Output Channel6",
  4065. .info = msm_pcm_channel_weight_info,
  4066. .get = msm_pcm_channel_weight_get,
  4067. .put = msm_pcm_channel_weight_put,
  4068. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4069. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  4070. },
  4071. {
  4072. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4074. .name = "MultiMedia18 Output Channel7",
  4075. .info = msm_pcm_channel_weight_info,
  4076. .get = msm_pcm_channel_weight_get,
  4077. .put = msm_pcm_channel_weight_put,
  4078. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4079. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  4080. },
  4081. {
  4082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4083. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4084. .name = "MultiMedia18 Output Channel8",
  4085. .info = msm_pcm_channel_weight_info,
  4086. .get = msm_pcm_channel_weight_get,
  4087. .put = msm_pcm_channel_weight_put,
  4088. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4089. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  4090. },
  4091. {
  4092. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4093. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4094. .name = "MultiMedia18 Output Channel9",
  4095. .info = msm_pcm_channel_weight_info,
  4096. .get = msm_pcm_channel_weight_get,
  4097. .put = msm_pcm_channel_weight_put,
  4098. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4099. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  4100. },
  4101. {
  4102. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4103. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4104. .name = "MultiMedia18 Output Channel10",
  4105. .info = msm_pcm_channel_weight_info,
  4106. .get = msm_pcm_channel_weight_get,
  4107. .put = msm_pcm_channel_weight_put,
  4108. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4109. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  4110. },
  4111. {
  4112. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4113. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4114. .name = "MultiMedia18 Output Channel11",
  4115. .info = msm_pcm_channel_weight_info,
  4116. .get = msm_pcm_channel_weight_get,
  4117. .put = msm_pcm_channel_weight_put,
  4118. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4119. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  4120. },
  4121. {
  4122. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4123. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4124. .name = "MultiMedia18 Output Channel12",
  4125. .info = msm_pcm_channel_weight_info,
  4126. .get = msm_pcm_channel_weight_get,
  4127. .put = msm_pcm_channel_weight_put,
  4128. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4129. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  4130. },
  4131. {
  4132. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4133. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4134. .name = "MultiMedia18 Output Channel13",
  4135. .info = msm_pcm_channel_weight_info,
  4136. .get = msm_pcm_channel_weight_get,
  4137. .put = msm_pcm_channel_weight_put,
  4138. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4139. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  4140. },
  4141. {
  4142. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4143. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4144. .name = "MultiMedia18 Output Channel14",
  4145. .info = msm_pcm_channel_weight_info,
  4146. .get = msm_pcm_channel_weight_get,
  4147. .put = msm_pcm_channel_weight_put,
  4148. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4149. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  4150. },
  4151. {
  4152. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4153. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4154. .name = "MultiMedia19 Output Channel1",
  4155. .info = msm_pcm_channel_weight_info,
  4156. .get = msm_pcm_channel_weight_get,
  4157. .put = msm_pcm_channel_weight_put,
  4158. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4159. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  4160. },
  4161. {
  4162. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4163. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4164. .name = "MultiMedia19 Output Channel2",
  4165. .info = msm_pcm_channel_weight_info,
  4166. .get = msm_pcm_channel_weight_get,
  4167. .put = msm_pcm_channel_weight_put,
  4168. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4169. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  4170. },
  4171. {
  4172. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4173. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4174. .name = "MultiMedia19 Output Channel3",
  4175. .info = msm_pcm_channel_weight_info,
  4176. .get = msm_pcm_channel_weight_get,
  4177. .put = msm_pcm_channel_weight_put,
  4178. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4179. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  4180. },
  4181. {
  4182. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4183. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4184. .name = "MultiMedia19 Output Channel4",
  4185. .info = msm_pcm_channel_weight_info,
  4186. .get = msm_pcm_channel_weight_get,
  4187. .put = msm_pcm_channel_weight_put,
  4188. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4189. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  4190. },
  4191. {
  4192. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4193. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4194. .name = "MultiMedia19 Output Channel5",
  4195. .info = msm_pcm_channel_weight_info,
  4196. .get = msm_pcm_channel_weight_get,
  4197. .put = msm_pcm_channel_weight_put,
  4198. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4199. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  4200. },
  4201. {
  4202. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4203. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4204. .name = "MultiMedia19 Output Channel6",
  4205. .info = msm_pcm_channel_weight_info,
  4206. .get = msm_pcm_channel_weight_get,
  4207. .put = msm_pcm_channel_weight_put,
  4208. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4209. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4210. },
  4211. {
  4212. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4213. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4214. .name = "MultiMedia19 Output Channel7",
  4215. .info = msm_pcm_channel_weight_info,
  4216. .get = msm_pcm_channel_weight_get,
  4217. .put = msm_pcm_channel_weight_put,
  4218. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4219. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4220. },
  4221. {
  4222. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4223. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4224. .name = "MultiMedia19 Output Channel8",
  4225. .info = msm_pcm_channel_weight_info,
  4226. .get = msm_pcm_channel_weight_get,
  4227. .put = msm_pcm_channel_weight_put,
  4228. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4229. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4230. },
  4231. {
  4232. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4233. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4234. .name = "MultiMedia19 Output Channel9",
  4235. .info = msm_pcm_channel_weight_info,
  4236. .get = msm_pcm_channel_weight_get,
  4237. .put = msm_pcm_channel_weight_put,
  4238. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4239. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4240. },
  4241. {
  4242. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4243. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4244. .name = "MultiMedia19 Output Channel10",
  4245. .info = msm_pcm_channel_weight_info,
  4246. .get = msm_pcm_channel_weight_get,
  4247. .put = msm_pcm_channel_weight_put,
  4248. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4249. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4250. },
  4251. {
  4252. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4253. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4254. .name = "MultiMedia19 Output Channel11",
  4255. .info = msm_pcm_channel_weight_info,
  4256. .get = msm_pcm_channel_weight_get,
  4257. .put = msm_pcm_channel_weight_put,
  4258. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4259. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4260. },
  4261. {
  4262. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4263. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4264. .name = "MultiMedia19 Output Channel12",
  4265. .info = msm_pcm_channel_weight_info,
  4266. .get = msm_pcm_channel_weight_get,
  4267. .put = msm_pcm_channel_weight_put,
  4268. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4269. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4270. },
  4271. {
  4272. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4273. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4274. .name = "MultiMedia19 Output Channel13",
  4275. .info = msm_pcm_channel_weight_info,
  4276. .get = msm_pcm_channel_weight_get,
  4277. .put = msm_pcm_channel_weight_put,
  4278. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4279. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4280. },
  4281. {
  4282. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4283. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4284. .name = "MultiMedia19 Output Channel14",
  4285. .info = msm_pcm_channel_weight_info,
  4286. .get = msm_pcm_channel_weight_get,
  4287. .put = msm_pcm_channel_weight_put,
  4288. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4289. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4290. },
  4291. {
  4292. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4293. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4294. .name = "MultiMedia28 Output Channel1",
  4295. .info = msm_pcm_channel_weight_info,
  4296. .get = msm_pcm_channel_weight_get,
  4297. .put = msm_pcm_channel_weight_put,
  4298. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4299. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4300. },
  4301. {
  4302. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4303. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4304. .name = "MultiMedia28 Output Channel2",
  4305. .info = msm_pcm_channel_weight_info,
  4306. .get = msm_pcm_channel_weight_get,
  4307. .put = msm_pcm_channel_weight_put,
  4308. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4309. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4310. },
  4311. {
  4312. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4313. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4314. .name = "MultiMedia28 Output Channel3",
  4315. .info = msm_pcm_channel_weight_info,
  4316. .get = msm_pcm_channel_weight_get,
  4317. .put = msm_pcm_channel_weight_put,
  4318. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4319. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4320. },
  4321. {
  4322. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4323. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4324. .name = "MultiMedia28 Output Channel4",
  4325. .info = msm_pcm_channel_weight_info,
  4326. .get = msm_pcm_channel_weight_get,
  4327. .put = msm_pcm_channel_weight_put,
  4328. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4329. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4330. },
  4331. {
  4332. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4333. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4334. .name = "MultiMedia28 Output Channel5",
  4335. .info = msm_pcm_channel_weight_info,
  4336. .get = msm_pcm_channel_weight_get,
  4337. .put = msm_pcm_channel_weight_put,
  4338. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4339. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4340. },
  4341. {
  4342. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4343. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4344. .name = "MultiMedia28 Output Channel6",
  4345. .info = msm_pcm_channel_weight_info,
  4346. .get = msm_pcm_channel_weight_get,
  4347. .put = msm_pcm_channel_weight_put,
  4348. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4349. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4350. },
  4351. {
  4352. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4353. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4354. .name = "MultiMedia28 Output Channel7",
  4355. .info = msm_pcm_channel_weight_info,
  4356. .get = msm_pcm_channel_weight_get,
  4357. .put = msm_pcm_channel_weight_put,
  4358. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4359. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4360. },
  4361. {
  4362. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4363. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4364. .name = "MultiMedia28 Output Channel8",
  4365. .info = msm_pcm_channel_weight_info,
  4366. .get = msm_pcm_channel_weight_get,
  4367. .put = msm_pcm_channel_weight_put,
  4368. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4369. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4370. },
  4371. {
  4372. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4373. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4374. .name = "MultiMedia28 Output Channel9",
  4375. .info = msm_pcm_channel_weight_info,
  4376. .get = msm_pcm_channel_weight_get,
  4377. .put = msm_pcm_channel_weight_put,
  4378. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4379. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4380. },
  4381. {
  4382. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4383. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4384. .name = "MultiMedia28 Output Channel10",
  4385. .info = msm_pcm_channel_weight_info,
  4386. .get = msm_pcm_channel_weight_get,
  4387. .put = msm_pcm_channel_weight_put,
  4388. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4389. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4390. },
  4391. {
  4392. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4393. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4394. .name = "MultiMedia28 Output Channel11",
  4395. .info = msm_pcm_channel_weight_info,
  4396. .get = msm_pcm_channel_weight_get,
  4397. .put = msm_pcm_channel_weight_put,
  4398. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4399. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4400. },
  4401. {
  4402. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4403. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4404. .name = "MultiMedia28 Output Channel12",
  4405. .info = msm_pcm_channel_weight_info,
  4406. .get = msm_pcm_channel_weight_get,
  4407. .put = msm_pcm_channel_weight_put,
  4408. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4409. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4410. },
  4411. {
  4412. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4413. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4414. .name = "MultiMedia28 Output Channel13",
  4415. .info = msm_pcm_channel_weight_info,
  4416. .get = msm_pcm_channel_weight_get,
  4417. .put = msm_pcm_channel_weight_put,
  4418. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4419. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4420. },
  4421. {
  4422. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4423. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4424. .name = "MultiMedia28 Output Channel14",
  4425. .info = msm_pcm_channel_weight_info,
  4426. .get = msm_pcm_channel_weight_get,
  4427. .put = msm_pcm_channel_weight_put,
  4428. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4429. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4430. },
  4431. {
  4432. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4433. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4434. .name = "MultiMedia29 Output Channel1",
  4435. .info = msm_pcm_channel_weight_info,
  4436. .get = msm_pcm_channel_weight_get,
  4437. .put = msm_pcm_channel_weight_put,
  4438. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4439. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4440. },
  4441. {
  4442. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4443. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4444. .name = "MultiMedia29 Output Channel2",
  4445. .info = msm_pcm_channel_weight_info,
  4446. .get = msm_pcm_channel_weight_get,
  4447. .put = msm_pcm_channel_weight_put,
  4448. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4449. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4450. },
  4451. {
  4452. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4453. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4454. .name = "MultiMedia29 Output Channel3",
  4455. .info = msm_pcm_channel_weight_info,
  4456. .get = msm_pcm_channel_weight_get,
  4457. .put = msm_pcm_channel_weight_put,
  4458. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4459. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4460. },
  4461. {
  4462. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4463. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4464. .name = "MultiMedia29 Output Channel4",
  4465. .info = msm_pcm_channel_weight_info,
  4466. .get = msm_pcm_channel_weight_get,
  4467. .put = msm_pcm_channel_weight_put,
  4468. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4469. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4470. },
  4471. {
  4472. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4473. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4474. .name = "MultiMedia29 Output Channel5",
  4475. .info = msm_pcm_channel_weight_info,
  4476. .get = msm_pcm_channel_weight_get,
  4477. .put = msm_pcm_channel_weight_put,
  4478. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4479. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4480. },
  4481. {
  4482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4483. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4484. .name = "MultiMedia29 Output Channel6",
  4485. .info = msm_pcm_channel_weight_info,
  4486. .get = msm_pcm_channel_weight_get,
  4487. .put = msm_pcm_channel_weight_put,
  4488. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4489. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4490. },
  4491. {
  4492. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4493. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4494. .name = "MultiMedia29 Output Channel7",
  4495. .info = msm_pcm_channel_weight_info,
  4496. .get = msm_pcm_channel_weight_get,
  4497. .put = msm_pcm_channel_weight_put,
  4498. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4499. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4500. },
  4501. {
  4502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4504. .name = "MultiMedia29 Output Channel8",
  4505. .info = msm_pcm_channel_weight_info,
  4506. .get = msm_pcm_channel_weight_get,
  4507. .put = msm_pcm_channel_weight_put,
  4508. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4509. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4510. },
  4511. {
  4512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4513. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4514. .name = "MultiMedia29 Output Channel9",
  4515. .info = msm_pcm_channel_weight_info,
  4516. .get = msm_pcm_channel_weight_get,
  4517. .put = msm_pcm_channel_weight_put,
  4518. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4519. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4520. },
  4521. {
  4522. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4523. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4524. .name = "MultiMedia29 Output Channel10",
  4525. .info = msm_pcm_channel_weight_info,
  4526. .get = msm_pcm_channel_weight_get,
  4527. .put = msm_pcm_channel_weight_put,
  4528. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4529. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4530. },
  4531. {
  4532. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4533. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4534. .name = "MultiMedia29 Output Channel11",
  4535. .info = msm_pcm_channel_weight_info,
  4536. .get = msm_pcm_channel_weight_get,
  4537. .put = msm_pcm_channel_weight_put,
  4538. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4539. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4540. },
  4541. {
  4542. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4543. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4544. .name = "MultiMedia29 Output Channel12",
  4545. .info = msm_pcm_channel_weight_info,
  4546. .get = msm_pcm_channel_weight_get,
  4547. .put = msm_pcm_channel_weight_put,
  4548. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4549. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4550. },
  4551. {
  4552. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4553. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4554. .name = "MultiMedia29 Output Channel13",
  4555. .info = msm_pcm_channel_weight_info,
  4556. .get = msm_pcm_channel_weight_get,
  4557. .put = msm_pcm_channel_weight_put,
  4558. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4559. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4560. },
  4561. {
  4562. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4563. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4564. .name = "MultiMedia29 Output Channel14",
  4565. .info = msm_pcm_channel_weight_info,
  4566. .get = msm_pcm_channel_weight_get,
  4567. .put = msm_pcm_channel_weight_put,
  4568. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4569. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4570. },
  4571. {
  4572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4573. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4574. .name = "MultiMedia30 Output Channel1",
  4575. .info = msm_pcm_channel_weight_info,
  4576. .get = msm_pcm_channel_weight_get,
  4577. .put = msm_pcm_channel_weight_put,
  4578. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4579. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4580. },
  4581. {
  4582. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4583. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4584. .name = "MultiMedia30 Output Channel2",
  4585. .info = msm_pcm_channel_weight_info,
  4586. .get = msm_pcm_channel_weight_get,
  4587. .put = msm_pcm_channel_weight_put,
  4588. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4589. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4590. },
  4591. {
  4592. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4593. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4594. .name = "MultiMedia30 Output Channel3",
  4595. .info = msm_pcm_channel_weight_info,
  4596. .get = msm_pcm_channel_weight_get,
  4597. .put = msm_pcm_channel_weight_put,
  4598. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4599. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4600. },
  4601. {
  4602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4603. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4604. .name = "MultiMedia30 Output Channel4",
  4605. .info = msm_pcm_channel_weight_info,
  4606. .get = msm_pcm_channel_weight_get,
  4607. .put = msm_pcm_channel_weight_put,
  4608. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4609. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4610. },
  4611. {
  4612. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4613. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4614. .name = "MultiMedia30 Output Channel5",
  4615. .info = msm_pcm_channel_weight_info,
  4616. .get = msm_pcm_channel_weight_get,
  4617. .put = msm_pcm_channel_weight_put,
  4618. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4619. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4620. },
  4621. {
  4622. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4623. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4624. .name = "MultiMedia30 Output Channel6",
  4625. .info = msm_pcm_channel_weight_info,
  4626. .get = msm_pcm_channel_weight_get,
  4627. .put = msm_pcm_channel_weight_put,
  4628. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4629. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4630. },
  4631. {
  4632. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4633. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4634. .name = "MultiMedia30 Output Channel7",
  4635. .info = msm_pcm_channel_weight_info,
  4636. .get = msm_pcm_channel_weight_get,
  4637. .put = msm_pcm_channel_weight_put,
  4638. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4639. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4640. },
  4641. {
  4642. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4643. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4644. .name = "MultiMedia30 Output Channel8",
  4645. .info = msm_pcm_channel_weight_info,
  4646. .get = msm_pcm_channel_weight_get,
  4647. .put = msm_pcm_channel_weight_put,
  4648. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4649. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4650. },
  4651. {
  4652. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4653. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4654. .name = "MultiMedia30 Output Channel9",
  4655. .info = msm_pcm_channel_weight_info,
  4656. .get = msm_pcm_channel_weight_get,
  4657. .put = msm_pcm_channel_weight_put,
  4658. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4659. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4660. },
  4661. {
  4662. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4663. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4664. .name = "MultiMedia30 Output Channel10",
  4665. .info = msm_pcm_channel_weight_info,
  4666. .get = msm_pcm_channel_weight_get,
  4667. .put = msm_pcm_channel_weight_put,
  4668. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4669. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4670. },
  4671. {
  4672. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4673. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4674. .name = "MultiMedia30 Output Channel11",
  4675. .info = msm_pcm_channel_weight_info,
  4676. .get = msm_pcm_channel_weight_get,
  4677. .put = msm_pcm_channel_weight_put,
  4678. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4679. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4680. },
  4681. {
  4682. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4683. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4684. .name = "MultiMedia30 Output Channel12",
  4685. .info = msm_pcm_channel_weight_info,
  4686. .get = msm_pcm_channel_weight_get,
  4687. .put = msm_pcm_channel_weight_put,
  4688. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4689. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4690. },
  4691. {
  4692. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4693. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4694. .name = "MultiMedia30 Output Channel13",
  4695. .info = msm_pcm_channel_weight_info,
  4696. .get = msm_pcm_channel_weight_get,
  4697. .put = msm_pcm_channel_weight_put,
  4698. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4699. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4700. },
  4701. {
  4702. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4703. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4704. .name = "MultiMedia30 Output Channel14",
  4705. .info = msm_pcm_channel_weight_info,
  4706. .get = msm_pcm_channel_weight_get,
  4707. .put = msm_pcm_channel_weight_put,
  4708. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4709. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4710. },
  4711. {
  4712. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4713. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4714. .name = "MultiMedia1 Channel1",
  4715. .info = msm_pcm_channel_input_be_info,
  4716. .get = msm_pcm_channel_input_be_get,
  4717. .put = msm_pcm_channel_input_be_put,
  4718. .private_value = (unsigned long)&(mm1_ch1_enum)
  4719. },
  4720. {
  4721. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4722. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4723. .name = "MultiMedia1 Channel2",
  4724. .info = msm_pcm_channel_input_be_info,
  4725. .get = msm_pcm_channel_input_be_get,
  4726. .put = msm_pcm_channel_input_be_put,
  4727. .private_value = (unsigned long)&(mm1_ch2_enum)
  4728. },
  4729. {
  4730. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4731. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4732. .name = "MultiMedia1 Channel3",
  4733. .info = msm_pcm_channel_input_be_info,
  4734. .get = msm_pcm_channel_input_be_get,
  4735. .put = msm_pcm_channel_input_be_put,
  4736. .private_value = (unsigned long)&(mm1_ch3_enum)
  4737. },
  4738. {
  4739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4741. .name = "MultiMedia1 Channel4",
  4742. .info = msm_pcm_channel_input_be_info,
  4743. .get = msm_pcm_channel_input_be_get,
  4744. .put = msm_pcm_channel_input_be_put,
  4745. .private_value = (unsigned long)&(mm1_ch4_enum)
  4746. },
  4747. {
  4748. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4749. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4750. .name = "MultiMedia1 Channel5",
  4751. .info = msm_pcm_channel_input_be_info,
  4752. .get = msm_pcm_channel_input_be_get,
  4753. .put = msm_pcm_channel_input_be_put,
  4754. .private_value = (unsigned long)&(mm1_ch5_enum)
  4755. },
  4756. {
  4757. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4758. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4759. .name = "MultiMedia1 Channel6",
  4760. .info = msm_pcm_channel_input_be_info,
  4761. .get = msm_pcm_channel_input_be_get,
  4762. .put = msm_pcm_channel_input_be_put,
  4763. .private_value = (unsigned long)&(mm1_ch6_enum)
  4764. },
  4765. {
  4766. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4767. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4768. .name = "MultiMedia1 Channel7",
  4769. .info = msm_pcm_channel_input_be_info,
  4770. .get = msm_pcm_channel_input_be_get,
  4771. .put = msm_pcm_channel_input_be_put,
  4772. .private_value = (unsigned long)&(mm1_ch7_enum)
  4773. },
  4774. {
  4775. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4776. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4777. .name = "MultiMedia1 Channel8",
  4778. .info = msm_pcm_channel_input_be_info,
  4779. .get = msm_pcm_channel_input_be_get,
  4780. .put = msm_pcm_channel_input_be_put,
  4781. .private_value = (unsigned long)&(mm1_ch8_enum)
  4782. },
  4783. {
  4784. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4785. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4786. .name = "MultiMedia18 Channel1",
  4787. .info = msm_pcm_channel_input_be_info,
  4788. .get = msm_pcm_channel_input_be_get,
  4789. .put = msm_pcm_channel_input_be_put,
  4790. .private_value = (unsigned long)&(mm18_ch1_enum)
  4791. },
  4792. {
  4793. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4794. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4795. .name = "MultiMedia18 Channel2",
  4796. .info = msm_pcm_channel_input_be_info,
  4797. .get = msm_pcm_channel_input_be_get,
  4798. .put = msm_pcm_channel_input_be_put,
  4799. .private_value = (unsigned long)&(mm18_ch2_enum)
  4800. },
  4801. {
  4802. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4803. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4804. .name = "MultiMedia19 Channel1",
  4805. .info = msm_pcm_channel_input_be_info,
  4806. .get = msm_pcm_channel_input_be_get,
  4807. .put = msm_pcm_channel_input_be_put,
  4808. .private_value = (unsigned long)&(mm19_ch1_enum)
  4809. },
  4810. {
  4811. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4812. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4813. .name = "MultiMedia19 Channel2",
  4814. .info = msm_pcm_channel_input_be_info,
  4815. .get = msm_pcm_channel_input_be_get,
  4816. .put = msm_pcm_channel_input_be_put,
  4817. .private_value = (unsigned long)&(mm19_ch2_enum)
  4818. },
  4819. {
  4820. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4821. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4822. .name = "MultiMedia28 Channel1",
  4823. .info = msm_pcm_channel_input_be_info,
  4824. .get = msm_pcm_channel_input_be_get,
  4825. .put = msm_pcm_channel_input_be_put,
  4826. .private_value = (unsigned long)&(mm28_ch1_enum)
  4827. },
  4828. {
  4829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4831. .name = "MultiMedia28 Channel2",
  4832. .info = msm_pcm_channel_input_be_info,
  4833. .get = msm_pcm_channel_input_be_get,
  4834. .put = msm_pcm_channel_input_be_put,
  4835. .private_value = (unsigned long)&(mm28_ch2_enum)
  4836. },
  4837. {
  4838. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4839. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4840. .name = "MultiMedia29 Channel1",
  4841. .info = msm_pcm_channel_input_be_info,
  4842. .get = msm_pcm_channel_input_be_get,
  4843. .put = msm_pcm_channel_input_be_put,
  4844. .private_value = (unsigned long)&(mm29_ch1_enum)
  4845. },
  4846. {
  4847. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4848. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4849. .name = "MultiMedia29 Channel2",
  4850. .info = msm_pcm_channel_input_be_info,
  4851. .get = msm_pcm_channel_input_be_get,
  4852. .put = msm_pcm_channel_input_be_put,
  4853. .private_value = (unsigned long)&(mm29_ch2_enum)
  4854. },
  4855. {
  4856. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4857. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4858. .name = "MultiMedia30 Channel1",
  4859. .info = msm_pcm_channel_input_be_info,
  4860. .get = msm_pcm_channel_input_be_get,
  4861. .put = msm_pcm_channel_input_be_put,
  4862. .private_value = (unsigned long)&(mm30_ch1_enum)
  4863. },
  4864. {
  4865. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4866. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4867. .name = "MultiMedia30 Channel2",
  4868. .info = msm_pcm_channel_input_be_info,
  4869. .get = msm_pcm_channel_input_be_get,
  4870. .put = msm_pcm_channel_input_be_put,
  4871. .private_value = (unsigned long)&(mm30_ch2_enum)
  4872. },
  4873. {
  4874. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4875. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4876. .name = "MultiMedia1 Output Channel Map",
  4877. .info = msm_pcm_channel_output_map_info,
  4878. .get = msm_pcm_channel_output_map_get,
  4879. .put = msm_pcm_channel_output_map_put,
  4880. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4881. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4882. },
  4883. {
  4884. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4885. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4886. .name = "MultiMedia2 Output Channel Map",
  4887. .info = msm_pcm_channel_output_map_info,
  4888. .get = msm_pcm_channel_output_map_get,
  4889. .put = msm_pcm_channel_output_map_put,
  4890. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4891. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4892. },
  4893. {
  4894. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4895. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4896. .name = "MultiMedia3 Output Channel Map",
  4897. .info = msm_pcm_channel_output_map_info,
  4898. .get = msm_pcm_channel_output_map_get,
  4899. .put = msm_pcm_channel_output_map_put,
  4900. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4901. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4902. },
  4903. {
  4904. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4905. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4906. .name = "MultiMedia4 Output Channel Map",
  4907. .info = msm_pcm_channel_output_map_info,
  4908. .get = msm_pcm_channel_output_map_get,
  4909. .put = msm_pcm_channel_output_map_put,
  4910. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4911. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4912. },
  4913. {
  4914. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4915. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4916. .name = "MultiMedia5 Output Channel Map",
  4917. .info = msm_pcm_channel_output_map_info,
  4918. .get = msm_pcm_channel_output_map_get,
  4919. .put = msm_pcm_channel_output_map_put,
  4920. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4921. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4922. },
  4923. {
  4924. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4925. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4926. .name = "MultiMedia6 Output Channel Map",
  4927. .info = msm_pcm_channel_output_map_info,
  4928. .get = msm_pcm_channel_output_map_get,
  4929. .put = msm_pcm_channel_output_map_put,
  4930. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4931. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4932. },
  4933. {
  4934. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4935. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4936. .name = "MultiMedia18 Output Channel Map",
  4937. .info = msm_pcm_channel_output_map_info,
  4938. .get = msm_pcm_channel_output_map_get,
  4939. .put = msm_pcm_channel_output_map_put,
  4940. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4941. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4942. },
  4943. {
  4944. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4945. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4946. .name = "MultiMedia19 Output Channel Map",
  4947. .info = msm_pcm_channel_output_map_info,
  4948. .get = msm_pcm_channel_output_map_get,
  4949. .put = msm_pcm_channel_output_map_put,
  4950. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4951. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4952. },
  4953. {
  4954. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4955. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4956. .name = "MultiMedia28 Output Channel Map",
  4957. .info = msm_pcm_channel_output_map_info,
  4958. .get = msm_pcm_channel_output_map_get,
  4959. .put = msm_pcm_channel_output_map_put,
  4960. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4961. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4962. },
  4963. {
  4964. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4965. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4966. .name = "MultiMedia29 Output Channel Map",
  4967. .info = msm_pcm_channel_output_map_info,
  4968. .get = msm_pcm_channel_output_map_get,
  4969. .put = msm_pcm_channel_output_map_put,
  4970. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4971. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4972. },
  4973. {
  4974. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4975. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4976. .name = "MultiMedia30 Output Channel Map",
  4977. .info = msm_pcm_channel_output_map_info,
  4978. .get = msm_pcm_channel_output_map_get,
  4979. .put = msm_pcm_channel_output_map_put,
  4980. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4981. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4982. },
  4983. };
  4984. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4985. struct snd_ctl_elem_value *ucontrol)
  4986. {
  4987. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4988. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4989. ucontrol->value.integer.value[0]);
  4990. return 0;
  4991. }
  4992. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4993. struct snd_ctl_elem_value *ucontrol)
  4994. {
  4995. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4996. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4997. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4998. return 0;
  4999. }
  5000. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  5001. struct snd_ctl_elem_value *ucontrol)
  5002. {
  5003. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  5004. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  5005. ucontrol->value.integer.value[0]);
  5006. return 0;
  5007. }
  5008. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  5009. struct snd_ctl_elem_value *ucontrol)
  5010. {
  5011. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  5012. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  5013. __func__, msm_ec_ref_ch_downmixed);
  5014. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  5015. return 0;
  5016. }
  5017. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  5018. struct snd_ctl_elem_value *ucontrol)
  5019. {
  5020. int i = 0, ret = 0;
  5021. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  5022. int out_channel_idx = ((struct soc_multi_mixer_control *)
  5023. kcontrol->private_value)->shift;
  5024. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  5025. weights[i] = ucontrol->value.integer.value[i];
  5026. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  5027. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  5028. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  5029. return ret;
  5030. }
  5031. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  5032. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  5033. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  5034. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  5035. struct snd_ctl_elem_value *ucontrol)
  5036. {
  5037. switch (msm_ec_ref_bit_format) {
  5038. case SNDRV_PCM_FORMAT_S24_LE:
  5039. ucontrol->value.integer.value[0] = 2;
  5040. break;
  5041. case SNDRV_PCM_FORMAT_S16_LE:
  5042. ucontrol->value.integer.value[0] = 1;
  5043. break;
  5044. default:
  5045. ucontrol->value.integer.value[0] = 0;
  5046. break;
  5047. }
  5048. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  5049. __func__, ucontrol->value.integer.value[0]);
  5050. return 0;
  5051. }
  5052. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  5053. struct snd_ctl_elem_value *ucontrol)
  5054. {
  5055. u16 bit_width = 0;
  5056. switch (ucontrol->value.integer.value[0]) {
  5057. case 2:
  5058. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  5059. break;
  5060. case 1:
  5061. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  5062. break;
  5063. default:
  5064. msm_ec_ref_bit_format = 0;
  5065. break;
  5066. }
  5067. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  5068. bit_width = 16;
  5069. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  5070. bit_width = 24;
  5071. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  5072. __func__, msm_ec_ref_bit_format);
  5073. adm_ec_ref_rx_bit_width(bit_width);
  5074. return 0;
  5075. }
  5076. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  5077. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  5078. struct snd_ctl_elem_value *ucontrol)
  5079. {
  5080. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  5081. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  5082. __func__, ucontrol->value.integer.value[0]);
  5083. return 0;
  5084. }
  5085. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  5086. struct snd_ctl_elem_value *ucontrol)
  5087. {
  5088. switch (ucontrol->value.integer.value[0]) {
  5089. case 0:
  5090. msm_ec_ref_sampling_rate = 0;
  5091. break;
  5092. case 1:
  5093. msm_ec_ref_sampling_rate = 8000;
  5094. break;
  5095. case 2:
  5096. msm_ec_ref_sampling_rate = 16000;
  5097. break;
  5098. case 3:
  5099. msm_ec_ref_sampling_rate = 32000;
  5100. break;
  5101. case 4:
  5102. msm_ec_ref_sampling_rate = 44100;
  5103. break;
  5104. case 5:
  5105. msm_ec_ref_sampling_rate = 48000;
  5106. break;
  5107. case 6:
  5108. msm_ec_ref_sampling_rate = 96000;
  5109. break;
  5110. case 7:
  5111. msm_ec_ref_sampling_rate = 192000;
  5112. break;
  5113. case 8:
  5114. msm_ec_ref_sampling_rate = 384000;
  5115. break;
  5116. default:
  5117. msm_ec_ref_sampling_rate = 48000;
  5118. break;
  5119. }
  5120. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  5121. __func__, msm_ec_ref_sampling_rate);
  5122. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  5123. return 0;
  5124. }
  5125. static int get_ec_ref_port_id(int value, int *index)
  5126. {
  5127. int port_id;
  5128. switch (value) {
  5129. case 0:
  5130. *index = 0;
  5131. port_id = AFE_PORT_INVALID;
  5132. break;
  5133. case 1:
  5134. *index = 1;
  5135. port_id = SLIMBUS_0_RX;
  5136. break;
  5137. case 2:
  5138. *index = 2;
  5139. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  5140. break;
  5141. case 3:
  5142. *index = 3;
  5143. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5144. break;
  5145. case 4:
  5146. *index = 4;
  5147. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5148. break;
  5149. case 5:
  5150. *index = 5;
  5151. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5152. break;
  5153. case 6:
  5154. *index = 6;
  5155. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5156. break;
  5157. case 7:
  5158. *index = 7;
  5159. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  5160. break;
  5161. case 9:
  5162. *index = 9;
  5163. port_id = SLIMBUS_5_RX;
  5164. break;
  5165. case 10:
  5166. *index = 10;
  5167. port_id = SLIMBUS_1_TX;
  5168. break;
  5169. case 11:
  5170. *index = 11;
  5171. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  5172. break;
  5173. case 12:
  5174. *index = 12;
  5175. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  5176. break;
  5177. case 13:
  5178. *index = 13;
  5179. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  5180. break;
  5181. case 14:
  5182. *index = 14;
  5183. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  5184. break;
  5185. case 15:
  5186. *index = 15;
  5187. port_id = SLIMBUS_6_RX;
  5188. break;
  5189. case 16:
  5190. *index = 16;
  5191. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  5192. break;
  5193. case 17:
  5194. *index = 17;
  5195. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  5196. break;
  5197. case 18:
  5198. *index = 18;
  5199. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  5200. break;
  5201. case 19:
  5202. *index = 19;
  5203. port_id = AFE_PORT_ID_USB_RX;
  5204. break;
  5205. case 20:
  5206. *index = 20;
  5207. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5208. break;
  5209. case 21:
  5210. *index = 21;
  5211. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5212. break;
  5213. case 22:
  5214. *index = 22;
  5215. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5216. break;
  5217. case 23:
  5218. *index = 23;
  5219. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5220. break;
  5221. case 24:
  5222. *index = 24;
  5223. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5224. break;
  5225. case 25:
  5226. *index = 25;
  5227. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5228. break;
  5229. case 26:
  5230. *index = 26;
  5231. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5232. break;
  5233. case 27:
  5234. *index = 27;
  5235. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5236. break;
  5237. case 28:
  5238. *index = 28;
  5239. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5240. break;
  5241. case 29:
  5242. *index = 29;
  5243. port_id = SLIMBUS_7_RX;
  5244. break;
  5245. case 30:
  5246. *index = 30;
  5247. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5248. break;
  5249. case 31:
  5250. *index = 31;
  5251. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5252. break;
  5253. case 32:
  5254. *index = 32;
  5255. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5256. break;
  5257. case 33:
  5258. *index = 33;
  5259. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5260. break;
  5261. case 34:
  5262. *index = 34;
  5263. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5264. break;
  5265. case 35:
  5266. *index = 35;
  5267. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5268. break;
  5269. case 36:
  5270. *index = 36;
  5271. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5272. break;
  5273. case 37:
  5274. *index = 37;
  5275. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5276. break;
  5277. case 38:
  5278. *index = 38;
  5279. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5280. break;
  5281. case 39:
  5282. *index = 39;
  5283. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5284. break;
  5285. case 40:
  5286. *index = 40;
  5287. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5288. break;
  5289. default:
  5290. *index = 0; /* NONE */
  5291. pr_err("%s: Invalid value %d\n", __func__, value);
  5292. port_id = AFE_PORT_INVALID;
  5293. break;
  5294. }
  5295. return port_id;
  5296. }
  5297. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5298. struct snd_ctl_elem_value *ucontrol)
  5299. {
  5300. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5301. mutex_lock(&routing_lock);
  5302. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5303. mutex_unlock(&routing_lock);
  5304. return 0;
  5305. }
  5306. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5307. struct snd_ctl_elem_value *ucontrol)
  5308. {
  5309. int value = ucontrol->value.integer.value[0];
  5310. mutex_lock(&routing_lock);
  5311. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5312. &afe_loopback_tx_port_index);
  5313. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5314. __func__, afe_loopback_tx_port_index);
  5315. mutex_unlock(&routing_lock);
  5316. return 0;
  5317. }
  5318. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5319. "32000", "44100", "48000", "96000", "192000", "384000"};
  5320. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5321. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5322. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5323. ec_ref_bit_format_text),
  5324. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5325. };
  5326. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5327. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5328. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5329. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5330. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5331. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5332. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5333. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5334. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5335. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5336. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5337. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5338. };
  5339. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5340. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5341. };
  5342. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5343. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5344. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5345. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5346. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5347. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5348. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5349. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5350. msm_route_ec_ref_params_enum[0],
  5351. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5352. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5353. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5354. msm_ec_ref_chmixer_weights_put),
  5355. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5356. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5357. msm_ec_ref_chmixer_weights_put),
  5358. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5359. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5360. msm_ec_ref_chmixer_weights_put),
  5361. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5362. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5363. msm_ec_ref_chmixer_weights_put),
  5364. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5365. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5366. msm_ec_ref_chmixer_weights_put),
  5367. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5368. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5369. msm_ec_ref_chmixer_weights_put),
  5370. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5371. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5372. msm_ec_ref_chmixer_weights_put),
  5373. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5374. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5375. msm_ec_ref_chmixer_weights_put),
  5376. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5377. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5378. };
  5379. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5380. struct snd_ctl_elem_value *ucontrol)
  5381. {
  5382. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5383. mutex_lock(&routing_lock);
  5384. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5385. mutex_unlock(&routing_lock);
  5386. return 0;
  5387. }
  5388. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5389. struct snd_ctl_elem_value *ucontrol)
  5390. {
  5391. int value = ucontrol->value.integer.value[0];
  5392. struct snd_soc_dapm_widget *widget =
  5393. snd_soc_dapm_kcontrol_widget(kcontrol);
  5394. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5395. struct snd_soc_dapm_update *update = NULL;
  5396. mutex_lock(&routing_lock);
  5397. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5398. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5399. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5400. __func__, msm_route_ec_ref_rx);
  5401. mutex_unlock(&routing_lock);
  5402. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5403. msm_route_ec_ref_rx, e, update);
  5404. return 0;
  5405. }
  5406. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5407. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5408. msm_route_ec_ref_rx_enum[0],
  5409. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5410. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5411. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5412. msm_route_ec_ref_rx_enum[0],
  5413. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5414. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5415. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5416. msm_route_ec_ref_rx_enum[0],
  5417. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5418. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5419. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5420. msm_route_ec_ref_rx_enum[0],
  5421. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5422. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5423. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5424. msm_route_ec_ref_rx_enum[0],
  5425. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5426. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5427. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5428. msm_route_ec_ref_rx_enum[0],
  5429. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5430. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5431. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5432. msm_route_ec_ref_rx_enum[0],
  5433. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5434. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5435. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5436. msm_route_ec_ref_rx_enum[0],
  5437. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5438. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5439. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5440. msm_route_ec_ref_rx_enum[0],
  5441. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5442. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5443. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5444. msm_route_ec_ref_rx_enum[0],
  5445. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5446. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5447. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5448. msm_route_ec_ref_rx_enum[0],
  5449. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5450. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5451. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5452. msm_route_ec_ref_rx_enum[0],
  5453. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5454. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5455. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5456. msm_route_ec_ref_rx_enum[0],
  5457. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5458. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5459. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5460. msm_route_ec_ref_rx_enum[0],
  5461. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5462. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5463. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5464. msm_route_ec_ref_rx_enum[0],
  5465. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5466. static const struct snd_kcontrol_new ext_ec_ref_mux_ul30 =
  5467. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL30 MUX Mux",
  5468. msm_route_ec_ref_rx_enum[0],
  5469. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5470. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5471. struct snd_ctl_elem_value *ucontrol)
  5472. {
  5473. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5474. mutex_lock(&routing_lock);
  5475. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5476. mutex_unlock(&routing_lock);
  5477. return 0;
  5478. }
  5479. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5480. struct snd_ctl_elem_value *ucontrol)
  5481. {
  5482. struct snd_soc_dapm_widget *widget =
  5483. snd_soc_dapm_kcontrol_widget(kcontrol);
  5484. int mux = ucontrol->value.enumerated.item[0];
  5485. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5486. int ret = 1;
  5487. bool state = true;
  5488. uint16_t ext_ec_ref_port_id;
  5489. struct snd_soc_dapm_update *update = NULL;
  5490. if (mux >= e->items) {
  5491. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5492. return -EINVAL;
  5493. }
  5494. mutex_lock(&routing_lock);
  5495. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5496. switch (msm_route_ext_ec_ref) {
  5497. case EXT_EC_REF_PRI_MI2S_TX:
  5498. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5499. break;
  5500. case EXT_EC_REF_SEC_MI2S_TX:
  5501. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5502. break;
  5503. case EXT_EC_REF_TERT_MI2S_TX:
  5504. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5505. break;
  5506. case EXT_EC_REF_QUAT_MI2S_TX:
  5507. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5508. break;
  5509. case EXT_EC_REF_QUIN_MI2S_TX:
  5510. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5511. break;
  5512. case EXT_EC_REF_SLIM_1_TX:
  5513. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5514. break;
  5515. case EXT_EC_REF_PRI_TDM_TX:
  5516. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5517. break;
  5518. case EXT_EC_REF_SEC_TDM_TX:
  5519. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5520. break;
  5521. case EXT_EC_REF_NONE:
  5522. default:
  5523. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5524. state = false;
  5525. break;
  5526. }
  5527. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5528. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5529. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5530. mutex_unlock(&routing_lock);
  5531. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5532. update);
  5533. } else {
  5534. ret = -EINVAL;
  5535. mutex_unlock(&routing_lock);
  5536. }
  5537. return ret;
  5538. }
  5539. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5540. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5541. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5542. "SLIM_1_TX", "PRI_TDM_TX",
  5543. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5544. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5545. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5546. };
  5547. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5548. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5549. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5550. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5551. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5552. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5564. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5568. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5572. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5576. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5584. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5588. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. };
  5644. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5645. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5646. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5654. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5722. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5726. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. };
  5738. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5739. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. };
  5808. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5809. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5858. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. };
  5902. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5903. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. };
  5996. #ifndef CONFIG_MI2S_DISABLE
  5997. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5998. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_PRI_I2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_PRI_I2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_PRI_I2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_PRI_I2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_PRI_I2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_PRI_I2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_PRI_I2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_PRI_I2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_PRI_I2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_PRI_I2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_PRI_I2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_PRI_I2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_PRI_I2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_PRI_I2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_PRI_I2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_PRI_I2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_PRI_I2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_PRI_I2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_PRI_I2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_PRI_I2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_PRI_I2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_PRI_I2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_PRI_I2S_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. };
  6091. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  6092. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_SEC_I2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_SEC_I2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_SEC_I2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_SEC_I2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_SEC_I2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_SEC_I2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_SEC_I2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_SEC_I2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_SEC_I2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_SEC_I2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_SEC_I2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_SEC_I2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_SEC_I2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_SEC_I2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_SEC_I2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_SEC_I2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_SEC_I2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_SEC_I2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_SEC_I2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_SEC_I2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_SEC_I2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_SEC_I2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_SEC_I2S_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. };
  6185. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  6186. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_MI2S_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_MI2S_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. };
  6279. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6280. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. };
  6377. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6378. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. };
  6471. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6472. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. };
  6561. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6562. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. };
  6647. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6648. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. };
  6653. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6654. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. };
  6747. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6748. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6842. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. };
  6845. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6846. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. };
  6911. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. };
  6977. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6978. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. };
  7067. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  7068. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. };
  7157. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  7158. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7160. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7161. msm_routing_put_port_mixer),
  7162. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7164. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7165. msm_routing_put_port_mixer),
  7166. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7168. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7169. msm_routing_put_port_mixer),
  7170. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7172. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7173. msm_routing_put_port_mixer),
  7174. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7176. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7177. msm_routing_put_port_mixer),
  7178. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7180. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7181. msm_routing_put_port_mixer),
  7182. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7184. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7185. msm_routing_put_port_mixer),
  7186. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7188. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  7189. msm_routing_put_port_mixer),
  7190. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7192. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  7193. msm_routing_put_port_mixer),
  7194. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7196. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  7197. msm_routing_put_port_mixer),
  7198. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7200. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  7201. msm_routing_put_port_mixer),
  7202. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_INT0_MI2S_RX,
  7204. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  7205. msm_routing_put_port_mixer),
  7206. };
  7207. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  7208. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7209. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7210. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7211. msm_routing_put_port_mixer),
  7212. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7213. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7214. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7215. msm_routing_put_port_mixer),
  7216. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7217. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7218. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7219. msm_routing_put_port_mixer),
  7220. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7221. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7222. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7223. msm_routing_put_port_mixer),
  7224. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7225. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7226. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7227. msm_routing_put_port_mixer),
  7228. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7230. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7231. msm_routing_put_port_mixer),
  7232. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7234. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7235. msm_routing_put_port_mixer),
  7236. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7238. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  7239. msm_routing_put_port_mixer),
  7240. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7242. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  7243. msm_routing_put_port_mixer),
  7244. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7246. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  7247. msm_routing_put_port_mixer),
  7248. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7250. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  7251. msm_routing_put_port_mixer),
  7252. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_INT4_MI2S_RX,
  7254. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  7255. msm_routing_put_port_mixer),
  7256. };
  7257. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  7258. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  7259. MSM_BACKEND_DAI_MI2S_RX,
  7260. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  7261. msm_routing_put_port_mixer),
  7262. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7263. MSM_BACKEND_DAI_MI2S_RX,
  7264. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7265. msm_routing_put_port_mixer),
  7266. };
  7267. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  7268. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7270. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7271. msm_routing_put_port_mixer),
  7272. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7274. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7275. msm_routing_put_port_mixer),
  7276. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7278. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  7279. msm_routing_put_port_mixer),
  7280. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7282. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7283. msm_routing_put_port_mixer),
  7284. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7286. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  7287. msm_routing_put_port_mixer),
  7288. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7290. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7291. msm_routing_put_port_mixer),
  7292. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7294. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7295. msm_routing_put_port_mixer),
  7296. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7298. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7299. msm_routing_put_port_mixer),
  7300. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7302. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  7303. msm_routing_put_port_mixer),
  7304. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7306. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  7307. msm_routing_put_port_mixer),
  7308. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_PRI_MI2S_RX,
  7310. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  7311. msm_routing_put_port_mixer),
  7312. };
  7313. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  7314. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7315. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7316. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7317. msm_routing_put_port_mixer),
  7318. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7319. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7320. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7321. msm_routing_put_port_mixer),
  7322. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7324. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  7325. msm_routing_put_port_mixer),
  7326. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7328. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  7329. msm_routing_put_port_mixer),
  7330. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7332. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  7333. msm_routing_put_port_mixer),
  7334. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7336. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7337. msm_routing_put_port_mixer),
  7338. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7340. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7341. msm_routing_put_port_mixer),
  7342. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7344. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7345. msm_routing_put_port_mixer),
  7346. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7348. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7349. msm_routing_put_port_mixer),
  7350. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7352. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  7353. msm_routing_put_port_mixer),
  7354. };
  7355. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  7356. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7357. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7358. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7359. msm_routing_put_port_mixer),
  7360. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7361. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7362. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7363. msm_routing_put_port_mixer),
  7364. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7365. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7366. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  7367. msm_routing_put_port_mixer),
  7368. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7369. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7370. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7371. msm_routing_put_port_mixer),
  7372. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7373. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7374. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7375. msm_routing_put_port_mixer),
  7376. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  7377. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7378. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7379. msm_routing_put_port_mixer),
  7380. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7381. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7382. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7383. msm_routing_put_port_mixer),
  7384. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7386. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  7387. msm_routing_put_port_mixer),
  7388. };
  7389. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  7390. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7391. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  7392. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7393. msm_routing_put_port_mixer),
  7394. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  7396. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7397. msm_routing_put_port_mixer),
  7398. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7399. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  7400. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  7401. msm_routing_put_port_mixer),
  7402. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7403. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  7404. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7405. msm_routing_put_port_mixer),
  7406. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7407. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  7408. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7409. msm_routing_put_port_mixer),
  7410. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  7411. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  7412. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7413. msm_routing_put_port_mixer),
  7414. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7415. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  7416. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7417. msm_routing_put_port_mixer),
  7418. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7419. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  7420. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  7421. msm_routing_put_port_mixer),
  7422. };
  7423. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  7424. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7426. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7427. msm_routing_put_port_mixer),
  7428. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7430. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7431. msm_routing_put_port_mixer),
  7432. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7434. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  7435. msm_routing_put_port_mixer),
  7436. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7438. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7439. msm_routing_put_port_mixer),
  7440. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7442. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7443. msm_routing_put_port_mixer),
  7444. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7446. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7447. msm_routing_put_port_mixer),
  7448. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7450. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7451. msm_routing_put_port_mixer),
  7452. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7454. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  7455. msm_routing_put_port_mixer),
  7456. };
  7457. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  7458. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7460. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7461. msm_routing_put_port_mixer),
  7462. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7465. msm_routing_put_port_mixer),
  7466. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7468. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7469. msm_routing_put_port_mixer),
  7470. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7472. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7473. msm_routing_put_port_mixer),
  7474. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7476. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7477. msm_routing_put_port_mixer),
  7478. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7480. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  7481. msm_routing_put_port_mixer),
  7482. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7484. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  7485. msm_routing_put_port_mixer),
  7486. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7488. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  7489. msm_routing_put_port_mixer),
  7490. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7492. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  7493. msm_routing_put_port_mixer),
  7494. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7496. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  7497. msm_routing_put_port_mixer),
  7498. };
  7499. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  7500. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  7501. MSM_BACKEND_DAI_PRI_I2S_RX,
  7502. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7503. msm_routing_put_voice_mixer),
  7504. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  7505. MSM_BACKEND_DAI_PRI_I2S_RX,
  7506. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7507. msm_routing_put_voice_mixer),
  7508. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  7509. MSM_BACKEND_DAI_PRI_I2S_RX,
  7510. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7511. msm_routing_put_voice_mixer),
  7512. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  7513. MSM_BACKEND_DAI_PRI_I2S_RX,
  7514. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7515. msm_routing_put_voice_mixer),
  7516. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  7517. MSM_BACKEND_DAI_PRI_I2S_RX,
  7518. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7519. msm_routing_put_voice_mixer),
  7520. };
  7521. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  7522. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_SEC_I2S_RX,
  7524. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7525. msm_routing_put_voice_mixer),
  7526. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  7527. MSM_BACKEND_DAI_SEC_I2S_RX,
  7528. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7529. msm_routing_put_voice_mixer),
  7530. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  7531. MSM_BACKEND_DAI_SEC_I2S_RX,
  7532. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7533. msm_routing_put_voice_mixer),
  7534. };
  7535. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  7536. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7538. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7539. msm_routing_put_voice_mixer),
  7540. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7542. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7543. msm_routing_put_voice_mixer),
  7544. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7546. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  7547. msm_routing_put_voice_mixer),
  7548. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7550. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7551. msm_routing_put_voice_mixer),
  7552. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7554. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7555. msm_routing_put_voice_mixer),
  7556. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7558. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7559. msm_routing_put_voice_mixer),
  7560. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7562. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7563. msm_routing_put_voice_mixer),
  7564. };
  7565. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  7566. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  7567. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  7568. msm_routing_put_int0_mi2s_switch_mixer);
  7569. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  7570. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  7571. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  7572. msm_routing_put_int4_mi2s_switch_mixer);
  7573. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  7574. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  7575. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  7576. msm_routing_put_pri_mi2s_switch_mixer);
  7577. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  7578. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  7579. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  7580. msm_routing_put_sec_mi2s_switch_mixer);
  7581. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  7582. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  7583. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  7584. msm_routing_put_tert_mi2s_switch_mixer);
  7585. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  7586. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  7587. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  7588. msm_routing_put_quat_mi2s_switch_mixer);
  7589. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  7590. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  7591. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  7592. msm_routing_put_quin_mi2s_switch_mixer);
  7593. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  7594. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  7595. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  7596. msm_routing_put_sen_mi2s_switch_mixer);
  7597. #endif
  7598. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  7599. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_HDMI_RX,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_HDMI_RX,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_HDMI_RX,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_HDMI_RX,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_HDMI_RX,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_HDMI_RX,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_HDMI_RX,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_HDMI_RX,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_HDMI_RX,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_HDMI_RX,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_HDMI_RX,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_HDMI_RX,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_HDMI_RX,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_HDMI_RX,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_HDMI_RX,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_HDMI_RX,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_HDMI_RX,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_HDMI_RX,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_HDMI_RX,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_HDMI_RX,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_HDMI_RX,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_HDMI_RX,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_HDMI_RX,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. };
  7692. static const struct snd_kcontrol_new hdmi_ms_mixer_controls[] = {
  7693. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_HDMI_RX_MS,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_HDMI_RX_MS,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_HDMI_RX_MS,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_HDMI_RX_MS,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_HDMI_RX_MS,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_HDMI_RX_MS,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_HDMI_RX_MS,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_HDMI_RX_MS,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_HDMI_RX_MS,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_HDMI_RX_MS,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_HDMI_RX_MS,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_HDMI_RX_MS,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_HDMI_RX_MS,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_HDMI_RX_MS,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_HDMI_RX_MS,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_HDMI_RX_MS,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_HDMI_RX_MS,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_HDMI_RX_MS,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_HDMI_RX_MS,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_HDMI_RX_MS,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_HDMI_RX_MS,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_HDMI_RX_MS,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_HDMI_RX_MS,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. };
  7786. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7787. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. };
  7856. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. };
  7926. /* incall music delivery mixer */
  7927. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7928. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7929. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7930. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7931. msm_routing_put_audio_mixer),
  7932. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7933. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7934. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7935. msm_routing_put_audio_mixer),
  7936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7937. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7939. msm_routing_put_audio_mixer),
  7940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA5, 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_VOICE_PLAYBACK_TX,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. };
  7949. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7950. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7951. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7953. msm_routing_put_audio_mixer),
  7954. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7955. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7956. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7957. msm_routing_put_audio_mixer),
  7958. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7959. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7960. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7961. msm_routing_put_audio_mixer),
  7962. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7963. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7964. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7965. msm_routing_put_audio_mixer),
  7966. };
  7967. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7968. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. };
  7985. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7986. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7987. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7989. msm_routing_put_audio_mixer),
  7990. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7991. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7992. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7993. msm_routing_put_audio_mixer),
  7994. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7995. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7996. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7997. msm_routing_put_audio_mixer),
  7998. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7999. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8000. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8001. msm_routing_put_audio_mixer),
  8002. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8003. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8004. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8005. msm_routing_put_audio_mixer),
  8006. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8007. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8008. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8009. msm_routing_put_audio_mixer),
  8010. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8011. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8012. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8013. msm_routing_put_audio_mixer),
  8014. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. };
  8055. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  8056. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8057. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8058. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8059. msm_routing_put_audio_mixer),
  8060. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8061. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8062. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8063. msm_routing_put_audio_mixer),
  8064. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8065. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8066. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8067. msm_routing_put_audio_mixer),
  8068. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8069. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8070. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8071. msm_routing_put_audio_mixer),
  8072. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8073. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8074. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8075. msm_routing_put_audio_mixer),
  8076. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8077. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8078. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8079. msm_routing_put_audio_mixer),
  8080. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8081. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8082. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8083. msm_routing_put_audio_mixer),
  8084. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8085. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8086. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8087. msm_routing_put_audio_mixer),
  8088. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. };
  8133. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  8134. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8139. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8141. msm_routing_put_audio_mixer),
  8142. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8143. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8144. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8145. msm_routing_put_audio_mixer),
  8146. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8199. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8200. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8201. msm_routing_put_audio_mixer),
  8202. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8203. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8204. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8205. msm_routing_put_audio_mixer),
  8206. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8207. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  8208. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8209. msm_routing_put_audio_mixer),
  8210. };
  8211. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  8212. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. };
  8289. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  8290. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8295. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8296. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8297. msm_routing_put_audio_mixer),
  8298. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8299. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8301. msm_routing_put_audio_mixer),
  8302. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8303. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8304. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8305. msm_routing_put_audio_mixer),
  8306. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. };
  8367. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  8368. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8373. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8374. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8375. msm_routing_put_audio_mixer),
  8376. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8377. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8378. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8379. msm_routing_put_audio_mixer),
  8380. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8381. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8382. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8383. msm_routing_put_audio_mixer),
  8384. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. };
  8445. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  8446. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8447. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8448. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8449. msm_routing_put_audio_mixer),
  8450. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8487. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8488. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8489. msm_routing_put_audio_mixer),
  8490. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8491. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8492. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8493. msm_routing_put_audio_mixer),
  8494. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8495. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8496. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8497. msm_routing_put_audio_mixer),
  8498. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8499. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8500. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8501. msm_routing_put_audio_mixer),
  8502. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8503. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8504. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8505. msm_routing_put_audio_mixer),
  8506. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8508. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8509. msm_routing_put_audio_mixer),
  8510. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8512. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8513. msm_routing_put_audio_mixer),
  8514. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. };
  8523. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  8524. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8561. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8562. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8563. msm_routing_put_audio_mixer),
  8564. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. };
  8601. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  8602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8623. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8625. msm_routing_put_audio_mixer),
  8626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8627. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8629. msm_routing_put_audio_mixer),
  8630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8631. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8633. msm_routing_put_audio_mixer),
  8634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8635. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8637. msm_routing_put_audio_mixer),
  8638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8641. msm_routing_put_audio_mixer),
  8642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8645. msm_routing_put_audio_mixer),
  8646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8649. msm_routing_put_audio_mixer),
  8650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8653. msm_routing_put_audio_mixer),
  8654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8657. msm_routing_put_audio_mixer),
  8658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8661. msm_routing_put_audio_mixer),
  8662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8665. msm_routing_put_audio_mixer),
  8666. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8667. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8668. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8669. msm_routing_put_audio_mixer),
  8670. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8672. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8673. msm_routing_put_audio_mixer),
  8674. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8676. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8677. msm_routing_put_audio_mixer),
  8678. };
  8679. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  8680. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8697. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8698. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8699. msm_routing_put_audio_mixer),
  8700. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8701. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8702. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8703. msm_routing_put_audio_mixer),
  8704. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8705. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8706. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8707. msm_routing_put_audio_mixer),
  8708. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8709. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8710. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8711. msm_routing_put_audio_mixer),
  8712. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8713. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8714. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8715. msm_routing_put_audio_mixer),
  8716. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8718. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8719. msm_routing_put_audio_mixer),
  8720. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8722. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8723. msm_routing_put_audio_mixer),
  8724. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8726. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8727. msm_routing_put_audio_mixer),
  8728. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8730. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8731. msm_routing_put_audio_mixer),
  8732. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8734. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8735. msm_routing_put_audio_mixer),
  8736. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8738. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8739. msm_routing_put_audio_mixer),
  8740. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8742. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8743. msm_routing_put_audio_mixer),
  8744. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8746. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8747. msm_routing_put_audio_mixer),
  8748. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8749. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8750. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8751. msm_routing_put_audio_mixer),
  8752. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8753. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8754. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8755. msm_routing_put_audio_mixer),
  8756. };
  8757. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8758. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8777. msm_routing_put_audio_mixer),
  8778. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8780. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8781. msm_routing_put_audio_mixer),
  8782. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8783. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8784. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8785. msm_routing_put_audio_mixer),
  8786. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8788. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8789. msm_routing_put_audio_mixer),
  8790. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8792. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8793. msm_routing_put_audio_mixer),
  8794. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8796. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8797. msm_routing_put_audio_mixer),
  8798. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8800. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8801. msm_routing_put_audio_mixer),
  8802. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8804. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8805. msm_routing_put_audio_mixer),
  8806. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8808. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8809. msm_routing_put_audio_mixer),
  8810. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8812. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8813. msm_routing_put_audio_mixer),
  8814. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8815. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8816. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8817. msm_routing_put_audio_mixer),
  8818. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8820. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8821. msm_routing_put_audio_mixer),
  8822. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8824. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8825. msm_routing_put_audio_mixer),
  8826. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8827. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8828. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8829. msm_routing_put_audio_mixer),
  8830. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8831. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8832. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8833. msm_routing_put_audio_mixer),
  8834. };
  8835. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8836. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8853. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8854. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8855. msm_routing_put_audio_mixer),
  8856. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8857. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8858. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8859. msm_routing_put_audio_mixer),
  8860. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8861. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8862. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8863. msm_routing_put_audio_mixer),
  8864. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8865. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8866. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8867. msm_routing_put_audio_mixer),
  8868. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8869. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8870. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8871. msm_routing_put_audio_mixer),
  8872. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8873. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8874. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8875. msm_routing_put_audio_mixer),
  8876. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8877. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8878. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8879. msm_routing_put_audio_mixer),
  8880. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8881. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8882. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8883. msm_routing_put_audio_mixer),
  8884. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8885. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8886. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8887. msm_routing_put_audio_mixer),
  8888. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8889. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8890. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8891. msm_routing_put_audio_mixer),
  8892. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8893. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8894. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8895. msm_routing_put_audio_mixer),
  8896. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8897. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8898. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8899. msm_routing_put_audio_mixer),
  8900. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8901. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8902. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8903. msm_routing_put_audio_mixer),
  8904. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8905. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8906. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8907. msm_routing_put_audio_mixer),
  8908. };
  8909. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8910. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8947. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8948. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8949. msm_routing_put_audio_mixer),
  8950. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8951. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8952. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8953. msm_routing_put_audio_mixer),
  8954. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8955. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8956. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8957. msm_routing_put_audio_mixer),
  8958. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8959. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8960. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8961. msm_routing_put_audio_mixer),
  8962. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8963. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8964. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8965. msm_routing_put_audio_mixer),
  8966. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8967. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8968. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8969. msm_routing_put_audio_mixer),
  8970. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8971. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8972. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8973. msm_routing_put_audio_mixer),
  8974. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8975. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8976. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8977. msm_routing_put_audio_mixer),
  8978. };
  8979. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8980. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_USB_RX,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_USB_RX,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_USB_RX,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8993. MSM_BACKEND_DAI_USB_RX,
  8994. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8995. msm_routing_put_audio_mixer),
  8996. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8997. MSM_BACKEND_DAI_USB_RX,
  8998. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8999. msm_routing_put_audio_mixer),
  9000. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9001. MSM_BACKEND_DAI_USB_RX,
  9002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9003. msm_routing_put_audio_mixer),
  9004. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9005. MSM_BACKEND_DAI_USB_RX,
  9006. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9007. msm_routing_put_audio_mixer),
  9008. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9009. MSM_BACKEND_DAI_USB_RX,
  9010. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9011. msm_routing_put_audio_mixer),
  9012. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9013. MSM_BACKEND_DAI_USB_RX,
  9014. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9015. msm_routing_put_audio_mixer),
  9016. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9017. MSM_BACKEND_DAI_USB_RX,
  9018. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9019. msm_routing_put_audio_mixer),
  9020. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9021. MSM_BACKEND_DAI_USB_RX,
  9022. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9023. msm_routing_put_audio_mixer),
  9024. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9025. MSM_BACKEND_DAI_USB_RX,
  9026. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9027. msm_routing_put_audio_mixer),
  9028. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9029. MSM_BACKEND_DAI_USB_RX,
  9030. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9031. msm_routing_put_audio_mixer),
  9032. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9033. MSM_BACKEND_DAI_USB_RX,
  9034. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9035. msm_routing_put_audio_mixer),
  9036. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9037. MSM_BACKEND_DAI_USB_RX,
  9038. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9039. msm_routing_put_audio_mixer),
  9040. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9041. MSM_BACKEND_DAI_USB_RX,
  9042. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9043. msm_routing_put_audio_mixer),
  9044. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9045. MSM_BACKEND_DAI_USB_RX,
  9046. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9047. msm_routing_put_audio_mixer),
  9048. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  9049. MSM_BACKEND_DAI_USB_RX,
  9050. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  9051. msm_routing_put_audio_mixer),
  9052. };
  9053. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  9054. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9091. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9092. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9093. msm_routing_put_audio_mixer),
  9094. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9095. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9096. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9097. msm_routing_put_audio_mixer),
  9098. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9099. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9100. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9101. msm_routing_put_audio_mixer),
  9102. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9103. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9104. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9105. msm_routing_put_audio_mixer),
  9106. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9107. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9108. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9109. msm_routing_put_audio_mixer),
  9110. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9111. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9112. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9113. msm_routing_put_audio_mixer),
  9114. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9115. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9116. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9117. msm_routing_put_audio_mixer),
  9118. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9119. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9120. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9121. msm_routing_put_audio_mixer),
  9122. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9123. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9124. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9125. msm_routing_put_audio_mixer),
  9126. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9127. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9128. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9129. msm_routing_put_audio_mixer),
  9130. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9131. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9132. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9133. msm_routing_put_audio_mixer),
  9134. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9136. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9137. msm_routing_put_audio_mixer),
  9138. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9143. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9144. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9145. msm_routing_put_audio_mixer),
  9146. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  9147. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9148. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  9149. msm_routing_put_audio_mixer),
  9150. };
  9151. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  9152. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9201. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9202. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9203. msm_routing_put_audio_mixer),
  9204. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9205. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9206. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9207. msm_routing_put_audio_mixer),
  9208. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. };
  9225. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  9226. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9227. MSM_BACKEND_DAI_INT_FM_RX,
  9228. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9229. msm_routing_put_audio_mixer),
  9230. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9231. MSM_BACKEND_DAI_INT_FM_RX,
  9232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9233. msm_routing_put_audio_mixer),
  9234. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9235. MSM_BACKEND_DAI_INT_FM_RX,
  9236. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9237. msm_routing_put_audio_mixer),
  9238. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9239. MSM_BACKEND_DAI_INT_FM_RX,
  9240. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9241. msm_routing_put_audio_mixer),
  9242. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9243. MSM_BACKEND_DAI_INT_FM_RX,
  9244. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9245. msm_routing_put_audio_mixer),
  9246. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9247. MSM_BACKEND_DAI_INT_FM_RX,
  9248. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9249. msm_routing_put_audio_mixer),
  9250. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9251. MSM_BACKEND_DAI_INT_FM_RX,
  9252. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9253. msm_routing_put_audio_mixer),
  9254. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9255. MSM_BACKEND_DAI_INT_FM_RX,
  9256. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9257. msm_routing_put_audio_mixer),
  9258. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9259. MSM_BACKEND_DAI_INT_FM_RX,
  9260. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9261. msm_routing_put_audio_mixer),
  9262. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9263. MSM_BACKEND_DAI_INT_FM_RX,
  9264. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9265. msm_routing_put_audio_mixer),
  9266. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9267. MSM_BACKEND_DAI_INT_FM_RX,
  9268. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9269. msm_routing_put_audio_mixer),
  9270. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9271. MSM_BACKEND_DAI_INT_FM_RX,
  9272. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9273. msm_routing_put_audio_mixer),
  9274. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9275. MSM_BACKEND_DAI_INT_FM_RX,
  9276. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9277. msm_routing_put_audio_mixer),
  9278. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9279. MSM_BACKEND_DAI_INT_FM_RX,
  9280. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9281. msm_routing_put_audio_mixer),
  9282. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9283. MSM_BACKEND_DAI_INT_FM_RX,
  9284. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9285. msm_routing_put_audio_mixer),
  9286. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9287. MSM_BACKEND_DAI_INT_FM_RX,
  9288. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9289. msm_routing_put_audio_mixer),
  9290. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9291. MSM_BACKEND_DAI_INT_FM_RX,
  9292. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9293. msm_routing_put_audio_mixer),
  9294. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9295. MSM_BACKEND_DAI_INT_FM_RX,
  9296. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9297. msm_routing_put_audio_mixer),
  9298. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_INT_FM_RX,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_INT_FM_RX,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_INT_FM_RX,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_INT_FM_RX,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_INT_FM_RX,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. };
  9319. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  9320. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9321. MSM_BACKEND_DAI_AFE_PCM_RX,
  9322. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9323. msm_routing_put_audio_mixer),
  9324. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9325. MSM_BACKEND_DAI_AFE_PCM_RX,
  9326. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9327. msm_routing_put_audio_mixer),
  9328. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9329. MSM_BACKEND_DAI_AFE_PCM_RX,
  9330. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9331. msm_routing_put_audio_mixer),
  9332. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9333. MSM_BACKEND_DAI_AFE_PCM_RX,
  9334. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9335. msm_routing_put_audio_mixer),
  9336. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9337. MSM_BACKEND_DAI_AFE_PCM_RX,
  9338. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9339. msm_routing_put_audio_mixer),
  9340. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9341. MSM_BACKEND_DAI_AFE_PCM_RX,
  9342. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9343. msm_routing_put_audio_mixer),
  9344. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9345. MSM_BACKEND_DAI_AFE_PCM_RX,
  9346. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9347. msm_routing_put_audio_mixer),
  9348. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9349. MSM_BACKEND_DAI_AFE_PCM_RX,
  9350. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9351. msm_routing_put_audio_mixer),
  9352. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9353. MSM_BACKEND_DAI_AFE_PCM_RX,
  9354. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9355. msm_routing_put_audio_mixer),
  9356. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9357. MSM_BACKEND_DAI_AFE_PCM_RX,
  9358. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9359. msm_routing_put_audio_mixer),
  9360. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9361. MSM_BACKEND_DAI_AFE_PCM_RX,
  9362. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9363. msm_routing_put_audio_mixer),
  9364. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9365. MSM_BACKEND_DAI_AFE_PCM_RX,
  9366. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9367. msm_routing_put_audio_mixer),
  9368. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9369. MSM_BACKEND_DAI_AFE_PCM_RX,
  9370. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9371. msm_routing_put_audio_mixer),
  9372. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9373. MSM_BACKEND_DAI_AFE_PCM_RX,
  9374. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9375. msm_routing_put_audio_mixer),
  9376. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9377. MSM_BACKEND_DAI_AFE_PCM_RX,
  9378. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9379. msm_routing_put_audio_mixer),
  9380. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9381. MSM_BACKEND_DAI_AFE_PCM_RX,
  9382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9383. msm_routing_put_audio_mixer),
  9384. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9385. MSM_BACKEND_DAI_AFE_PCM_RX,
  9386. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9387. msm_routing_put_audio_mixer),
  9388. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9389. MSM_BACKEND_DAI_AFE_PCM_RX,
  9390. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9391. msm_routing_put_audio_mixer),
  9392. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_AFE_PCM_RX,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_AFE_PCM_RX,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_AFE_PCM_RX,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_AFE_PCM_RX,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_AFE_PCM_RX,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. };
  9413. #ifndef CONFIG_AUXPCM_DISABLE
  9414. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  9415. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_AUXPCM_RX,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_AUXPCM_RX,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_AUXPCM_RX,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_AUXPCM_RX,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_AUXPCM_RX,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_AUXPCM_RX,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_AUXPCM_RX,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_AUXPCM_RX,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_AUXPCM_RX,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_AUXPCM_RX,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_AUXPCM_RX,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_AUXPCM_RX,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_AUXPCM_RX,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_AUXPCM_RX,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_AUXPCM_RX,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_AUXPCM_RX,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_AUXPCM_RX,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_AUXPCM_RX,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_AUXPCM_RX,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_AUXPCM_RX,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_AUXPCM_RX,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_AUXPCM_RX,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_AUXPCM_RX,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_AUXPCM_RX,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. };
  9512. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  9513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. };
  9610. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  9611. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. };
  9680. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  9681. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. };
  9750. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  9751. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. };
  9820. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9821. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. };
  9890. #endif
  9891. #ifndef CONFIG_TDM_DISABLE
  9892. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9893. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. };
  9994. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9995. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. };
  10096. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  10097. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. };
  10198. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  10199. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10265. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10266. msm_routing_put_audio_mixer),
  10267. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10268. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10269. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10270. msm_routing_put_audio_mixer),
  10271. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10273. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10274. msm_routing_put_audio_mixer),
  10275. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10277. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10278. msm_routing_put_audio_mixer),
  10279. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10285. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  10286. msm_routing_put_audio_mixer),
  10287. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. };
  10300. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  10301. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10343. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10344. msm_routing_put_audio_mixer),
  10345. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10347. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10348. msm_routing_put_audio_mixer),
  10349. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10350. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10351. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10352. msm_routing_put_audio_mixer),
  10353. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10354. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10355. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10356. msm_routing_put_audio_mixer),
  10357. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10359. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10360. msm_routing_put_audio_mixer),
  10361. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10363. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10364. msm_routing_put_audio_mixer),
  10365. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. };
  10402. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  10403. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10425. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10426. msm_routing_put_audio_mixer),
  10427. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10429. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10434. msm_routing_put_audio_mixer),
  10435. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10438. msm_routing_put_audio_mixer),
  10439. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10441. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10442. msm_routing_put_audio_mixer),
  10443. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10445. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10446. msm_routing_put_audio_mixer),
  10447. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10449. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10450. msm_routing_put_audio_mixer),
  10451. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10453. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10454. msm_routing_put_audio_mixer),
  10455. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10473. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10478. msm_routing_put_audio_mixer),
  10479. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. };
  10504. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  10505. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10507. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10508. msm_routing_put_audio_mixer),
  10509. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10511. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10512. msm_routing_put_audio_mixer),
  10513. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10515. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10516. msm_routing_put_audio_mixer),
  10517. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10519. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10520. msm_routing_put_audio_mixer),
  10521. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. };
  10606. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  10607. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. };
  10708. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  10709. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10803. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  10804. msm_routing_put_audio_mixer),
  10805. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. };
  10810. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10811. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. };
  10912. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10913. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. };
  11014. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  11015. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. };
  11116. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  11117. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. };
  11218. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  11219. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. };
  11324. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  11325. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. };
  11430. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  11431. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. };
  11536. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  11537. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. };
  11642. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  11643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11662. msm_routing_put_audio_mixer),
  11663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11666. msm_routing_put_audio_mixer),
  11667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11670. msm_routing_put_audio_mixer),
  11671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11698. msm_routing_put_audio_mixer),
  11699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11702. msm_routing_put_audio_mixer),
  11703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11706. msm_routing_put_audio_mixer),
  11707. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. };
  11748. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11749. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11851. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11852. msm_routing_put_audio_mixer),
  11853. };
  11854. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11855. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. };
  11960. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11961. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("MultiMedia33", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("MultiMedia34", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. };
  12066. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  12067. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12113. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12114. msm_routing_put_audio_mixer),
  12115. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12130. msm_routing_put_audio_mixer),
  12131. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12133. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12134. msm_routing_put_audio_mixer),
  12135. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  12137. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12138. msm_routing_put_audio_mixer),
  12139. };
  12140. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  12141. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. };
  12214. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  12215. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. };
  12288. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  12289. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12300. msm_routing_put_audio_mixer),
  12301. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. };
  12362. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12363. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12365. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12366. msm_routing_put_voice_mixer),
  12367. };
  12368. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  12369. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  12371. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12372. msm_routing_put_voice_mixer),
  12373. };
  12374. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  12375. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12377. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12378. msm_routing_put_voice_mixer),
  12379. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12381. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12382. msm_routing_put_voice_stub_mixer),
  12383. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12385. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12386. msm_routing_put_voice_stub_mixer),
  12387. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12389. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12390. msm_routing_put_voice_mixer),
  12391. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12393. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12394. msm_routing_put_voice_mixer),
  12395. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12397. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12398. msm_routing_put_voice_mixer),
  12399. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12401. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12402. msm_routing_put_voice_mixer),
  12403. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12405. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12406. msm_routing_put_voice_mixer),
  12407. };
  12408. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  12409. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12411. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12412. msm_routing_put_voice_mixer),
  12413. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12415. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12416. msm_routing_put_voice_stub_mixer),
  12417. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12419. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12420. msm_routing_put_voice_stub_mixer),
  12421. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12423. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12424. msm_routing_put_voice_mixer),
  12425. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12427. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12428. msm_routing_put_voice_mixer),
  12429. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12431. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12432. msm_routing_put_voice_mixer),
  12433. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12435. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12436. msm_routing_put_voice_mixer),
  12437. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12439. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12440. msm_routing_put_voice_mixer),
  12441. };
  12442. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  12443. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12445. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12446. msm_routing_put_voice_mixer),
  12447. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12449. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12450. msm_routing_put_voice_stub_mixer),
  12451. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12453. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12454. msm_routing_put_voice_stub_mixer),
  12455. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12457. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12458. msm_routing_put_voice_mixer),
  12459. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12461. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12462. msm_routing_put_voice_mixer),
  12463. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12465. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12466. msm_routing_put_voice_mixer),
  12467. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12469. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12470. msm_routing_put_voice_mixer),
  12471. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12473. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12474. msm_routing_put_voice_mixer),
  12475. };
  12476. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  12477. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12479. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12480. msm_routing_put_voice_mixer),
  12481. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12483. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12484. msm_routing_put_voice_stub_mixer),
  12485. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12487. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12488. msm_routing_put_voice_stub_mixer),
  12489. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12491. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12492. msm_routing_put_voice_mixer),
  12493. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12495. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12496. msm_routing_put_voice_mixer),
  12497. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12499. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12500. msm_routing_put_voice_mixer),
  12501. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12503. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12504. msm_routing_put_voice_mixer),
  12505. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12507. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12508. msm_routing_put_voice_mixer),
  12509. };
  12510. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  12511. #ifndef CONFIG_MI2S_DISABLE
  12512. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12514. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12515. msm_routing_get_port_mixer,
  12516. msm_routing_put_port_mixer),
  12517. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12519. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12520. msm_routing_get_port_mixer,
  12521. msm_routing_put_port_mixer),
  12522. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12524. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12525. msm_routing_get_port_mixer,
  12526. msm_routing_put_port_mixer),
  12527. #endif
  12528. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12530. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12531. msm_routing_get_port_mixer,
  12532. msm_routing_put_port_mixer),
  12533. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12535. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12536. msm_routing_get_port_mixer,
  12537. msm_routing_put_port_mixer),
  12538. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12540. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12541. msm_routing_get_port_mixer,
  12542. msm_routing_put_port_mixer),
  12543. #ifndef CONFIG_AUXPCM_DISABLE
  12544. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12545. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12546. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12547. msm_routing_get_port_mixer,
  12548. msm_routing_put_port_mixer),
  12549. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12551. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12552. msm_routing_get_port_mixer,
  12553. msm_routing_put_port_mixer),
  12554. #endif
  12555. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12557. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  12558. msm_routing_get_port_mixer,
  12559. msm_routing_put_port_mixer),
  12560. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12561. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12562. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  12563. msm_routing_get_port_mixer,
  12564. msm_routing_put_port_mixer),
  12565. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12567. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  12568. msm_routing_get_port_mixer,
  12569. msm_routing_put_port_mixer),
  12570. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12572. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  12573. msm_routing_get_port_mixer,
  12574. msm_routing_put_port_mixer),
  12575. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12577. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12578. msm_routing_get_port_mixer,
  12579. msm_routing_put_port_mixer),
  12580. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12581. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12582. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12583. msm_routing_get_port_mixer,
  12584. msm_routing_put_port_mixer),
  12585. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12587. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12588. msm_routing_get_port_mixer,
  12589. msm_routing_put_port_mixer),
  12590. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12592. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12593. msm_routing_get_port_mixer,
  12594. msm_routing_put_port_mixer),
  12595. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12597. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12598. msm_routing_get_port_mixer,
  12599. msm_routing_put_port_mixer),
  12600. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12601. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12602. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12603. msm_routing_get_port_mixer,
  12604. msm_routing_put_port_mixer),
  12605. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12607. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12608. msm_routing_get_port_mixer,
  12609. msm_routing_put_port_mixer),
  12610. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12612. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12613. msm_routing_get_port_mixer,
  12614. msm_routing_put_port_mixer),
  12615. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12617. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  12618. msm_routing_get_port_mixer,
  12619. msm_routing_put_port_mixer),
  12620. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12621. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12622. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  12623. msm_routing_get_port_mixer,
  12624. msm_routing_put_port_mixer),
  12625. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12627. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  12628. msm_routing_get_port_mixer,
  12629. msm_routing_put_port_mixer),
  12630. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  12632. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  12633. msm_routing_get_port_mixer,
  12634. msm_routing_put_port_mixer),
  12635. };
  12636. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  12637. #ifndef CONFIG_MI2S_DISABLE
  12638. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12640. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12641. msm_routing_get_port_mixer,
  12642. msm_routing_put_port_mixer),
  12643. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12645. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12646. msm_routing_get_port_mixer,
  12647. msm_routing_put_port_mixer),
  12648. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12650. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12651. msm_routing_get_port_mixer,
  12652. msm_routing_put_port_mixer),
  12653. #endif
  12654. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12656. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12657. msm_routing_get_port_mixer,
  12658. msm_routing_put_port_mixer),
  12659. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12661. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12662. msm_routing_get_port_mixer,
  12663. msm_routing_put_port_mixer),
  12664. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12665. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12666. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12667. msm_routing_get_port_mixer,
  12668. msm_routing_put_port_mixer),
  12669. #ifndef CONFIG_AUXPCM_DISABLE
  12670. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12672. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12673. msm_routing_get_port_mixer,
  12674. msm_routing_put_port_mixer),
  12675. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12677. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12678. msm_routing_get_port_mixer,
  12679. msm_routing_put_port_mixer),
  12680. #endif
  12681. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12683. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  12684. msm_routing_get_port_mixer,
  12685. msm_routing_put_port_mixer),
  12686. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12687. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12688. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  12689. msm_routing_get_port_mixer,
  12690. msm_routing_put_port_mixer),
  12691. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12693. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  12694. msm_routing_get_port_mixer,
  12695. msm_routing_put_port_mixer),
  12696. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12698. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  12699. msm_routing_get_port_mixer,
  12700. msm_routing_put_port_mixer),
  12701. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12703. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12704. msm_routing_get_port_mixer,
  12705. msm_routing_put_port_mixer),
  12706. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12707. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12708. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12709. msm_routing_get_port_mixer,
  12710. msm_routing_put_port_mixer),
  12711. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12713. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12714. msm_routing_get_port_mixer,
  12715. msm_routing_put_port_mixer),
  12716. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12718. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12719. msm_routing_get_port_mixer,
  12720. msm_routing_put_port_mixer),
  12721. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12723. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12724. msm_routing_get_port_mixer,
  12725. msm_routing_put_port_mixer),
  12726. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12727. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12728. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12729. msm_routing_get_port_mixer,
  12730. msm_routing_put_port_mixer),
  12731. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12733. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12734. msm_routing_get_port_mixer,
  12735. msm_routing_put_port_mixer),
  12736. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12738. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12739. msm_routing_get_port_mixer,
  12740. msm_routing_put_port_mixer),
  12741. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12743. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  12744. msm_routing_get_port_mixer,
  12745. msm_routing_put_port_mixer),
  12746. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12747. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12748. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  12749. msm_routing_get_port_mixer,
  12750. msm_routing_put_port_mixer),
  12751. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12753. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  12754. msm_routing_get_port_mixer,
  12755. msm_routing_put_port_mixer),
  12756. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  12758. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  12759. msm_routing_get_port_mixer,
  12760. msm_routing_put_port_mixer),
  12761. };
  12762. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  12763. #ifndef CONFIG_MI2S_DISABLE
  12764. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12766. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12767. msm_routing_get_port_mixer,
  12768. msm_routing_put_port_mixer),
  12769. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12771. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12772. msm_routing_get_port_mixer,
  12773. msm_routing_put_port_mixer),
  12774. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12775. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12776. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12777. msm_routing_get_port_mixer,
  12778. msm_routing_put_port_mixer),
  12779. #endif
  12780. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12782. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12783. msm_routing_get_port_mixer,
  12784. msm_routing_put_port_mixer),
  12785. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12787. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12788. msm_routing_get_port_mixer,
  12789. msm_routing_put_port_mixer),
  12790. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12792. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12793. msm_routing_get_port_mixer,
  12794. msm_routing_put_port_mixer),
  12795. #ifndef CONFIG_AUXPCM_DISABLE
  12796. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12798. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12799. msm_routing_get_port_mixer,
  12800. msm_routing_put_port_mixer),
  12801. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12803. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12804. msm_routing_get_port_mixer,
  12805. msm_routing_put_port_mixer),
  12806. #endif
  12807. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12809. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  12810. msm_routing_get_port_mixer,
  12811. msm_routing_put_port_mixer),
  12812. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12814. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  12815. msm_routing_get_port_mixer,
  12816. msm_routing_put_port_mixer),
  12817. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12819. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  12820. msm_routing_get_port_mixer,
  12821. msm_routing_put_port_mixer),
  12822. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12823. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12824. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  12825. msm_routing_get_port_mixer,
  12826. msm_routing_put_port_mixer),
  12827. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12829. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12830. msm_routing_get_port_mixer,
  12831. msm_routing_put_port_mixer),
  12832. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12834. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12835. msm_routing_get_port_mixer,
  12836. msm_routing_put_port_mixer),
  12837. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12839. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12840. msm_routing_get_port_mixer,
  12841. msm_routing_put_port_mixer),
  12842. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12844. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12845. msm_routing_get_port_mixer,
  12846. msm_routing_put_port_mixer),
  12847. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12849. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12850. msm_routing_get_port_mixer,
  12851. msm_routing_put_port_mixer),
  12852. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12854. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12855. msm_routing_get_port_mixer,
  12856. msm_routing_put_port_mixer),
  12857. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12859. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12860. msm_routing_get_port_mixer,
  12861. msm_routing_put_port_mixer),
  12862. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12864. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12865. msm_routing_get_port_mixer,
  12866. msm_routing_put_port_mixer),
  12867. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12869. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  12870. msm_routing_get_port_mixer,
  12871. msm_routing_put_port_mixer),
  12872. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12874. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  12875. msm_routing_get_port_mixer,
  12876. msm_routing_put_port_mixer),
  12877. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12879. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  12880. msm_routing_get_port_mixer,
  12881. msm_routing_put_port_mixer),
  12882. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  12884. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  12885. msm_routing_get_port_mixer,
  12886. msm_routing_put_port_mixer),
  12887. };
  12888. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  12889. #ifndef CONFIG_MI2S_DISABLE
  12890. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12892. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12893. msm_routing_get_port_mixer,
  12894. msm_routing_put_port_mixer),
  12895. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12896. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12897. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12898. msm_routing_get_port_mixer,
  12899. msm_routing_put_port_mixer),
  12900. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12901. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12902. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12903. msm_routing_get_port_mixer,
  12904. msm_routing_put_port_mixer),
  12905. #endif
  12906. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12908. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12909. msm_routing_get_port_mixer,
  12910. msm_routing_put_port_mixer),
  12911. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12913. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12914. msm_routing_get_port_mixer,
  12915. msm_routing_put_port_mixer),
  12916. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12918. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12919. msm_routing_get_port_mixer,
  12920. msm_routing_put_port_mixer),
  12921. #ifndef CONFIG_MI2S_DISABLE
  12922. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12924. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12925. msm_routing_get_port_mixer,
  12926. msm_routing_put_port_mixer),
  12927. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12929. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12930. msm_routing_get_port_mixer,
  12931. msm_routing_put_port_mixer),
  12932. #endif
  12933. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12935. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  12936. msm_routing_get_port_mixer,
  12937. msm_routing_put_port_mixer),
  12938. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12939. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12940. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  12941. msm_routing_get_port_mixer,
  12942. msm_routing_put_port_mixer),
  12943. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12945. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  12946. msm_routing_get_port_mixer,
  12947. msm_routing_put_port_mixer),
  12948. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12949. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12950. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  12951. msm_routing_get_port_mixer,
  12952. msm_routing_put_port_mixer),
  12953. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12955. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12956. msm_routing_get_port_mixer,
  12957. msm_routing_put_port_mixer),
  12958. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12960. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12961. msm_routing_get_port_mixer,
  12962. msm_routing_put_port_mixer),
  12963. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12965. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12966. msm_routing_get_port_mixer,
  12967. msm_routing_put_port_mixer),
  12968. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12969. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12970. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12971. msm_routing_get_port_mixer,
  12972. msm_routing_put_port_mixer),
  12973. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12975. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12976. msm_routing_get_port_mixer,
  12977. msm_routing_put_port_mixer),
  12978. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12980. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12981. msm_routing_get_port_mixer,
  12982. msm_routing_put_port_mixer),
  12983. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12985. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12986. msm_routing_get_port_mixer,
  12987. msm_routing_put_port_mixer),
  12988. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12990. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12991. msm_routing_get_port_mixer,
  12992. msm_routing_put_port_mixer),
  12993. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  12995. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  12996. msm_routing_get_port_mixer,
  12997. msm_routing_put_port_mixer),
  12998. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13000. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  13001. msm_routing_get_port_mixer,
  13002. msm_routing_put_port_mixer),
  13003. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13005. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  13006. msm_routing_get_port_mixer,
  13007. msm_routing_put_port_mixer),
  13008. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13010. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  13011. msm_routing_get_port_mixer,
  13012. msm_routing_put_port_mixer),
  13013. };
  13014. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  13015. #ifndef CONFIG_MI2S_DISABLE
  13016. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13017. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13018. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13019. msm_routing_get_port_mixer,
  13020. msm_routing_put_port_mixer),
  13021. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13023. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13024. msm_routing_get_port_mixer,
  13025. msm_routing_put_port_mixer),
  13026. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13028. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13029. msm_routing_get_port_mixer,
  13030. msm_routing_put_port_mixer),
  13031. #endif
  13032. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13033. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13034. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13035. msm_routing_get_port_mixer,
  13036. msm_routing_put_port_mixer),
  13037. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13039. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13040. msm_routing_get_port_mixer,
  13041. msm_routing_put_port_mixer),
  13042. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13044. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13045. msm_routing_get_port_mixer,
  13046. msm_routing_put_port_mixer),
  13047. #ifndef CONFIG_AUXPCM_DISABLE
  13048. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13050. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13051. msm_routing_get_port_mixer,
  13052. msm_routing_put_port_mixer),
  13053. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13055. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13056. msm_routing_get_port_mixer,
  13057. msm_routing_put_port_mixer),
  13058. #endif
  13059. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13061. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13062. msm_routing_get_port_mixer,
  13063. msm_routing_put_port_mixer),
  13064. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13066. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13067. msm_routing_get_port_mixer,
  13068. msm_routing_put_port_mixer),
  13069. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13071. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13072. msm_routing_get_port_mixer,
  13073. msm_routing_put_port_mixer),
  13074. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13076. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13077. msm_routing_get_port_mixer,
  13078. msm_routing_put_port_mixer),
  13079. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13081. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13082. msm_routing_get_port_mixer,
  13083. msm_routing_put_port_mixer),
  13084. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13085. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13086. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13087. msm_routing_get_port_mixer,
  13088. msm_routing_put_port_mixer),
  13089. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13091. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13092. msm_routing_get_port_mixer,
  13093. msm_routing_put_port_mixer),
  13094. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13096. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13097. msm_routing_get_port_mixer,
  13098. msm_routing_put_port_mixer),
  13099. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13101. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13102. msm_routing_get_port_mixer,
  13103. msm_routing_put_port_mixer),
  13104. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13106. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13107. msm_routing_get_port_mixer,
  13108. msm_routing_put_port_mixer),
  13109. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13111. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13112. msm_routing_get_port_mixer,
  13113. msm_routing_put_port_mixer),
  13114. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13116. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13117. msm_routing_get_port_mixer,
  13118. msm_routing_put_port_mixer),
  13119. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13121. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  13122. msm_routing_get_port_mixer,
  13123. msm_routing_put_port_mixer),
  13124. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13126. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  13127. msm_routing_get_port_mixer,
  13128. msm_routing_put_port_mixer),
  13129. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13131. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  13132. msm_routing_get_port_mixer,
  13133. msm_routing_put_port_mixer),
  13134. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13135. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13136. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  13137. msm_routing_get_port_mixer,
  13138. msm_routing_put_port_mixer),
  13139. };
  13140. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  13141. #ifndef CONFIG_MI2S_DISABLE
  13142. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13143. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13144. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13145. msm_routing_get_port_mixer,
  13146. msm_routing_put_port_mixer),
  13147. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13149. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13150. msm_routing_get_port_mixer,
  13151. msm_routing_put_port_mixer),
  13152. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13154. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13155. msm_routing_get_port_mixer,
  13156. msm_routing_put_port_mixer),
  13157. #endif
  13158. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13159. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13160. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13161. msm_routing_get_port_mixer,
  13162. msm_routing_put_port_mixer),
  13163. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13165. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13166. msm_routing_get_port_mixer,
  13167. msm_routing_put_port_mixer),
  13168. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13170. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13171. msm_routing_get_port_mixer,
  13172. msm_routing_put_port_mixer),
  13173. #ifndef CONFIG_AUXPCM_DISABLE
  13174. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13175. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13176. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13177. msm_routing_get_port_mixer,
  13178. msm_routing_put_port_mixer),
  13179. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13181. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13182. msm_routing_get_port_mixer,
  13183. msm_routing_put_port_mixer),
  13184. #endif
  13185. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13187. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13188. msm_routing_get_port_mixer,
  13189. msm_routing_put_port_mixer),
  13190. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13191. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13192. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13193. msm_routing_get_port_mixer,
  13194. msm_routing_put_port_mixer),
  13195. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13197. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13198. msm_routing_get_port_mixer,
  13199. msm_routing_put_port_mixer),
  13200. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13202. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13203. msm_routing_get_port_mixer,
  13204. msm_routing_put_port_mixer),
  13205. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13207. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13208. msm_routing_get_port_mixer,
  13209. msm_routing_put_port_mixer),
  13210. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13211. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13212. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13213. msm_routing_get_port_mixer,
  13214. msm_routing_put_port_mixer),
  13215. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13217. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13218. msm_routing_get_port_mixer,
  13219. msm_routing_put_port_mixer),
  13220. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13222. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13223. msm_routing_get_port_mixer,
  13224. msm_routing_put_port_mixer),
  13225. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13227. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13228. msm_routing_get_port_mixer,
  13229. msm_routing_put_port_mixer),
  13230. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13231. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13232. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13233. msm_routing_get_port_mixer,
  13234. msm_routing_put_port_mixer),
  13235. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13237. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13238. msm_routing_get_port_mixer,
  13239. msm_routing_put_port_mixer),
  13240. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13242. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13243. msm_routing_get_port_mixer,
  13244. msm_routing_put_port_mixer),
  13245. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13247. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  13248. msm_routing_get_port_mixer,
  13249. msm_routing_put_port_mixer),
  13250. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13251. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13252. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  13253. msm_routing_get_port_mixer,
  13254. msm_routing_put_port_mixer),
  13255. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13257. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  13258. msm_routing_get_port_mixer,
  13259. msm_routing_put_port_mixer),
  13260. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13262. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  13263. msm_routing_get_port_mixer,
  13264. msm_routing_put_port_mixer),
  13265. };
  13266. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  13267. #ifndef CONFIG_MI2S_DISABLE
  13268. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13270. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13271. msm_routing_get_port_mixer,
  13272. msm_routing_put_port_mixer),
  13273. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13275. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13276. msm_routing_get_port_mixer,
  13277. msm_routing_put_port_mixer),
  13278. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13279. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13280. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13281. msm_routing_get_port_mixer,
  13282. msm_routing_put_port_mixer),
  13283. #endif
  13284. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13286. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13287. msm_routing_get_port_mixer,
  13288. msm_routing_put_port_mixer),
  13289. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13291. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13292. msm_routing_get_port_mixer,
  13293. msm_routing_put_port_mixer),
  13294. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13295. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13296. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13297. msm_routing_get_port_mixer,
  13298. msm_routing_put_port_mixer),
  13299. #ifndef CONFIG_AUXPCM_DISABLE
  13300. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13302. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13303. msm_routing_get_port_mixer,
  13304. msm_routing_put_port_mixer),
  13305. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13307. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13308. msm_routing_get_port_mixer,
  13309. msm_routing_put_port_mixer),
  13310. #endif
  13311. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13313. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13314. msm_routing_get_port_mixer,
  13315. msm_routing_put_port_mixer),
  13316. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13318. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13319. msm_routing_get_port_mixer,
  13320. msm_routing_put_port_mixer),
  13321. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13323. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13324. msm_routing_get_port_mixer,
  13325. msm_routing_put_port_mixer),
  13326. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13327. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13328. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13329. msm_routing_get_port_mixer,
  13330. msm_routing_put_port_mixer),
  13331. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13333. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13334. msm_routing_get_port_mixer,
  13335. msm_routing_put_port_mixer),
  13336. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13337. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13338. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13339. msm_routing_get_port_mixer,
  13340. msm_routing_put_port_mixer),
  13341. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13343. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13344. msm_routing_get_port_mixer,
  13345. msm_routing_put_port_mixer),
  13346. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13347. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13348. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13349. msm_routing_get_port_mixer,
  13350. msm_routing_put_port_mixer),
  13351. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13353. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13354. msm_routing_get_port_mixer,
  13355. msm_routing_put_port_mixer),
  13356. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13358. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13359. msm_routing_get_port_mixer,
  13360. msm_routing_put_port_mixer),
  13361. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13363. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13364. msm_routing_get_port_mixer,
  13365. msm_routing_put_port_mixer),
  13366. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13367. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13368. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13369. msm_routing_get_port_mixer,
  13370. msm_routing_put_port_mixer),
  13371. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13373. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  13374. msm_routing_get_port_mixer,
  13375. msm_routing_put_port_mixer),
  13376. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13377. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13378. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  13379. msm_routing_get_port_mixer,
  13380. msm_routing_put_port_mixer),
  13381. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13383. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  13384. msm_routing_get_port_mixer,
  13385. msm_routing_put_port_mixer),
  13386. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13388. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  13389. msm_routing_get_port_mixer,
  13390. msm_routing_put_port_mixer),
  13391. };
  13392. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  13393. #ifndef CONFIG_MI2S_DISABLE
  13394. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13395. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13396. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13397. msm_routing_get_port_mixer,
  13398. msm_routing_put_port_mixer),
  13399. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13401. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13402. msm_routing_get_port_mixer,
  13403. msm_routing_put_port_mixer),
  13404. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13406. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13407. msm_routing_get_port_mixer,
  13408. msm_routing_put_port_mixer),
  13409. #endif
  13410. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13412. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13413. msm_routing_get_port_mixer,
  13414. msm_routing_put_port_mixer),
  13415. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13417. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13418. msm_routing_get_port_mixer,
  13419. msm_routing_put_port_mixer),
  13420. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13422. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13423. msm_routing_get_port_mixer,
  13424. msm_routing_put_port_mixer),
  13425. #ifndef CONFIG_AUXPCM_DISABLE
  13426. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13428. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13429. msm_routing_get_port_mixer,
  13430. msm_routing_put_port_mixer),
  13431. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13433. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13434. msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. #endif
  13437. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13439. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13440. msm_routing_get_port_mixer,
  13441. msm_routing_put_port_mixer),
  13442. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13444. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13445. msm_routing_get_port_mixer,
  13446. msm_routing_put_port_mixer),
  13447. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13449. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13450. msm_routing_get_port_mixer,
  13451. msm_routing_put_port_mixer),
  13452. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13454. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13455. msm_routing_get_port_mixer,
  13456. msm_routing_put_port_mixer),
  13457. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13459. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13460. msm_routing_get_port_mixer,
  13461. msm_routing_put_port_mixer),
  13462. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13464. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13465. msm_routing_get_port_mixer,
  13466. msm_routing_put_port_mixer),
  13467. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13469. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13470. msm_routing_get_port_mixer,
  13471. msm_routing_put_port_mixer),
  13472. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13474. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13475. msm_routing_get_port_mixer,
  13476. msm_routing_put_port_mixer),
  13477. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13479. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13480. msm_routing_get_port_mixer,
  13481. msm_routing_put_port_mixer),
  13482. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13484. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13485. msm_routing_get_port_mixer,
  13486. msm_routing_put_port_mixer),
  13487. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13489. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13490. msm_routing_get_port_mixer,
  13491. msm_routing_put_port_mixer),
  13492. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13494. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13495. msm_routing_get_port_mixer,
  13496. msm_routing_put_port_mixer),
  13497. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13499. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  13500. msm_routing_get_port_mixer,
  13501. msm_routing_put_port_mixer),
  13502. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13504. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  13505. msm_routing_get_port_mixer,
  13506. msm_routing_put_port_mixer),
  13507. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13509. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  13510. msm_routing_get_port_mixer,
  13511. msm_routing_put_port_mixer),
  13512. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13514. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  13515. msm_routing_get_port_mixer,
  13516. msm_routing_put_port_mixer),
  13517. };
  13518. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  13519. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  13521. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  13522. msm_routing_get_port_mixer,
  13523. msm_routing_put_port_mixer),
  13524. };
  13525. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  13526. #ifndef CONFIG_MI2S_DISABLE
  13527. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13529. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13530. msm_routing_get_port_mixer,
  13531. msm_routing_put_port_mixer),
  13532. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13533. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13534. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13535. msm_routing_get_port_mixer,
  13536. msm_routing_put_port_mixer),
  13537. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13539. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13540. msm_routing_get_port_mixer,
  13541. msm_routing_put_port_mixer),
  13542. #endif
  13543. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13545. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13546. msm_routing_get_port_mixer,
  13547. msm_routing_put_port_mixer),
  13548. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13549. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13550. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13551. msm_routing_get_port_mixer,
  13552. msm_routing_put_port_mixer),
  13553. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13555. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13556. msm_routing_get_port_mixer,
  13557. msm_routing_put_port_mixer),
  13558. #ifndef CONFIG_AUXPCM_DISABLE
  13559. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13561. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13562. msm_routing_get_port_mixer,
  13563. msm_routing_put_port_mixer),
  13564. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13566. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13567. msm_routing_get_port_mixer,
  13568. msm_routing_put_port_mixer),
  13569. #endif
  13570. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13571. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13572. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13573. msm_routing_get_port_mixer,
  13574. msm_routing_put_port_mixer),
  13575. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13577. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13578. msm_routing_get_port_mixer,
  13579. msm_routing_put_port_mixer),
  13580. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13582. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13583. msm_routing_get_port_mixer,
  13584. msm_routing_put_port_mixer),
  13585. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13587. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13588. msm_routing_get_port_mixer,
  13589. msm_routing_put_port_mixer),
  13590. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13592. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13593. msm_routing_get_port_mixer,
  13594. msm_routing_put_port_mixer),
  13595. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13597. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13598. msm_routing_get_port_mixer,
  13599. msm_routing_put_port_mixer),
  13600. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13601. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13602. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13603. msm_routing_get_port_mixer,
  13604. msm_routing_put_port_mixer),
  13605. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13607. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13608. msm_routing_get_port_mixer,
  13609. msm_routing_put_port_mixer),
  13610. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13611. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13612. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13613. msm_routing_get_port_mixer,
  13614. msm_routing_put_port_mixer),
  13615. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13617. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13618. msm_routing_get_port_mixer,
  13619. msm_routing_put_port_mixer),
  13620. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13622. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13623. msm_routing_get_port_mixer,
  13624. msm_routing_put_port_mixer),
  13625. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13627. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13628. msm_routing_get_port_mixer,
  13629. msm_routing_put_port_mixer),
  13630. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13631. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13632. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  13633. msm_routing_get_port_mixer,
  13634. msm_routing_put_port_mixer),
  13635. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13637. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  13638. msm_routing_get_port_mixer,
  13639. msm_routing_put_port_mixer),
  13640. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13642. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  13643. msm_routing_get_port_mixer,
  13644. msm_routing_put_port_mixer),
  13645. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13647. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  13648. msm_routing_get_port_mixer,
  13649. msm_routing_put_port_mixer),
  13650. };
  13651. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  13652. #ifndef CONFIG_MI2S_DISABLE
  13653. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13655. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13656. msm_routing_get_port_mixer,
  13657. msm_routing_put_port_mixer),
  13658. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13660. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13661. msm_routing_get_port_mixer,
  13662. msm_routing_put_port_mixer),
  13663. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13665. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13666. msm_routing_get_port_mixer,
  13667. msm_routing_put_port_mixer),
  13668. #endif
  13669. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13671. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13672. msm_routing_get_port_mixer,
  13673. msm_routing_put_port_mixer),
  13674. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13676. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13677. msm_routing_get_port_mixer,
  13678. msm_routing_put_port_mixer),
  13679. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13681. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13682. msm_routing_get_port_mixer,
  13683. msm_routing_put_port_mixer),
  13684. #ifndef CONFIG_AUXPCM_DISABLE
  13685. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13687. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13688. msm_routing_get_port_mixer,
  13689. msm_routing_put_port_mixer),
  13690. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13692. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13693. msm_routing_get_port_mixer,
  13694. msm_routing_put_port_mixer),
  13695. #endif
  13696. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13698. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13699. msm_routing_get_port_mixer,
  13700. msm_routing_put_port_mixer),
  13701. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13703. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13704. msm_routing_get_port_mixer,
  13705. msm_routing_put_port_mixer),
  13706. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13708. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13709. msm_routing_get_port_mixer,
  13710. msm_routing_put_port_mixer),
  13711. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13713. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13714. msm_routing_get_port_mixer,
  13715. msm_routing_put_port_mixer),
  13716. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13718. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13719. msm_routing_get_port_mixer,
  13720. msm_routing_put_port_mixer),
  13721. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13722. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13723. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13724. msm_routing_get_port_mixer,
  13725. msm_routing_put_port_mixer),
  13726. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13727. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13728. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13729. msm_routing_get_port_mixer,
  13730. msm_routing_put_port_mixer),
  13731. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13733. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13734. msm_routing_get_port_mixer,
  13735. msm_routing_put_port_mixer),
  13736. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13737. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13738. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13739. msm_routing_get_port_mixer,
  13740. msm_routing_put_port_mixer),
  13741. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13743. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13744. msm_routing_get_port_mixer,
  13745. msm_routing_put_port_mixer),
  13746. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13748. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13749. msm_routing_get_port_mixer,
  13750. msm_routing_put_port_mixer),
  13751. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13753. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13754. msm_routing_get_port_mixer,
  13755. msm_routing_put_port_mixer),
  13756. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13758. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  13759. msm_routing_get_port_mixer,
  13760. msm_routing_put_port_mixer),
  13761. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13763. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  13764. msm_routing_get_port_mixer,
  13765. msm_routing_put_port_mixer),
  13766. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13768. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  13769. msm_routing_get_port_mixer,
  13770. msm_routing_put_port_mixer),
  13771. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13773. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  13774. msm_routing_get_port_mixer,
  13775. msm_routing_put_port_mixer),
  13776. };
  13777. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  13778. #ifndef CONFIG_MI2S_DISABLE
  13779. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13781. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13782. msm_routing_get_port_mixer,
  13783. msm_routing_put_port_mixer),
  13784. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13785. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13786. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13787. msm_routing_get_port_mixer,
  13788. msm_routing_put_port_mixer),
  13789. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13791. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13792. msm_routing_get_port_mixer,
  13793. msm_routing_put_port_mixer),
  13794. #endif
  13795. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13797. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13798. msm_routing_get_port_mixer,
  13799. msm_routing_put_port_mixer),
  13800. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13802. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13803. msm_routing_get_port_mixer,
  13804. msm_routing_put_port_mixer),
  13805. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13807. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13808. msm_routing_get_port_mixer,
  13809. msm_routing_put_port_mixer),
  13810. #ifndef CONFIG_AUXPCM_DISABLE
  13811. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13813. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13814. msm_routing_get_port_mixer,
  13815. msm_routing_put_port_mixer),
  13816. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13818. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13819. msm_routing_get_port_mixer,
  13820. msm_routing_put_port_mixer),
  13821. #endif
  13822. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13823. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13824. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13825. msm_routing_get_port_mixer,
  13826. msm_routing_put_port_mixer),
  13827. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13829. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13830. msm_routing_get_port_mixer,
  13831. msm_routing_put_port_mixer),
  13832. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13834. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13835. msm_routing_get_port_mixer,
  13836. msm_routing_put_port_mixer),
  13837. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13838. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13839. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13840. msm_routing_get_port_mixer,
  13841. msm_routing_put_port_mixer),
  13842. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13844. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13845. msm_routing_get_port_mixer,
  13846. msm_routing_put_port_mixer),
  13847. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13849. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13850. msm_routing_get_port_mixer,
  13851. msm_routing_put_port_mixer),
  13852. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13853. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13854. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13855. msm_routing_get_port_mixer,
  13856. msm_routing_put_port_mixer),
  13857. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13859. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13860. msm_routing_get_port_mixer,
  13861. msm_routing_put_port_mixer),
  13862. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13864. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13865. msm_routing_get_port_mixer,
  13866. msm_routing_put_port_mixer),
  13867. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13869. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13870. msm_routing_get_port_mixer,
  13871. msm_routing_put_port_mixer),
  13872. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13873. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13874. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13875. msm_routing_get_port_mixer,
  13876. msm_routing_put_port_mixer),
  13877. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13879. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13880. msm_routing_get_port_mixer,
  13881. msm_routing_put_port_mixer),
  13882. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13883. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13884. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  13885. msm_routing_get_port_mixer,
  13886. msm_routing_put_port_mixer),
  13887. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13889. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  13890. msm_routing_get_port_mixer,
  13891. msm_routing_put_port_mixer),
  13892. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13894. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  13895. msm_routing_get_port_mixer,
  13896. msm_routing_put_port_mixer),
  13897. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  13899. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  13900. msm_routing_get_port_mixer,
  13901. msm_routing_put_port_mixer),
  13902. };
  13903. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  13904. #ifndef CONFIG_MI2S_DISABLE
  13905. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13907. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13908. msm_routing_get_port_mixer,
  13909. msm_routing_put_port_mixer),
  13910. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13912. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13913. msm_routing_get_port_mixer,
  13914. msm_routing_put_port_mixer),
  13915. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13917. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13918. msm_routing_get_port_mixer,
  13919. msm_routing_put_port_mixer),
  13920. #endif
  13921. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13923. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13924. msm_routing_get_port_mixer,
  13925. msm_routing_put_port_mixer),
  13926. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13928. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13929. msm_routing_get_port_mixer,
  13930. msm_routing_put_port_mixer),
  13931. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13933. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13934. msm_routing_get_port_mixer,
  13935. msm_routing_put_port_mixer),
  13936. #ifndef CONFIG_AUXPCM_DISABLE
  13937. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13939. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13940. msm_routing_get_port_mixer,
  13941. msm_routing_put_port_mixer),
  13942. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13944. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13945. msm_routing_get_port_mixer,
  13946. msm_routing_put_port_mixer),
  13947. #endif
  13948. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13949. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13950. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13951. msm_routing_get_port_mixer,
  13952. msm_routing_put_port_mixer),
  13953. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13955. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13956. msm_routing_get_port_mixer,
  13957. msm_routing_put_port_mixer),
  13958. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13960. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13961. msm_routing_get_port_mixer,
  13962. msm_routing_put_port_mixer),
  13963. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13964. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13965. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13966. msm_routing_get_port_mixer,
  13967. msm_routing_put_port_mixer),
  13968. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13970. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13971. msm_routing_get_port_mixer,
  13972. msm_routing_put_port_mixer),
  13973. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13975. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13976. msm_routing_get_port_mixer,
  13977. msm_routing_put_port_mixer),
  13978. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13979. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13980. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13981. msm_routing_get_port_mixer,
  13982. msm_routing_put_port_mixer),
  13983. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13985. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13986. msm_routing_get_port_mixer,
  13987. msm_routing_put_port_mixer),
  13988. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13989. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13990. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13991. msm_routing_get_port_mixer,
  13992. msm_routing_put_port_mixer),
  13993. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  13995. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13996. msm_routing_get_port_mixer,
  13997. msm_routing_put_port_mixer),
  13998. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14000. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14001. msm_routing_get_port_mixer,
  14002. msm_routing_put_port_mixer),
  14003. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14005. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14006. msm_routing_get_port_mixer,
  14007. msm_routing_put_port_mixer),
  14008. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14009. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14010. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  14011. msm_routing_get_port_mixer,
  14012. msm_routing_put_port_mixer),
  14013. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14015. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  14016. msm_routing_get_port_mixer,
  14017. msm_routing_put_port_mixer),
  14018. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14020. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  14021. msm_routing_get_port_mixer,
  14022. msm_routing_put_port_mixer),
  14023. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14025. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  14026. msm_routing_get_port_mixer,
  14027. msm_routing_put_port_mixer),
  14028. };
  14029. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14030. #ifndef CONFIG_MI2S_DISABLE
  14031. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14032. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14033. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14034. msm_routing_get_port_mixer,
  14035. msm_routing_put_port_mixer),
  14036. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14037. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14038. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14039. msm_routing_get_port_mixer,
  14040. msm_routing_put_port_mixer),
  14041. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14043. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14044. msm_routing_get_port_mixer,
  14045. msm_routing_put_port_mixer),
  14046. #endif
  14047. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14049. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14050. msm_routing_get_port_mixer,
  14051. msm_routing_put_port_mixer),
  14052. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14053. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14054. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14055. msm_routing_get_port_mixer,
  14056. msm_routing_put_port_mixer),
  14057. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14059. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14060. msm_routing_get_port_mixer,
  14061. msm_routing_put_port_mixer),
  14062. #ifndef CONFIG_MI2S_DISABLE
  14063. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14065. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14066. msm_routing_get_port_mixer,
  14067. msm_routing_put_port_mixer),
  14068. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14070. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14071. msm_routing_get_port_mixer,
  14072. msm_routing_put_port_mixer),
  14073. #endif
  14074. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14076. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14077. msm_routing_get_port_mixer,
  14078. msm_routing_put_port_mixer),
  14079. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14081. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14082. msm_routing_get_port_mixer,
  14083. msm_routing_put_port_mixer),
  14084. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14086. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14087. msm_routing_get_port_mixer,
  14088. msm_routing_put_port_mixer),
  14089. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14091. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14092. msm_routing_get_port_mixer,
  14093. msm_routing_put_port_mixer),
  14094. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14096. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14097. msm_routing_get_port_mixer,
  14098. msm_routing_put_port_mixer),
  14099. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14101. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14102. msm_routing_get_port_mixer,
  14103. msm_routing_put_port_mixer),
  14104. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14105. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14106. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14107. msm_routing_get_port_mixer,
  14108. msm_routing_put_port_mixer),
  14109. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14111. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14112. msm_routing_get_port_mixer,
  14113. msm_routing_put_port_mixer),
  14114. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14116. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14117. msm_routing_get_port_mixer,
  14118. msm_routing_put_port_mixer),
  14119. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14121. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14122. msm_routing_get_port_mixer,
  14123. msm_routing_put_port_mixer),
  14124. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14125. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14126. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14127. msm_routing_get_port_mixer,
  14128. msm_routing_put_port_mixer),
  14129. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14131. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14132. msm_routing_get_port_mixer,
  14133. msm_routing_put_port_mixer),
  14134. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14136. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  14137. msm_routing_get_port_mixer,
  14138. msm_routing_put_port_mixer),
  14139. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14141. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  14142. msm_routing_get_port_mixer,
  14143. msm_routing_put_port_mixer),
  14144. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14145. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14146. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  14147. msm_routing_get_port_mixer,
  14148. msm_routing_put_port_mixer),
  14149. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14151. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  14152. msm_routing_get_port_mixer,
  14153. msm_routing_put_port_mixer),
  14154. };
  14155. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14156. #ifndef CONFIG_MI2S_DISABLE
  14157. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14159. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14160. msm_routing_get_port_mixer,
  14161. msm_routing_put_port_mixer),
  14162. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14164. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14165. msm_routing_get_port_mixer,
  14166. msm_routing_put_port_mixer),
  14167. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14169. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14170. msm_routing_get_port_mixer,
  14171. msm_routing_put_port_mixer),
  14172. #endif
  14173. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14175. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14176. msm_routing_get_port_mixer,
  14177. msm_routing_put_port_mixer),
  14178. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14180. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14181. msm_routing_get_port_mixer,
  14182. msm_routing_put_port_mixer),
  14183. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14185. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14186. msm_routing_get_port_mixer,
  14187. msm_routing_put_port_mixer),
  14188. #ifndef CONFIG_AUXPCM_DISABLE
  14189. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14191. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14192. msm_routing_get_port_mixer,
  14193. msm_routing_put_port_mixer),
  14194. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14195. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14196. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14197. msm_routing_get_port_mixer,
  14198. msm_routing_put_port_mixer),
  14199. #endif
  14200. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14201. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14202. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14203. msm_routing_get_port_mixer,
  14204. msm_routing_put_port_mixer),
  14205. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14207. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14208. msm_routing_get_port_mixer,
  14209. msm_routing_put_port_mixer),
  14210. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14211. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14212. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14213. msm_routing_get_port_mixer,
  14214. msm_routing_put_port_mixer),
  14215. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14217. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14218. msm_routing_get_port_mixer,
  14219. msm_routing_put_port_mixer),
  14220. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14222. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14223. msm_routing_get_port_mixer,
  14224. msm_routing_put_port_mixer),
  14225. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14227. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14228. msm_routing_get_port_mixer,
  14229. msm_routing_put_port_mixer),
  14230. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14232. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14233. msm_routing_get_port_mixer,
  14234. msm_routing_put_port_mixer),
  14235. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14237. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14238. msm_routing_get_port_mixer,
  14239. msm_routing_put_port_mixer),
  14240. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14241. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14242. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14243. msm_routing_get_port_mixer,
  14244. msm_routing_put_port_mixer),
  14245. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14247. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14248. msm_routing_get_port_mixer,
  14249. msm_routing_put_port_mixer),
  14250. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14251. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14252. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14253. msm_routing_get_port_mixer,
  14254. msm_routing_put_port_mixer),
  14255. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14256. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14257. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14258. msm_routing_get_port_mixer,
  14259. msm_routing_put_port_mixer),
  14260. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14261. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14262. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  14263. msm_routing_get_port_mixer,
  14264. msm_routing_put_port_mixer),
  14265. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14267. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  14268. msm_routing_get_port_mixer,
  14269. msm_routing_put_port_mixer),
  14270. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14271. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14272. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  14273. msm_routing_get_port_mixer,
  14274. msm_routing_put_port_mixer),
  14275. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14277. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  14278. msm_routing_get_port_mixer,
  14279. msm_routing_put_port_mixer),
  14280. };
  14281. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  14282. #ifndef CONFIG_MI2S_DISABLE
  14283. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14285. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14286. msm_routing_get_port_mixer,
  14287. msm_routing_put_port_mixer),
  14288. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14290. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14291. msm_routing_get_port_mixer,
  14292. msm_routing_put_port_mixer),
  14293. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14295. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14296. msm_routing_get_port_mixer,
  14297. msm_routing_put_port_mixer),
  14298. #endif
  14299. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14301. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14302. msm_routing_get_port_mixer,
  14303. msm_routing_put_port_mixer),
  14304. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14306. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14307. msm_routing_get_port_mixer,
  14308. msm_routing_put_port_mixer),
  14309. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14311. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14312. msm_routing_get_port_mixer,
  14313. msm_routing_put_port_mixer),
  14314. #ifndef CONFIG_AUXPCM_DISABLE
  14315. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14317. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14318. msm_routing_get_port_mixer,
  14319. msm_routing_put_port_mixer),
  14320. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14322. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14323. msm_routing_get_port_mixer,
  14324. msm_routing_put_port_mixer),
  14325. #endif
  14326. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14327. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14328. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14329. msm_routing_get_port_mixer,
  14330. msm_routing_put_port_mixer),
  14331. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14333. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14334. msm_routing_get_port_mixer,
  14335. msm_routing_put_port_mixer),
  14336. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14338. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14339. msm_routing_get_port_mixer,
  14340. msm_routing_put_port_mixer),
  14341. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14343. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14344. msm_routing_get_port_mixer,
  14345. msm_routing_put_port_mixer),
  14346. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14348. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14349. msm_routing_get_port_mixer,
  14350. msm_routing_put_port_mixer),
  14351. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14353. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14354. msm_routing_get_port_mixer,
  14355. msm_routing_put_port_mixer),
  14356. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14357. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14358. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14359. msm_routing_get_port_mixer,
  14360. msm_routing_put_port_mixer),
  14361. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14363. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14364. msm_routing_get_port_mixer,
  14365. msm_routing_put_port_mixer),
  14366. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14367. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14368. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14369. msm_routing_get_port_mixer,
  14370. msm_routing_put_port_mixer),
  14371. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14373. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14374. msm_routing_get_port_mixer,
  14375. msm_routing_put_port_mixer),
  14376. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14377. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14378. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14379. msm_routing_get_port_mixer,
  14380. msm_routing_put_port_mixer),
  14381. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14383. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14384. msm_routing_get_port_mixer,
  14385. msm_routing_put_port_mixer),
  14386. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14387. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14388. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  14389. msm_routing_get_port_mixer,
  14390. msm_routing_put_port_mixer),
  14391. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14393. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  14394. msm_routing_get_port_mixer,
  14395. msm_routing_put_port_mixer),
  14396. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14397. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14398. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  14399. msm_routing_get_port_mixer,
  14400. msm_routing_put_port_mixer),
  14401. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14403. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  14404. msm_routing_get_port_mixer,
  14405. msm_routing_put_port_mixer),
  14406. };
  14407. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  14408. #ifndef CONFIG_MI2S_DISABLE
  14409. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14411. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14412. msm_routing_get_port_mixer,
  14413. msm_routing_put_port_mixer),
  14414. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14415. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14416. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14417. msm_routing_get_port_mixer,
  14418. msm_routing_put_port_mixer),
  14419. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14421. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14422. msm_routing_get_port_mixer,
  14423. msm_routing_put_port_mixer),
  14424. #endif
  14425. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14427. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14428. msm_routing_get_port_mixer,
  14429. msm_routing_put_port_mixer),
  14430. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14431. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14432. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14433. msm_routing_get_port_mixer,
  14434. msm_routing_put_port_mixer),
  14435. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14437. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14438. msm_routing_get_port_mixer,
  14439. msm_routing_put_port_mixer),
  14440. #ifndef CONFIG_AUXPCM_DISABLE
  14441. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14443. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14444. msm_routing_get_port_mixer,
  14445. msm_routing_put_port_mixer),
  14446. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14447. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14448. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14449. msm_routing_get_port_mixer,
  14450. msm_routing_put_port_mixer),
  14451. #endif
  14452. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14454. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14455. msm_routing_get_port_mixer,
  14456. msm_routing_put_port_mixer),
  14457. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14459. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14460. msm_routing_get_port_mixer,
  14461. msm_routing_put_port_mixer),
  14462. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14464. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14465. msm_routing_get_port_mixer,
  14466. msm_routing_put_port_mixer),
  14467. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14468. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14469. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14470. msm_routing_get_port_mixer,
  14471. msm_routing_put_port_mixer),
  14472. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14474. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14475. msm_routing_get_port_mixer,
  14476. msm_routing_put_port_mixer),
  14477. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14479. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14480. msm_routing_get_port_mixer,
  14481. msm_routing_put_port_mixer),
  14482. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14484. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14485. msm_routing_get_port_mixer,
  14486. msm_routing_put_port_mixer),
  14487. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14489. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14490. msm_routing_get_port_mixer,
  14491. msm_routing_put_port_mixer),
  14492. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14493. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14494. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14495. msm_routing_get_port_mixer,
  14496. msm_routing_put_port_mixer),
  14497. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14499. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14500. msm_routing_get_port_mixer,
  14501. msm_routing_put_port_mixer),
  14502. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14504. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14505. msm_routing_get_port_mixer,
  14506. msm_routing_put_port_mixer),
  14507. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14509. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14510. msm_routing_get_port_mixer,
  14511. msm_routing_put_port_mixer),
  14512. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14513. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14514. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  14515. msm_routing_get_port_mixer,
  14516. msm_routing_put_port_mixer),
  14517. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14519. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  14520. msm_routing_get_port_mixer,
  14521. msm_routing_put_port_mixer),
  14522. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14523. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14524. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  14525. msm_routing_get_port_mixer,
  14526. msm_routing_put_port_mixer),
  14527. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14529. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  14530. msm_routing_get_port_mixer,
  14531. msm_routing_put_port_mixer),
  14532. };
  14533. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  14534. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  14536. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  14537. msm_routing_get_port_mixer,
  14538. msm_routing_put_port_mixer),
  14539. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  14541. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  14542. msm_routing_get_port_mixer,
  14543. msm_routing_put_port_mixer),
  14544. };
  14545. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  14546. #ifndef CONFIG_MI2S_DISABLE
  14547. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14549. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14550. msm_routing_get_port_mixer,
  14551. msm_routing_put_port_mixer),
  14552. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14553. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14554. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14555. msm_routing_get_port_mixer,
  14556. msm_routing_put_port_mixer),
  14557. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14559. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14560. msm_routing_get_port_mixer,
  14561. msm_routing_put_port_mixer),
  14562. #endif
  14563. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14565. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14566. msm_routing_get_port_mixer,
  14567. msm_routing_put_port_mixer),
  14568. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14570. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14571. msm_routing_get_port_mixer,
  14572. msm_routing_put_port_mixer),
  14573. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14575. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14576. msm_routing_get_port_mixer,
  14577. msm_routing_put_port_mixer),
  14578. #ifndef CONFIG_AUXPCM_DISABLE
  14579. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14581. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14582. msm_routing_get_port_mixer,
  14583. msm_routing_put_port_mixer),
  14584. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14586. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14587. msm_routing_get_port_mixer,
  14588. msm_routing_put_port_mixer),
  14589. #endif
  14590. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14591. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14592. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14593. msm_routing_get_port_mixer,
  14594. msm_routing_put_port_mixer),
  14595. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14597. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14598. msm_routing_get_port_mixer,
  14599. msm_routing_put_port_mixer),
  14600. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14601. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14602. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14603. msm_routing_get_port_mixer,
  14604. msm_routing_put_port_mixer),
  14605. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14607. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14608. msm_routing_get_port_mixer,
  14609. msm_routing_put_port_mixer),
  14610. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14611. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14612. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14613. msm_routing_get_port_mixer,
  14614. msm_routing_put_port_mixer),
  14615. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14617. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14618. msm_routing_get_port_mixer,
  14619. msm_routing_put_port_mixer),
  14620. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14621. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14622. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14623. msm_routing_get_port_mixer,
  14624. msm_routing_put_port_mixer),
  14625. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14627. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14628. msm_routing_get_port_mixer,
  14629. msm_routing_put_port_mixer),
  14630. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14631. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14632. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14633. msm_routing_get_port_mixer,
  14634. msm_routing_put_port_mixer),
  14635. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14637. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14638. msm_routing_get_port_mixer,
  14639. msm_routing_put_port_mixer),
  14640. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14641. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14642. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14643. msm_routing_get_port_mixer,
  14644. msm_routing_put_port_mixer),
  14645. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14647. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14648. msm_routing_get_port_mixer,
  14649. msm_routing_put_port_mixer),
  14650. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14651. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14652. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  14653. msm_routing_get_port_mixer,
  14654. msm_routing_put_port_mixer),
  14655. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14657. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  14658. msm_routing_get_port_mixer,
  14659. msm_routing_put_port_mixer),
  14660. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14662. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  14663. msm_routing_get_port_mixer,
  14664. msm_routing_put_port_mixer),
  14665. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14667. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  14668. msm_routing_get_port_mixer,
  14669. msm_routing_put_port_mixer),
  14670. };
  14671. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  14672. #ifndef CONFIG_MI2S_DISABLE
  14673. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14675. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14676. msm_routing_get_port_mixer,
  14677. msm_routing_put_port_mixer),
  14678. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14680. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14681. msm_routing_get_port_mixer,
  14682. msm_routing_put_port_mixer),
  14683. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14685. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14686. msm_routing_get_port_mixer,
  14687. msm_routing_put_port_mixer),
  14688. #endif
  14689. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14691. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14692. msm_routing_get_port_mixer,
  14693. msm_routing_put_port_mixer),
  14694. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14695. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14696. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14697. msm_routing_get_port_mixer,
  14698. msm_routing_put_port_mixer),
  14699. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14701. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14702. msm_routing_get_port_mixer,
  14703. msm_routing_put_port_mixer),
  14704. #ifndef CONFIG_AUXPCM_DISABLE
  14705. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14707. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14708. msm_routing_get_port_mixer,
  14709. msm_routing_put_port_mixer),
  14710. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14711. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14712. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14713. msm_routing_get_port_mixer,
  14714. msm_routing_put_port_mixer),
  14715. #endif
  14716. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14717. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14718. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14719. msm_routing_get_port_mixer,
  14720. msm_routing_put_port_mixer),
  14721. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14723. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14724. msm_routing_get_port_mixer,
  14725. msm_routing_put_port_mixer),
  14726. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14727. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14728. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14729. msm_routing_get_port_mixer,
  14730. msm_routing_put_port_mixer),
  14731. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14733. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14734. msm_routing_get_port_mixer,
  14735. msm_routing_put_port_mixer),
  14736. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14737. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14738. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14739. msm_routing_get_port_mixer,
  14740. msm_routing_put_port_mixer),
  14741. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14743. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14744. msm_routing_get_port_mixer,
  14745. msm_routing_put_port_mixer),
  14746. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14748. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14749. msm_routing_get_port_mixer,
  14750. msm_routing_put_port_mixer),
  14751. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14753. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14754. msm_routing_get_port_mixer,
  14755. msm_routing_put_port_mixer),
  14756. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14758. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14759. msm_routing_get_port_mixer,
  14760. msm_routing_put_port_mixer),
  14761. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14763. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14764. msm_routing_get_port_mixer,
  14765. msm_routing_put_port_mixer),
  14766. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14767. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14768. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14769. msm_routing_get_port_mixer,
  14770. msm_routing_put_port_mixer),
  14771. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14773. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14774. msm_routing_get_port_mixer,
  14775. msm_routing_put_port_mixer),
  14776. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14778. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  14779. msm_routing_get_port_mixer,
  14780. msm_routing_put_port_mixer),
  14781. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14783. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  14784. msm_routing_get_port_mixer,
  14785. msm_routing_put_port_mixer),
  14786. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14787. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14788. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  14789. msm_routing_get_port_mixer,
  14790. msm_routing_put_port_mixer),
  14791. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14793. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  14794. msm_routing_get_port_mixer,
  14795. msm_routing_put_port_mixer),
  14796. };
  14797. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  14798. #ifndef CONFIG_MI2S_DISABLE
  14799. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14801. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14802. msm_routing_get_port_mixer,
  14803. msm_routing_put_port_mixer),
  14804. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14806. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14807. msm_routing_get_port_mixer,
  14808. msm_routing_put_port_mixer),
  14809. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14811. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14812. msm_routing_get_port_mixer,
  14813. msm_routing_put_port_mixer),
  14814. #endif
  14815. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14817. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14818. msm_routing_get_port_mixer,
  14819. msm_routing_put_port_mixer),
  14820. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14821. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14822. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14823. msm_routing_get_port_mixer,
  14824. msm_routing_put_port_mixer),
  14825. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14827. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14828. msm_routing_get_port_mixer,
  14829. msm_routing_put_port_mixer),
  14830. #ifndef CONFIG_AUXPCM_DISABLE
  14831. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14833. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14834. msm_routing_get_port_mixer,
  14835. msm_routing_put_port_mixer),
  14836. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14837. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14838. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14839. msm_routing_get_port_mixer,
  14840. msm_routing_put_port_mixer),
  14841. #endif
  14842. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14844. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14845. msm_routing_get_port_mixer,
  14846. msm_routing_put_port_mixer),
  14847. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14849. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14850. msm_routing_get_port_mixer,
  14851. msm_routing_put_port_mixer),
  14852. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14854. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14855. msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14859. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14860. msm_routing_get_port_mixer,
  14861. msm_routing_put_port_mixer),
  14862. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14864. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14865. msm_routing_get_port_mixer,
  14866. msm_routing_put_port_mixer),
  14867. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14869. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14870. msm_routing_get_port_mixer,
  14871. msm_routing_put_port_mixer),
  14872. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14874. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14875. msm_routing_get_port_mixer,
  14876. msm_routing_put_port_mixer),
  14877. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14879. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14880. msm_routing_get_port_mixer,
  14881. msm_routing_put_port_mixer),
  14882. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14884. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14885. msm_routing_get_port_mixer,
  14886. msm_routing_put_port_mixer),
  14887. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14889. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14890. msm_routing_get_port_mixer,
  14891. msm_routing_put_port_mixer),
  14892. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14894. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14895. msm_routing_get_port_mixer,
  14896. msm_routing_put_port_mixer),
  14897. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14899. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14900. msm_routing_get_port_mixer,
  14901. msm_routing_put_port_mixer),
  14902. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14904. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  14905. msm_routing_get_port_mixer,
  14906. msm_routing_put_port_mixer),
  14907. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14909. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  14910. msm_routing_get_port_mixer,
  14911. msm_routing_put_port_mixer),
  14912. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14914. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  14915. msm_routing_get_port_mixer,
  14916. msm_routing_put_port_mixer),
  14917. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14919. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  14920. msm_routing_get_port_mixer,
  14921. msm_routing_put_port_mixer),
  14922. };
  14923. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  14924. #ifndef CONFIG_MI2S_DISABLE
  14925. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14927. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14928. msm_routing_get_port_mixer,
  14929. msm_routing_put_port_mixer),
  14930. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14931. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14932. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14933. msm_routing_get_port_mixer,
  14934. msm_routing_put_port_mixer),
  14935. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14937. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14938. msm_routing_get_port_mixer,
  14939. msm_routing_put_port_mixer),
  14940. #endif
  14941. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14942. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14943. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14944. msm_routing_get_port_mixer,
  14945. msm_routing_put_port_mixer),
  14946. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14947. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14948. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14949. msm_routing_get_port_mixer,
  14950. msm_routing_put_port_mixer),
  14951. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14953. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14954. msm_routing_get_port_mixer,
  14955. msm_routing_put_port_mixer),
  14956. #ifndef CONFIG_AUXPCM_DISABLE
  14957. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14959. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14960. msm_routing_get_port_mixer,
  14961. msm_routing_put_port_mixer),
  14962. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14963. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14964. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14965. msm_routing_get_port_mixer,
  14966. msm_routing_put_port_mixer),
  14967. #endif
  14968. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14969. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14970. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14971. msm_routing_get_port_mixer,
  14972. msm_routing_put_port_mixer),
  14973. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14975. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14976. msm_routing_get_port_mixer,
  14977. msm_routing_put_port_mixer),
  14978. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14979. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14980. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14981. msm_routing_get_port_mixer,
  14982. msm_routing_put_port_mixer),
  14983. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14985. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14986. msm_routing_get_port_mixer,
  14987. msm_routing_put_port_mixer),
  14988. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14989. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14990. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14991. msm_routing_get_port_mixer,
  14992. msm_routing_put_port_mixer),
  14993. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14994. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14995. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14996. msm_routing_get_port_mixer,
  14997. msm_routing_put_port_mixer),
  14998. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15000. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15001. msm_routing_get_port_mixer,
  15002. msm_routing_put_port_mixer),
  15003. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15005. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15006. msm_routing_get_port_mixer,
  15007. msm_routing_put_port_mixer),
  15008. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15009. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15010. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15011. msm_routing_get_port_mixer,
  15012. msm_routing_put_port_mixer),
  15013. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15015. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15016. msm_routing_get_port_mixer,
  15017. msm_routing_put_port_mixer),
  15018. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15020. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15021. msm_routing_get_port_mixer,
  15022. msm_routing_put_port_mixer),
  15023. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15025. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15026. msm_routing_get_port_mixer,
  15027. msm_routing_put_port_mixer),
  15028. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15029. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15030. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15031. msm_routing_get_port_mixer,
  15032. msm_routing_put_port_mixer),
  15033. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15035. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15036. msm_routing_get_port_mixer,
  15037. msm_routing_put_port_mixer),
  15038. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15040. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15041. msm_routing_get_port_mixer,
  15042. msm_routing_put_port_mixer),
  15043. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15045. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15046. msm_routing_get_port_mixer,
  15047. msm_routing_put_port_mixer),
  15048. };
  15049. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  15050. #ifndef CONFIG_MI2S_DISABLE
  15051. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15053. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15054. msm_routing_get_port_mixer,
  15055. msm_routing_put_port_mixer),
  15056. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15058. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15059. msm_routing_get_port_mixer,
  15060. msm_routing_put_port_mixer),
  15061. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15063. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15064. msm_routing_get_port_mixer,
  15065. msm_routing_put_port_mixer),
  15066. #endif
  15067. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15069. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15070. msm_routing_get_port_mixer,
  15071. msm_routing_put_port_mixer),
  15072. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15073. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15074. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15075. msm_routing_get_port_mixer,
  15076. msm_routing_put_port_mixer),
  15077. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15079. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15080. msm_routing_get_port_mixer,
  15081. msm_routing_put_port_mixer),
  15082. #ifndef CONFIG_AUXPCM_DISABLE
  15083. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15085. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15086. msm_routing_get_port_mixer,
  15087. msm_routing_put_port_mixer),
  15088. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15089. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15090. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15091. msm_routing_get_port_mixer,
  15092. msm_routing_put_port_mixer),
  15093. #endif
  15094. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15095. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15096. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15097. msm_routing_get_port_mixer,
  15098. msm_routing_put_port_mixer),
  15099. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15101. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15102. msm_routing_get_port_mixer,
  15103. msm_routing_put_port_mixer),
  15104. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15106. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15107. msm_routing_get_port_mixer,
  15108. msm_routing_put_port_mixer),
  15109. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15111. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15112. msm_routing_get_port_mixer,
  15113. msm_routing_put_port_mixer),
  15114. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15115. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15116. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15117. msm_routing_get_port_mixer,
  15118. msm_routing_put_port_mixer),
  15119. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15121. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15122. msm_routing_get_port_mixer,
  15123. msm_routing_put_port_mixer),
  15124. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15126. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15127. msm_routing_get_port_mixer,
  15128. msm_routing_put_port_mixer),
  15129. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15131. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15132. msm_routing_get_port_mixer,
  15133. msm_routing_put_port_mixer),
  15134. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15135. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15136. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15137. msm_routing_get_port_mixer,
  15138. msm_routing_put_port_mixer),
  15139. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15141. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15142. msm_routing_get_port_mixer,
  15143. msm_routing_put_port_mixer),
  15144. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15145. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15146. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15147. msm_routing_get_port_mixer,
  15148. msm_routing_put_port_mixer),
  15149. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15151. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15152. msm_routing_get_port_mixer,
  15153. msm_routing_put_port_mixer),
  15154. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15156. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15157. msm_routing_get_port_mixer,
  15158. msm_routing_put_port_mixer),
  15159. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15161. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15162. msm_routing_get_port_mixer,
  15163. msm_routing_put_port_mixer),
  15164. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15165. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15166. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15167. msm_routing_get_port_mixer,
  15168. msm_routing_put_port_mixer),
  15169. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15170. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  15171. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15172. msm_routing_get_port_mixer,
  15173. msm_routing_put_port_mixer),
  15174. };
  15175. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  15176. #ifndef CONFIG_MI2S_DISABLE
  15177. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15179. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15180. msm_routing_get_port_mixer,
  15181. msm_routing_put_port_mixer),
  15182. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15184. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15185. msm_routing_get_port_mixer,
  15186. msm_routing_put_port_mixer),
  15187. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15189. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15190. msm_routing_get_port_mixer,
  15191. msm_routing_put_port_mixer),
  15192. #endif
  15193. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15195. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15196. msm_routing_get_port_mixer,
  15197. msm_routing_put_port_mixer),
  15198. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15200. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15201. msm_routing_get_port_mixer,
  15202. msm_routing_put_port_mixer),
  15203. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15205. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15206. msm_routing_get_port_mixer,
  15207. msm_routing_put_port_mixer),
  15208. #ifndef CONFIG_AUXPCM_DISABLE
  15209. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15210. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15211. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15212. msm_routing_get_port_mixer,
  15213. msm_routing_put_port_mixer),
  15214. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15215. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15216. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15217. msm_routing_get_port_mixer,
  15218. msm_routing_put_port_mixer),
  15219. #endif
  15220. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15222. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15223. msm_routing_get_port_mixer,
  15224. msm_routing_put_port_mixer),
  15225. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15227. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15228. msm_routing_get_port_mixer,
  15229. msm_routing_put_port_mixer),
  15230. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15232. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15233. msm_routing_get_port_mixer,
  15234. msm_routing_put_port_mixer),
  15235. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15237. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15238. msm_routing_get_port_mixer,
  15239. msm_routing_put_port_mixer),
  15240. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15242. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15243. msm_routing_get_port_mixer,
  15244. msm_routing_put_port_mixer),
  15245. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15247. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15248. msm_routing_get_port_mixer,
  15249. msm_routing_put_port_mixer),
  15250. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15251. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15252. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15253. msm_routing_get_port_mixer,
  15254. msm_routing_put_port_mixer),
  15255. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15257. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15258. msm_routing_get_port_mixer,
  15259. msm_routing_put_port_mixer),
  15260. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15262. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15263. msm_routing_get_port_mixer,
  15264. msm_routing_put_port_mixer),
  15265. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15267. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15268. msm_routing_get_port_mixer,
  15269. msm_routing_put_port_mixer),
  15270. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15272. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15273. msm_routing_get_port_mixer,
  15274. msm_routing_put_port_mixer),
  15275. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15277. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15278. msm_routing_get_port_mixer,
  15279. msm_routing_put_port_mixer),
  15280. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15282. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15283. msm_routing_get_port_mixer,
  15284. msm_routing_put_port_mixer),
  15285. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15287. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15288. msm_routing_get_port_mixer,
  15289. msm_routing_put_port_mixer),
  15290. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15292. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15293. msm_routing_get_port_mixer,
  15294. msm_routing_put_port_mixer),
  15295. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  15297. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15298. msm_routing_get_port_mixer,
  15299. msm_routing_put_port_mixer),
  15300. };
  15301. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  15302. #ifndef CONFIG_MI2S_DISABLE
  15303. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15305. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15306. msm_routing_get_port_mixer,
  15307. msm_routing_put_port_mixer),
  15308. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15309. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15310. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15311. msm_routing_get_port_mixer,
  15312. msm_routing_put_port_mixer),
  15313. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15315. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15316. msm_routing_get_port_mixer,
  15317. msm_routing_put_port_mixer),
  15318. #endif
  15319. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15321. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15322. msm_routing_get_port_mixer,
  15323. msm_routing_put_port_mixer),
  15324. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15325. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15326. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15327. msm_routing_get_port_mixer,
  15328. msm_routing_put_port_mixer),
  15329. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15331. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15332. msm_routing_get_port_mixer,
  15333. msm_routing_put_port_mixer),
  15334. #ifndef CONFIG_AUXPCM_DISABLE
  15335. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15337. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15338. msm_routing_get_port_mixer,
  15339. msm_routing_put_port_mixer),
  15340. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15342. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15343. msm_routing_get_port_mixer,
  15344. msm_routing_put_port_mixer),
  15345. #endif
  15346. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15348. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15349. msm_routing_get_port_mixer,
  15350. msm_routing_put_port_mixer),
  15351. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15353. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15354. msm_routing_get_port_mixer,
  15355. msm_routing_put_port_mixer),
  15356. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15357. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15358. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15359. msm_routing_get_port_mixer,
  15360. msm_routing_put_port_mixer),
  15361. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15362. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15363. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15364. msm_routing_get_port_mixer,
  15365. msm_routing_put_port_mixer),
  15366. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15368. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15369. msm_routing_get_port_mixer,
  15370. msm_routing_put_port_mixer),
  15371. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15373. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15374. msm_routing_get_port_mixer,
  15375. msm_routing_put_port_mixer),
  15376. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15378. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15379. msm_routing_get_port_mixer,
  15380. msm_routing_put_port_mixer),
  15381. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15383. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15384. msm_routing_get_port_mixer,
  15385. msm_routing_put_port_mixer),
  15386. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15388. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15389. msm_routing_get_port_mixer,
  15390. msm_routing_put_port_mixer),
  15391. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15392. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15393. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15394. msm_routing_get_port_mixer,
  15395. msm_routing_put_port_mixer),
  15396. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15397. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15398. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15399. msm_routing_get_port_mixer,
  15400. msm_routing_put_port_mixer),
  15401. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15402. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15403. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15404. msm_routing_get_port_mixer,
  15405. msm_routing_put_port_mixer),
  15406. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15408. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15409. msm_routing_get_port_mixer,
  15410. msm_routing_put_port_mixer),
  15411. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15412. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15413. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15414. msm_routing_get_port_mixer,
  15415. msm_routing_put_port_mixer),
  15416. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15417. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15418. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15419. msm_routing_get_port_mixer,
  15420. msm_routing_put_port_mixer),
  15421. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15422. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  15423. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15424. msm_routing_get_port_mixer,
  15425. msm_routing_put_port_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  15428. #ifndef CONFIG_MI2S_DISABLE
  15429. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15431. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15432. msm_routing_get_port_mixer,
  15433. msm_routing_put_port_mixer),
  15434. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15435. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15436. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15437. msm_routing_get_port_mixer,
  15438. msm_routing_put_port_mixer),
  15439. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15441. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15442. msm_routing_get_port_mixer,
  15443. msm_routing_put_port_mixer),
  15444. #endif
  15445. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15447. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15448. msm_routing_get_port_mixer,
  15449. msm_routing_put_port_mixer),
  15450. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15451. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15452. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15453. msm_routing_get_port_mixer,
  15454. msm_routing_put_port_mixer),
  15455. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15457. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15458. msm_routing_get_port_mixer,
  15459. msm_routing_put_port_mixer),
  15460. #ifndef CONFIG_AUXPCM_DISABLE
  15461. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15462. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15463. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15464. msm_routing_get_port_mixer,
  15465. msm_routing_put_port_mixer),
  15466. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15467. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15468. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15469. msm_routing_get_port_mixer,
  15470. msm_routing_put_port_mixer),
  15471. #endif
  15472. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15474. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15475. msm_routing_get_port_mixer,
  15476. msm_routing_put_port_mixer),
  15477. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15478. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15479. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15480. msm_routing_get_port_mixer,
  15481. msm_routing_put_port_mixer),
  15482. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15484. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15485. msm_routing_get_port_mixer,
  15486. msm_routing_put_port_mixer),
  15487. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15488. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15489. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15490. msm_routing_get_port_mixer,
  15491. msm_routing_put_port_mixer),
  15492. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15494. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15495. msm_routing_get_port_mixer,
  15496. msm_routing_put_port_mixer),
  15497. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15498. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15499. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15500. msm_routing_get_port_mixer,
  15501. msm_routing_put_port_mixer),
  15502. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15504. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15505. msm_routing_get_port_mixer,
  15506. msm_routing_put_port_mixer),
  15507. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15509. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15510. msm_routing_get_port_mixer,
  15511. msm_routing_put_port_mixer),
  15512. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15513. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15514. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15515. msm_routing_get_port_mixer,
  15516. msm_routing_put_port_mixer),
  15517. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15518. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15519. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15520. msm_routing_get_port_mixer,
  15521. msm_routing_put_port_mixer),
  15522. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15524. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15525. msm_routing_get_port_mixer,
  15526. msm_routing_put_port_mixer),
  15527. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15528. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15529. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15530. msm_routing_get_port_mixer,
  15531. msm_routing_put_port_mixer),
  15532. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15534. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15535. msm_routing_get_port_mixer,
  15536. msm_routing_put_port_mixer),
  15537. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15539. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15540. msm_routing_get_port_mixer,
  15541. msm_routing_put_port_mixer),
  15542. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15543. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15544. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15545. msm_routing_get_port_mixer,
  15546. msm_routing_put_port_mixer),
  15547. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  15549. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15550. msm_routing_get_port_mixer,
  15551. msm_routing_put_port_mixer),
  15552. };
  15553. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  15554. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  15556. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  15557. msm_routing_get_port_mixer,
  15558. msm_routing_put_port_mixer),
  15559. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  15561. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  15562. msm_routing_get_port_mixer,
  15563. msm_routing_put_port_mixer),
  15564. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  15565. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  15566. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  15567. msm_routing_get_port_mixer,
  15568. msm_routing_put_port_mixer),
  15569. };
  15570. #endif
  15571. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  15572. #ifndef CONFIG_MI2S_DISABLE
  15573. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_PRI_I2S_TX,
  15575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15576. msm_routing_put_audio_mixer),
  15577. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_MI2S_TX,
  15579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15580. msm_routing_put_audio_mixer),
  15581. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15584. msm_routing_put_audio_mixer),
  15585. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15586. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15587. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15588. msm_routing_put_audio_mixer),
  15589. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15590. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15591. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15592. msm_routing_put_audio_mixer),
  15593. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  15594. MSM_BACKEND_DAI_INT2_MI2S_TX,
  15595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15596. msm_routing_put_audio_mixer),
  15597. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15598. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15599. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15600. msm_routing_put_audio_mixer),
  15601. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15602. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15603. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15604. msm_routing_put_audio_mixer),
  15605. #endif
  15606. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15608. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15609. msm_routing_put_audio_mixer),
  15610. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15612. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15613. msm_routing_put_audio_mixer),
  15614. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_AUXPCM_TX,
  15616. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15617. msm_routing_put_audio_mixer),
  15618. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15619. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15621. msm_routing_put_audio_mixer),
  15622. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15624. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15625. msm_routing_put_audio_mixer),
  15626. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15628. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15629. msm_routing_put_audio_mixer),
  15630. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15631. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15632. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15633. msm_routing_put_audio_mixer),
  15634. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15636. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15637. msm_routing_put_audio_mixer),
  15638. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15641. msm_routing_put_audio_mixer),
  15642. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_INT_FM_TX,
  15644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15645. msm_routing_put_audio_mixer),
  15646. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_AFE_PCM_TX,
  15648. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15649. msm_routing_put_audio_mixer),
  15650. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15652. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15653. msm_routing_put_audio_mixer),
  15654. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15656. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15657. msm_routing_put_audio_mixer),
  15658. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15660. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15661. msm_routing_put_audio_mixer),
  15662. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15664. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15665. msm_routing_put_audio_mixer),
  15666. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15668. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15669. msm_routing_put_audio_mixer),
  15670. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15672. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15673. msm_routing_put_audio_mixer),
  15674. #ifndef CONFIG_TDM_DISABLE
  15675. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15677. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15678. msm_routing_put_audio_mixer),
  15679. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15681. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15682. msm_routing_put_audio_mixer),
  15683. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15685. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15686. msm_routing_put_audio_mixer),
  15687. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15688. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15689. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15690. msm_routing_put_audio_mixer),
  15691. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15692. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15694. msm_routing_put_audio_mixer),
  15695. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15697. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15698. msm_routing_put_audio_mixer),
  15699. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15702. msm_routing_put_audio_mixer),
  15703. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15706. msm_routing_put_audio_mixer),
  15707. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15710. msm_routing_put_audio_mixer),
  15711. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15713. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15714. msm_routing_put_audio_mixer),
  15715. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15718. msm_routing_put_audio_mixer),
  15719. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15720. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15722. msm_routing_put_audio_mixer),
  15723. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15726. msm_routing_put_audio_mixer),
  15727. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15730. msm_routing_put_audio_mixer),
  15731. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15733. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15734. msm_routing_put_audio_mixer),
  15735. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15737. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15738. msm_routing_put_audio_mixer),
  15739. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15741. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15742. msm_routing_put_audio_mixer),
  15743. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15745. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15746. msm_routing_put_audio_mixer),
  15747. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15749. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15750. msm_routing_put_audio_mixer),
  15751. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15753. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15754. msm_routing_put_audio_mixer),
  15755. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  15757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15758. msm_routing_put_audio_mixer),
  15759. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  15761. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15762. msm_routing_put_audio_mixer),
  15763. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  15765. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15766. msm_routing_put_audio_mixer),
  15767. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  15769. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15770. msm_routing_put_audio_mixer),
  15771. #endif
  15772. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15774. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15775. msm_routing_put_audio_mixer),
  15776. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15778. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15779. msm_routing_put_audio_mixer),
  15780. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_USB_TX,
  15782. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15783. msm_routing_put_audio_mixer),
  15784. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15786. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15787. msm_routing_put_audio_mixer),
  15788. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15790. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15791. msm_routing_put_audio_mixer),
  15792. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15794. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15795. msm_routing_put_audio_mixer),
  15796. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15798. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15799. msm_routing_put_audio_mixer),
  15800. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15801. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15802. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15803. msm_routing_put_audio_mixer),
  15804. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15805. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15806. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15807. msm_routing_put_audio_mixer),
  15808. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15809. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15810. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15811. msm_routing_put_audio_mixer),
  15812. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15813. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15814. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15815. msm_routing_put_audio_mixer),
  15816. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15817. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15818. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15819. msm_routing_put_audio_mixer),
  15820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15822. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15823. msm_routing_put_audio_mixer),
  15824. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15826. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15827. msm_routing_put_audio_mixer),
  15828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15830. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15831. msm_routing_put_audio_mixer),
  15832. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15834. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15835. msm_routing_put_audio_mixer),
  15836. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15838. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15839. msm_routing_put_audio_mixer),
  15840. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15842. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15843. msm_routing_put_audio_mixer),
  15844. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15846. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  15847. msm_routing_put_audio_mixer),
  15848. };
  15849. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  15850. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_INT_FM_TX,
  15852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15853. msm_routing_put_audio_mixer),
  15854. #ifndef CONFIG_TDM_DISABLE
  15855. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15856. MSM_BACKEND_DAI_MI2S_TX,
  15857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15858. msm_routing_put_audio_mixer),
  15859. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15861. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15862. msm_routing_put_audio_mixer),
  15863. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15865. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15866. msm_routing_put_audio_mixer),
  15867. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15868. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15870. msm_routing_put_audio_mixer),
  15871. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  15872. MSM_BACKEND_DAI_INT2_MI2S_TX,
  15873. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15874. msm_routing_put_audio_mixer),
  15875. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15876. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15877. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15878. msm_routing_put_audio_mixer),
  15879. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15880. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15881. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15882. msm_routing_put_audio_mixer),
  15883. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15884. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15886. msm_routing_put_audio_mixer),
  15887. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15888. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15890. msm_routing_put_audio_mixer),
  15891. #endif
  15892. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15893. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15894. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15895. msm_routing_put_audio_mixer),
  15896. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15898. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15899. msm_routing_put_audio_mixer),
  15900. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15901. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15903. msm_routing_put_audio_mixer),
  15904. #ifndef CONFIG_TDM_DISABLE
  15905. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15906. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15907. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15908. msm_routing_put_audio_mixer),
  15909. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15910. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15911. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15912. msm_routing_put_audio_mixer),
  15913. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15914. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15915. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15916. msm_routing_put_audio_mixer),
  15917. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15918. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15920. msm_routing_put_audio_mixer),
  15921. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15922. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15923. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15924. msm_routing_put_audio_mixer),
  15925. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15928. msm_routing_put_audio_mixer),
  15929. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15931. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15932. msm_routing_put_audio_mixer),
  15933. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15935. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15936. msm_routing_put_audio_mixer),
  15937. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15938. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15940. msm_routing_put_audio_mixer),
  15941. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15942. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15944. msm_routing_put_audio_mixer),
  15945. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15946. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15947. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15948. msm_routing_put_audio_mixer),
  15949. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15950. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15951. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15952. msm_routing_put_audio_mixer),
  15953. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15954. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15956. msm_routing_put_audio_mixer),
  15957. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15960. msm_routing_put_audio_mixer),
  15961. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15963. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15964. msm_routing_put_audio_mixer),
  15965. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15968. msm_routing_put_audio_mixer),
  15969. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15970. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15972. msm_routing_put_audio_mixer),
  15973. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15975. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15976. msm_routing_put_audio_mixer),
  15977. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15980. msm_routing_put_audio_mixer),
  15981. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15982. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15984. msm_routing_put_audio_mixer),
  15985. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15986. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  15987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15988. msm_routing_put_audio_mixer),
  15989. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15990. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  15991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15992. msm_routing_put_audio_mixer),
  15993. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15994. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  15995. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  15996. msm_routing_put_audio_mixer),
  15997. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15998. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  15999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16000. msm_routing_put_audio_mixer),
  16001. #endif
  16002. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16004. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16005. msm_routing_put_audio_mixer),
  16006. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_USB_TX,
  16008. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16009. msm_routing_put_audio_mixer),
  16010. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  16012. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16013. msm_routing_put_audio_mixer),
  16014. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  16016. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16017. msm_routing_put_audio_mixer),
  16018. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  16020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16021. msm_routing_put_audio_mixer),
  16022. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16025. msm_routing_put_audio_mixer),
  16026. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16027. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16028. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16029. msm_routing_put_audio_mixer),
  16030. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16032. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16033. msm_routing_put_audio_mixer),
  16034. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16035. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  16036. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16037. msm_routing_put_audio_mixer),
  16038. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16039. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  16040. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16041. msm_routing_put_audio_mixer),
  16042. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  16044. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16045. msm_routing_put_audio_mixer),
  16046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16048. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16049. msm_routing_put_audio_mixer),
  16050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  16052. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16053. msm_routing_put_audio_mixer),
  16054. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16055. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  16056. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16057. msm_routing_put_audio_mixer),
  16058. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  16060. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16061. msm_routing_put_audio_mixer),
  16062. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  16064. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16065. msm_routing_put_audio_mixer),
  16066. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  16068. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16069. msm_routing_put_audio_mixer),
  16070. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  16072. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16073. msm_routing_put_audio_mixer),
  16074. #ifndef CONFIG_AUXPCM_DISABLE
  16075. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  16076. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16077. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  16078. msm_routing_put_audio_mixer),
  16079. #endif
  16080. };
  16081. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  16082. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16084. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16085. msm_routing_put_audio_mixer),
  16086. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16087. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16088. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16089. msm_routing_put_audio_mixer),
  16090. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_INT_FM_TX,
  16092. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16093. msm_routing_put_audio_mixer),
  16094. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_AFE_PCM_TX,
  16096. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16097. msm_routing_put_audio_mixer),
  16098. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16099. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16100. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16101. msm_routing_put_audio_mixer),
  16102. #ifndef CONFIG_AUXPCM_DISABLE
  16103. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_AUXPCM_TX,
  16105. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16106. msm_routing_put_audio_mixer),
  16107. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  16108. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16110. msm_routing_put_audio_mixer),
  16111. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  16112. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16113. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16114. msm_routing_put_audio_mixer),
  16115. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16117. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16118. msm_routing_put_audio_mixer),
  16119. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16121. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16122. msm_routing_put_audio_mixer),
  16123. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  16124. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16126. msm_routing_put_audio_mixer),
  16127. #endif
  16128. #ifndef CONFIG_MI2S_DISABLE
  16129. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16130. MSM_BACKEND_DAI_MI2S_TX,
  16131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16132. msm_routing_put_audio_mixer),
  16133. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16134. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16136. msm_routing_put_audio_mixer),
  16137. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16138. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16139. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16140. msm_routing_put_audio_mixer),
  16141. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  16142. MSM_BACKEND_DAI_INT2_MI2S_TX,
  16143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16144. msm_routing_put_audio_mixer),
  16145. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16146. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16148. msm_routing_put_audio_mixer),
  16149. #endif
  16150. #ifndef CONFIG_TDM_DISABLE
  16151. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16152. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  16153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16154. msm_routing_put_audio_mixer),
  16155. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16156. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  16157. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16158. msm_routing_put_audio_mixer),
  16159. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16160. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  16161. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16162. msm_routing_put_audio_mixer),
  16163. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16164. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16165. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16166. msm_routing_put_audio_mixer),
  16167. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  16169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16170. msm_routing_put_audio_mixer),
  16171. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  16173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16174. msm_routing_put_audio_mixer),
  16175. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16176. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  16177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16178. msm_routing_put_audio_mixer),
  16179. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16180. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  16181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16182. msm_routing_put_audio_mixer),
  16183. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  16185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16186. msm_routing_put_audio_mixer),
  16187. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  16189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16190. msm_routing_put_audio_mixer),
  16191. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16192. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  16193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16194. msm_routing_put_audio_mixer),
  16195. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16196. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  16197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16198. msm_routing_put_audio_mixer),
  16199. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16200. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  16201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16202. msm_routing_put_audio_mixer),
  16203. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16204. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  16205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16206. msm_routing_put_audio_mixer),
  16207. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16208. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  16209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16210. msm_routing_put_audio_mixer),
  16211. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16212. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  16213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16214. msm_routing_put_audio_mixer),
  16215. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16216. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16217. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16218. msm_routing_put_audio_mixer),
  16219. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16220. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  16221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16222. msm_routing_put_audio_mixer),
  16223. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16224. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  16225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16226. msm_routing_put_audio_mixer),
  16227. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  16229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16230. msm_routing_put_audio_mixer),
  16231. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  16233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16234. msm_routing_put_audio_mixer),
  16235. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16236. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  16237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16238. msm_routing_put_audio_mixer),
  16239. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16240. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  16241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16242. msm_routing_put_audio_mixer),
  16243. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16244. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  16245. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16246. msm_routing_put_audio_mixer),
  16247. #endif
  16248. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  16250. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16251. msm_routing_put_audio_mixer),
  16252. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  16254. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16255. msm_routing_put_audio_mixer),
  16256. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  16258. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16259. msm_routing_put_audio_mixer),
  16260. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16262. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16263. msm_routing_put_audio_mixer),
  16264. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16266. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16267. msm_routing_put_audio_mixer),
  16268. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16270. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16271. msm_routing_put_audio_mixer),
  16272. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  16274. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16275. msm_routing_put_audio_mixer),
  16276. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  16278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16279. msm_routing_put_audio_mixer),
  16280. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  16282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16283. msm_routing_put_audio_mixer),
  16284. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16286. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16287. msm_routing_put_audio_mixer),
  16288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  16290. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16291. msm_routing_put_audio_mixer),
  16292. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  16294. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16295. msm_routing_put_audio_mixer),
  16296. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  16298. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16299. msm_routing_put_audio_mixer),
  16300. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  16302. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16303. msm_routing_put_audio_mixer),
  16304. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  16306. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  16307. msm_routing_put_audio_mixer),
  16308. };
  16309. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  16310. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16312. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16313. msm_routing_put_audio_mixer),
  16314. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16316. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16317. msm_routing_put_audio_mixer),
  16318. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16319. MSM_BACKEND_DAI_INT_FM_TX,
  16320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16321. msm_routing_put_audio_mixer),
  16322. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16324. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16325. msm_routing_put_audio_mixer),
  16326. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_AFE_PCM_TX,
  16328. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16329. msm_routing_put_audio_mixer),
  16330. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  16331. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  16332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16333. msm_routing_put_audio_mixer),
  16334. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  16335. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  16336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16337. msm_routing_put_audio_mixer),
  16338. #ifndef CONFIG_TDM_DISABLE
  16339. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16340. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  16341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16342. msm_routing_put_audio_mixer),
  16343. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  16345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16346. msm_routing_put_audio_mixer),
  16347. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16348. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  16349. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16350. msm_routing_put_audio_mixer),
  16351. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16352. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  16353. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16354. msm_routing_put_audio_mixer),
  16355. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16356. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16357. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16358. msm_routing_put_audio_mixer),
  16359. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16360. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  16361. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16362. msm_routing_put_audio_mixer),
  16363. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16364. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  16365. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16366. msm_routing_put_audio_mixer),
  16367. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16368. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  16369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16370. msm_routing_put_audio_mixer),
  16371. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16372. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  16373. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16374. msm_routing_put_audio_mixer),
  16375. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16376. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  16377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16378. msm_routing_put_audio_mixer),
  16379. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16380. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  16381. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16382. msm_routing_put_audio_mixer),
  16383. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16384. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  16385. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16386. msm_routing_put_audio_mixer),
  16387. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16388. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  16389. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16390. msm_routing_put_audio_mixer),
  16391. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16392. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  16393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16394. msm_routing_put_audio_mixer),
  16395. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16396. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  16397. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16398. msm_routing_put_audio_mixer),
  16399. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16400. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  16401. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16402. msm_routing_put_audio_mixer),
  16403. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16406. msm_routing_put_audio_mixer),
  16407. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  16409. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16410. msm_routing_put_audio_mixer),
  16411. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  16413. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16414. msm_routing_put_audio_mixer),
  16415. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  16417. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16418. msm_routing_put_audio_mixer),
  16419. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16420. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  16421. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16422. msm_routing_put_audio_mixer),
  16423. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  16425. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16426. msm_routing_put_audio_mixer),
  16427. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  16429. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16430. msm_routing_put_audio_mixer),
  16431. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  16433. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16434. msm_routing_put_audio_mixer),
  16435. #endif
  16436. #ifndef CONFIG_MI2S_DISABLE
  16437. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16438. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16440. msm_routing_put_audio_mixer),
  16441. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16442. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16444. msm_routing_put_audio_mixer),
  16445. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16446. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16448. msm_routing_put_audio_mixer),
  16449. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  16450. MSM_BACKEND_DAI_INT2_MI2S_TX,
  16451. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16452. msm_routing_put_audio_mixer),
  16453. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16454. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16455. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16456. msm_routing_put_audio_mixer),
  16457. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16460. msm_routing_put_audio_mixer),
  16461. #endif
  16462. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16463. MSM_BACKEND_DAI_USB_TX,
  16464. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16465. msm_routing_put_audio_mixer),
  16466. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16467. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  16468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16469. msm_routing_put_audio_mixer),
  16470. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  16472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16473. msm_routing_put_audio_mixer),
  16474. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16475. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  16476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16477. msm_routing_put_audio_mixer),
  16478. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16479. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16480. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16481. msm_routing_put_audio_mixer),
  16482. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16483. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16485. msm_routing_put_audio_mixer),
  16486. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16487. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16488. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16489. msm_routing_put_audio_mixer),
  16490. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16491. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  16492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16493. msm_routing_put_audio_mixer),
  16494. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16495. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  16496. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16497. msm_routing_put_audio_mixer),
  16498. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  16500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16501. msm_routing_put_audio_mixer),
  16502. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16503. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16504. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16505. msm_routing_put_audio_mixer),
  16506. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16507. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  16508. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16509. msm_routing_put_audio_mixer),
  16510. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  16512. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16513. msm_routing_put_audio_mixer),
  16514. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  16515. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  16516. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16517. msm_routing_put_audio_mixer),
  16518. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  16519. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  16520. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16521. msm_routing_put_audio_mixer),
  16522. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  16524. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  16525. msm_routing_put_audio_mixer),
  16526. };
  16527. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  16528. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16529. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16530. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16531. msm_routing_put_audio_mixer),
  16532. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16534. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16535. msm_routing_put_audio_mixer),
  16536. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16537. MSM_BACKEND_DAI_INT_FM_TX,
  16538. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16539. msm_routing_put_audio_mixer),
  16540. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16541. MSM_BACKEND_DAI_AFE_PCM_TX,
  16542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16543. msm_routing_put_audio_mixer),
  16544. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16545. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16546. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16547. msm_routing_put_audio_mixer),
  16548. #ifndef CONFIG_AUXPCM_DISABLE
  16549. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_AUXPCM_TX,
  16551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16552. msm_routing_put_audio_mixer),
  16553. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16555. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16556. msm_routing_put_audio_mixer),
  16557. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16559. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16560. msm_routing_put_audio_mixer),
  16561. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  16562. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16564. msm_routing_put_audio_mixer),
  16565. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16567. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16568. msm_routing_put_audio_mixer),
  16569. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16571. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16572. msm_routing_put_audio_mixer),
  16573. #endif
  16574. #ifndef CONFIG_MI2S_DISABLE
  16575. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_MI2S_TX,
  16577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16578. msm_routing_put_audio_mixer),
  16579. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16582. msm_routing_put_audio_mixer),
  16583. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16586. msm_routing_put_audio_mixer),
  16587. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16590. msm_routing_put_audio_mixer),
  16591. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  16592. MSM_BACKEND_DAI_INT2_MI2S_TX,
  16593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16594. msm_routing_put_audio_mixer),
  16595. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16598. msm_routing_put_audio_mixer),
  16599. #endif
  16600. #ifndef CONFIG_TDM_DISABLE
  16601. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  16603. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16604. msm_routing_put_audio_mixer),
  16605. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  16607. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16608. msm_routing_put_audio_mixer),
  16609. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16610. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  16611. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16612. msm_routing_put_audio_mixer),
  16613. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16615. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16616. msm_routing_put_audio_mixer),
  16617. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  16619. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16620. msm_routing_put_audio_mixer),
  16621. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16622. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  16623. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16624. msm_routing_put_audio_mixer),
  16625. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  16627. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16628. msm_routing_put_audio_mixer),
  16629. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  16631. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16632. msm_routing_put_audio_mixer),
  16633. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16634. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  16635. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16636. msm_routing_put_audio_mixer),
  16637. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16638. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  16639. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16640. msm_routing_put_audio_mixer),
  16641. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16642. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  16643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16644. msm_routing_put_audio_mixer),
  16645. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16646. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  16647. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16648. msm_routing_put_audio_mixer),
  16649. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  16651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16652. msm_routing_put_audio_mixer),
  16653. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  16655. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16656. msm_routing_put_audio_mixer),
  16657. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  16659. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16660. msm_routing_put_audio_mixer),
  16661. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16662. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  16663. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16664. msm_routing_put_audio_mixer),
  16665. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16666. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16667. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16668. msm_routing_put_audio_mixer),
  16669. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16670. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  16671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16672. msm_routing_put_audio_mixer),
  16673. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16674. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  16675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16676. msm_routing_put_audio_mixer),
  16677. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16678. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  16679. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16680. msm_routing_put_audio_mixer),
  16681. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  16683. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16684. msm_routing_put_audio_mixer),
  16685. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  16687. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16688. msm_routing_put_audio_mixer),
  16689. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16690. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  16691. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16692. msm_routing_put_audio_mixer),
  16693. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16694. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  16695. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16696. msm_routing_put_audio_mixer),
  16697. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16700. msm_routing_put_audio_mixer),
  16701. #endif
  16702. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16703. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16704. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16705. msm_routing_put_audio_mixer),
  16706. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16707. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16709. msm_routing_put_audio_mixer),
  16710. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16711. MSM_BACKEND_DAI_USB_TX,
  16712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16713. msm_routing_put_audio_mixer),
  16714. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  16716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16717. msm_routing_put_audio_mixer),
  16718. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16719. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  16720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16721. msm_routing_put_audio_mixer),
  16722. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16723. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  16724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16725. msm_routing_put_audio_mixer),
  16726. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16727. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16729. msm_routing_put_audio_mixer),
  16730. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16731. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16733. msm_routing_put_audio_mixer),
  16734. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16736. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16737. msm_routing_put_audio_mixer),
  16738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  16740. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16741. msm_routing_put_audio_mixer),
  16742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  16744. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16745. msm_routing_put_audio_mixer),
  16746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  16748. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16749. msm_routing_put_audio_mixer),
  16750. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16751. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16753. msm_routing_put_audio_mixer),
  16754. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  16756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16757. msm_routing_put_audio_mixer),
  16758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  16760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16761. msm_routing_put_audio_mixer),
  16762. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  16763. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  16764. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16765. msm_routing_put_audio_mixer),
  16766. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  16768. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16769. msm_routing_put_audio_mixer),
  16770. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16771. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  16772. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16773. msm_routing_put_audio_mixer),
  16774. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  16775. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  16776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  16777. msm_routing_put_audio_mixer),
  16778. };
  16779. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  16780. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16781. MSM_BACKEND_DAI_INT_FM_TX,
  16782. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16783. msm_routing_put_audio_mixer),
  16784. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16785. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16786. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16787. msm_routing_put_audio_mixer),
  16788. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16789. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16790. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16791. msm_routing_put_audio_mixer),
  16792. #ifndef CONFIG_MI2S_DISABLE
  16793. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16794. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16796. msm_routing_put_audio_mixer),
  16797. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16800. msm_routing_put_audio_mixer),
  16801. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16804. msm_routing_put_audio_mixer),
  16805. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  16806. MSM_BACKEND_DAI_INT2_MI2S_TX,
  16807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16808. msm_routing_put_audio_mixer),
  16809. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16810. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16812. msm_routing_put_audio_mixer),
  16813. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16816. msm_routing_put_audio_mixer),
  16817. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  16819. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16820. msm_routing_put_audio_mixer),
  16821. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  16823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16824. msm_routing_put_audio_mixer),
  16825. #endif
  16826. #ifndef CONFIG_AUXPCM_DISABLE
  16827. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16828. MSM_BACKEND_DAI_AUXPCM_TX,
  16829. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16830. msm_routing_put_audio_mixer),
  16831. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16834. msm_routing_put_audio_mixer),
  16835. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16836. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16837. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16838. msm_routing_put_audio_mixer),
  16839. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16842. msm_routing_put_audio_mixer),
  16843. #endif
  16844. #ifndef CONFIG_TDM_DISABLE
  16845. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16846. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  16847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16848. msm_routing_put_audio_mixer),
  16849. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16850. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  16851. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16852. msm_routing_put_audio_mixer),
  16853. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16854. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  16855. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16856. msm_routing_put_audio_mixer),
  16857. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16859. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16860. msm_routing_put_audio_mixer),
  16861. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  16863. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16864. msm_routing_put_audio_mixer),
  16865. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16866. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  16867. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16868. msm_routing_put_audio_mixer),
  16869. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16870. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  16871. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16872. msm_routing_put_audio_mixer),
  16873. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16874. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  16875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16876. msm_routing_put_audio_mixer),
  16877. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16878. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  16879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16880. msm_routing_put_audio_mixer),
  16881. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  16883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16884. msm_routing_put_audio_mixer),
  16885. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16886. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  16887. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16888. msm_routing_put_audio_mixer),
  16889. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  16891. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16892. msm_routing_put_audio_mixer),
  16893. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  16895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16896. msm_routing_put_audio_mixer),
  16897. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16898. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  16899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16900. msm_routing_put_audio_mixer),
  16901. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  16903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16904. msm_routing_put_audio_mixer),
  16905. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16906. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  16907. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16908. msm_routing_put_audio_mixer),
  16909. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16910. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16911. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16912. msm_routing_put_audio_mixer),
  16913. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  16915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16916. msm_routing_put_audio_mixer),
  16917. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16918. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  16919. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16920. msm_routing_put_audio_mixer),
  16921. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  16923. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16924. msm_routing_put_audio_mixer),
  16925. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  16927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16928. msm_routing_put_audio_mixer),
  16929. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  16931. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16932. msm_routing_put_audio_mixer),
  16933. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  16935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16936. msm_routing_put_audio_mixer),
  16937. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16938. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  16939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16940. msm_routing_put_audio_mixer),
  16941. #endif
  16942. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16943. MSM_BACKEND_DAI_USB_TX,
  16944. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16945. msm_routing_put_audio_mixer),
  16946. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16947. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  16948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16949. msm_routing_put_audio_mixer),
  16950. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16951. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  16952. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16953. msm_routing_put_audio_mixer),
  16954. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16955. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  16956. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16957. msm_routing_put_audio_mixer),
  16958. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16960. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16961. msm_routing_put_audio_mixer),
  16962. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16963. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16964. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16965. msm_routing_put_audio_mixer),
  16966. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16967. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16968. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16969. msm_routing_put_audio_mixer),
  16970. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16971. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  16972. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16973. msm_routing_put_audio_mixer),
  16974. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16975. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  16976. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16977. msm_routing_put_audio_mixer),
  16978. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16979. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  16980. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16981. msm_routing_put_audio_mixer),
  16982. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16983. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16984. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16985. msm_routing_put_audio_mixer),
  16986. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16987. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  16988. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16989. msm_routing_put_audio_mixer),
  16990. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16991. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  16992. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16993. msm_routing_put_audio_mixer),
  16994. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  16995. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  16996. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  16997. msm_routing_put_audio_mixer),
  16998. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  16999. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  17000. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  17001. msm_routing_put_audio_mixer),
  17002. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  17003. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  17004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  17005. msm_routing_put_audio_mixer),
  17006. };
  17007. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  17008. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17010. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17011. msm_routing_put_audio_mixer),
  17012. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17013. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17014. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17015. msm_routing_put_audio_mixer),
  17016. #ifndef CONFIG_MI2S_DISABLE
  17017. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17018. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17020. msm_routing_put_audio_mixer),
  17021. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17022. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  17023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17024. msm_routing_put_audio_mixer),
  17025. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17026. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17028. msm_routing_put_audio_mixer),
  17029. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  17030. MSM_BACKEND_DAI_INT2_MI2S_TX,
  17031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17032. msm_routing_put_audio_mixer),
  17033. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17034. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17036. msm_routing_put_audio_mixer),
  17037. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17038. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17039. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17040. msm_routing_put_audio_mixer),
  17041. #endif
  17042. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17043. MSM_BACKEND_DAI_INT_FM_TX,
  17044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17045. msm_routing_put_audio_mixer),
  17046. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17047. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17049. msm_routing_put_audio_mixer),
  17050. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17051. MSM_BACKEND_DAI_AFE_PCM_TX,
  17052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17053. msm_routing_put_audio_mixer),
  17054. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  17055. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  17056. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17057. msm_routing_put_audio_mixer),
  17058. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  17059. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  17060. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17061. msm_routing_put_audio_mixer),
  17062. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  17063. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  17064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17065. msm_routing_put_audio_mixer),
  17066. #ifndef CONFIG_TDM_DISABLE
  17067. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17068. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  17069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17070. msm_routing_put_audio_mixer),
  17071. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17072. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  17073. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17074. msm_routing_put_audio_mixer),
  17075. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  17077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17078. msm_routing_put_audio_mixer),
  17079. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  17081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17082. msm_routing_put_audio_mixer),
  17083. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  17085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17086. msm_routing_put_audio_mixer),
  17087. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  17089. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17090. msm_routing_put_audio_mixer),
  17091. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17092. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  17093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17094. msm_routing_put_audio_mixer),
  17095. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  17097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17098. msm_routing_put_audio_mixer),
  17099. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17100. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  17101. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17102. msm_routing_put_audio_mixer),
  17103. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17104. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  17105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17106. msm_routing_put_audio_mixer),
  17107. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  17109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17110. msm_routing_put_audio_mixer),
  17111. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17112. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  17113. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17114. msm_routing_put_audio_mixer),
  17115. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17116. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  17117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17118. msm_routing_put_audio_mixer),
  17119. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  17121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17122. msm_routing_put_audio_mixer),
  17123. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17124. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  17125. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17126. msm_routing_put_audio_mixer),
  17127. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17128. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  17129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17130. msm_routing_put_audio_mixer),
  17131. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17132. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  17133. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17134. msm_routing_put_audio_mixer),
  17135. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17136. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  17137. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17138. msm_routing_put_audio_mixer),
  17139. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17140. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  17141. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17142. msm_routing_put_audio_mixer),
  17143. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17144. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  17145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17146. msm_routing_put_audio_mixer),
  17147. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17148. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  17149. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17150. msm_routing_put_audio_mixer),
  17151. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17152. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  17153. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17154. msm_routing_put_audio_mixer),
  17155. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17156. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  17157. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17158. msm_routing_put_audio_mixer),
  17159. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17160. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  17161. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17162. msm_routing_put_audio_mixer),
  17163. #endif
  17164. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17165. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17166. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17167. msm_routing_put_audio_mixer),
  17168. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17169. MSM_BACKEND_DAI_USB_TX,
  17170. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17171. msm_routing_put_audio_mixer),
  17172. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17173. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  17174. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17175. msm_routing_put_audio_mixer),
  17176. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17177. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  17178. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17179. msm_routing_put_audio_mixer),
  17180. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17181. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  17182. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17183. msm_routing_put_audio_mixer),
  17184. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17185. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  17186. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17187. msm_routing_put_audio_mixer),
  17188. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17189. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  17190. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17191. msm_routing_put_audio_mixer),
  17192. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  17194. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17195. msm_routing_put_audio_mixer),
  17196. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17197. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  17198. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17199. msm_routing_put_audio_mixer),
  17200. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  17202. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17203. msm_routing_put_audio_mixer),
  17204. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17205. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  17206. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17207. msm_routing_put_audio_mixer),
  17208. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17209. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  17210. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17211. msm_routing_put_audio_mixer),
  17212. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  17214. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17215. msm_routing_put_audio_mixer),
  17216. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17217. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  17218. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17219. msm_routing_put_audio_mixer),
  17220. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  17221. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  17222. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17223. msm_routing_put_audio_mixer),
  17224. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  17225. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  17226. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17227. msm_routing_put_audio_mixer),
  17228. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17229. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  17230. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17231. msm_routing_put_audio_mixer),
  17232. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  17233. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  17234. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  17235. msm_routing_put_audio_mixer),
  17236. };
  17237. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  17238. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17239. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17240. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17241. msm_routing_put_audio_mixer),
  17242. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17243. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17245. msm_routing_put_audio_mixer),
  17246. #ifndef CONFIG_MI2S_DISABLE
  17247. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17250. msm_routing_put_audio_mixer),
  17251. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17252. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  17253. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17254. msm_routing_put_audio_mixer),
  17255. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17256. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17258. msm_routing_put_audio_mixer),
  17259. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_INT2_MI2S_TX,
  17261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17262. msm_routing_put_audio_mixer),
  17263. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17265. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17266. msm_routing_put_audio_mixer),
  17267. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17269. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17270. msm_routing_put_audio_mixer),
  17271. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17272. MSM_BACKEND_DAI_MI2S_TX,
  17273. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17274. msm_routing_put_audio_mixer),
  17275. #endif
  17276. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17277. MSM_BACKEND_DAI_INT_FM_TX,
  17278. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17279. msm_routing_put_audio_mixer),
  17280. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17281. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17283. msm_routing_put_audio_mixer),
  17284. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_AFE_PCM_TX,
  17286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17287. msm_routing_put_audio_mixer),
  17288. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  17289. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  17290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17291. msm_routing_put_audio_mixer),
  17292. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  17293. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  17294. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17295. msm_routing_put_audio_mixer),
  17296. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  17297. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  17298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17299. msm_routing_put_audio_mixer),
  17300. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17301. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  17302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17303. msm_routing_put_audio_mixer),
  17304. #ifndef CONFIG_TDM_DISABLE
  17305. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17306. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  17307. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17308. msm_routing_put_audio_mixer),
  17309. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  17311. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17312. msm_routing_put_audio_mixer),
  17313. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  17315. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17316. msm_routing_put_audio_mixer),
  17317. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17318. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  17319. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17320. msm_routing_put_audio_mixer),
  17321. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17322. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  17323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17324. msm_routing_put_audio_mixer),
  17325. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17326. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  17327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17328. msm_routing_put_audio_mixer),
  17329. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  17331. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17332. msm_routing_put_audio_mixer),
  17333. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  17335. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17336. msm_routing_put_audio_mixer),
  17337. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  17339. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17340. msm_routing_put_audio_mixer),
  17341. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17342. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  17343. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17344. msm_routing_put_audio_mixer),
  17345. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17346. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  17347. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17348. msm_routing_put_audio_mixer),
  17349. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17350. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  17351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17352. msm_routing_put_audio_mixer),
  17353. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  17355. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17356. msm_routing_put_audio_mixer),
  17357. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  17359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17360. msm_routing_put_audio_mixer),
  17361. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  17363. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17364. msm_routing_put_audio_mixer),
  17365. #endif
  17366. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17367. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17369. msm_routing_put_audio_mixer),
  17370. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17371. MSM_BACKEND_DAI_USB_TX,
  17372. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17373. msm_routing_put_audio_mixer),
  17374. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  17375. MSM_BACKEND_DAI_AUXPCM_TX,
  17376. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17377. msm_routing_put_audio_mixer),
  17378. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  17379. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17380. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17381. msm_routing_put_audio_mixer),
  17382. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  17383. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17384. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17385. msm_routing_put_audio_mixer),
  17386. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17387. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  17388. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17389. msm_routing_put_audio_mixer),
  17390. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17391. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  17392. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17393. msm_routing_put_audio_mixer),
  17394. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17395. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  17396. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17397. msm_routing_put_audio_mixer),
  17398. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17399. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  17400. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17401. msm_routing_put_audio_mixer),
  17402. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17403. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  17404. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17405. msm_routing_put_audio_mixer),
  17406. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17407. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  17408. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17409. msm_routing_put_audio_mixer),
  17410. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17411. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  17412. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  17413. msm_routing_get_audio_mixer,
  17414. msm_routing_put_audio_mixer),
  17415. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  17417. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  17418. msm_routing_get_audio_mixer,
  17419. msm_routing_put_audio_mixer),
  17420. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17421. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  17422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  17423. msm_routing_get_audio_mixer,
  17424. msm_routing_put_audio_mixer),
  17425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  17427. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  17428. msm_routing_get_audio_mixer,
  17429. msm_routing_put_audio_mixer),
  17430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  17432. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  17433. msm_routing_get_audio_mixer,
  17434. msm_routing_put_audio_mixer),
  17435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  17437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  17438. msm_routing_get_audio_mixer,
  17439. msm_routing_put_audio_mixer),
  17440. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  17442. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17443. msm_routing_put_audio_mixer),
  17444. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  17445. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  17446. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17447. msm_routing_put_audio_mixer),
  17448. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17449. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  17450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17451. msm_routing_put_audio_mixer),
  17452. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  17453. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  17454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  17455. msm_routing_put_audio_mixer),
  17456. };
  17457. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  17458. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17459. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17460. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17461. msm_routing_put_audio_mixer),
  17462. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17463. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17464. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17465. msm_routing_put_audio_mixer),
  17466. #ifndef CONFIG_MI2S_DISABLE
  17467. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17468. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17470. msm_routing_put_audio_mixer),
  17471. #endif
  17472. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17473. MSM_BACKEND_DAI_INT_FM_TX,
  17474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17475. msm_routing_put_audio_mixer),
  17476. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17477. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17478. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17479. msm_routing_put_audio_mixer),
  17480. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17481. MSM_BACKEND_DAI_AFE_PCM_TX,
  17482. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17483. msm_routing_put_audio_mixer),
  17484. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  17485. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  17486. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17487. msm_routing_put_audio_mixer),
  17488. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  17489. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  17490. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17491. msm_routing_put_audio_mixer),
  17492. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  17493. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  17494. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17495. msm_routing_put_audio_mixer),
  17496. #ifndef CONFIG_TDM_DISABLE
  17497. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  17499. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17500. msm_routing_put_audio_mixer),
  17501. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17502. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  17503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17504. msm_routing_put_audio_mixer),
  17505. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17506. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  17507. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17508. msm_routing_put_audio_mixer),
  17509. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17510. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  17511. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17512. msm_routing_put_audio_mixer),
  17513. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  17515. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17516. msm_routing_put_audio_mixer),
  17517. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  17519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17520. msm_routing_put_audio_mixer),
  17521. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  17523. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17524. msm_routing_put_audio_mixer),
  17525. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17526. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  17527. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17528. msm_routing_put_audio_mixer),
  17529. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17530. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  17531. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17532. msm_routing_put_audio_mixer),
  17533. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  17535. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17536. msm_routing_put_audio_mixer),
  17537. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  17539. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17540. msm_routing_put_audio_mixer),
  17541. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17542. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  17543. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17544. msm_routing_put_audio_mixer),
  17545. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17546. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  17547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17548. msm_routing_put_audio_mixer),
  17549. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17550. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  17551. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17552. msm_routing_put_audio_mixer),
  17553. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  17555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17556. msm_routing_put_audio_mixer),
  17557. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  17559. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17560. msm_routing_put_audio_mixer),
  17561. #endif
  17562. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17563. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  17564. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17565. msm_routing_put_audio_mixer),
  17566. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17567. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  17568. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17569. msm_routing_put_audio_mixer),
  17570. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17571. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  17572. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17573. msm_routing_put_audio_mixer),
  17574. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17575. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  17576. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17577. msm_routing_put_audio_mixer),
  17578. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17579. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  17580. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17581. msm_routing_put_audio_mixer),
  17582. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17583. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  17584. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17585. msm_routing_put_audio_mixer),
  17586. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17587. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  17588. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17589. msm_routing_put_audio_mixer),
  17590. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17591. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  17592. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17593. msm_routing_put_audio_mixer),
  17594. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17595. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  17596. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17597. msm_routing_put_audio_mixer),
  17598. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17599. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  17600. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17601. msm_routing_put_audio_mixer),
  17602. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  17604. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17605. msm_routing_put_audio_mixer),
  17606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  17608. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17609. msm_routing_put_audio_mixer),
  17610. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  17611. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  17612. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17613. msm_routing_put_audio_mixer),
  17614. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  17615. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  17616. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17617. msm_routing_put_audio_mixer),
  17618. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  17619. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  17620. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  17621. msm_routing_put_audio_mixer),
  17622. };
  17623. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  17624. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17625. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17626. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17627. msm_routing_put_audio_mixer),
  17628. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17629. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17630. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17631. msm_routing_put_audio_mixer),
  17632. #ifndef CONFIG_MI2S_DISABLE
  17633. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17636. msm_routing_put_audio_mixer),
  17637. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_MI2S_TX,
  17639. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17640. msm_routing_put_audio_mixer),
  17641. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17642. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17643. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17644. msm_routing_put_audio_mixer),
  17645. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  17646. MSM_BACKEND_DAI_INT2_MI2S_TX,
  17647. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17648. msm_routing_put_audio_mixer),
  17649. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17651. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17652. msm_routing_put_audio_mixer),
  17653. #endif
  17654. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_INT_FM_TX,
  17656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17657. msm_routing_put_audio_mixer),
  17658. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17659. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17660. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17661. msm_routing_put_audio_mixer),
  17662. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17663. MSM_BACKEND_DAI_AFE_PCM_TX,
  17664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17665. msm_routing_put_audio_mixer),
  17666. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  17667. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  17668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17669. msm_routing_put_audio_mixer),
  17670. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  17671. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  17672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17673. msm_routing_put_audio_mixer),
  17674. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  17675. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  17676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17677. msm_routing_put_audio_mixer),
  17678. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17679. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17681. msm_routing_put_audio_mixer),
  17682. #ifndef CONFIG_TDM_DISABLE
  17683. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  17685. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17686. msm_routing_put_audio_mixer),
  17687. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  17689. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17690. msm_routing_put_audio_mixer),
  17691. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17692. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  17693. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17694. msm_routing_put_audio_mixer),
  17695. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17696. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  17697. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17698. msm_routing_put_audio_mixer),
  17699. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17700. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  17701. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17702. msm_routing_put_audio_mixer),
  17703. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17704. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  17705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17706. msm_routing_put_audio_mixer),
  17707. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  17709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17710. msm_routing_put_audio_mixer),
  17711. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17712. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  17713. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17714. msm_routing_put_audio_mixer),
  17715. #endif
  17716. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17717. MSM_BACKEND_DAI_USB_TX,
  17718. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17719. msm_routing_put_audio_mixer),
  17720. #ifndef CONFIG_AUXPCM_DISABLE
  17721. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  17722. MSM_BACKEND_DAI_AUXPCM_TX,
  17723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17724. msm_routing_put_audio_mixer),
  17725. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  17726. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17728. msm_routing_put_audio_mixer),
  17729. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17732. msm_routing_put_audio_mixer),
  17733. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  17734. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17735. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17736. msm_routing_put_audio_mixer),
  17737. #endif
  17738. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17739. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  17740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17741. msm_routing_put_audio_mixer),
  17742. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17743. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  17744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17745. msm_routing_put_audio_mixer),
  17746. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17747. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  17748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17749. msm_routing_put_audio_mixer),
  17750. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17751. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  17752. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17753. msm_routing_put_audio_mixer),
  17754. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17755. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  17756. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17757. msm_routing_put_audio_mixer),
  17758. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17759. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  17760. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17761. msm_routing_put_audio_mixer),
  17762. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17763. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  17764. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  17765. msm_routing_get_audio_mixer,
  17766. msm_routing_put_audio_mixer),
  17767. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17768. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  17769. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  17770. msm_routing_get_audio_mixer,
  17771. msm_routing_put_audio_mixer),
  17772. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17773. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  17774. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  17775. msm_routing_get_audio_mixer,
  17776. msm_routing_put_audio_mixer),
  17777. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  17779. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  17780. msm_routing_get_audio_mixer,
  17781. msm_routing_put_audio_mixer),
  17782. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17783. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  17784. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  17785. msm_routing_get_audio_mixer,
  17786. msm_routing_put_audio_mixer),
  17787. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17788. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  17789. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  17790. msm_routing_get_audio_mixer,
  17791. msm_routing_put_audio_mixer),
  17792. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  17793. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  17794. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17795. msm_routing_put_audio_mixer),
  17796. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  17798. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17799. msm_routing_put_audio_mixer),
  17800. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17801. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  17802. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17803. msm_routing_put_audio_mixer),
  17804. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  17805. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  17806. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  17807. msm_routing_put_audio_mixer),
  17808. };
  17809. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  17810. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17811. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17812. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17813. msm_routing_put_audio_mixer),
  17814. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17815. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17816. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17817. msm_routing_put_audio_mixer),
  17818. #ifndef CONFIG_MI2S_DISABLE
  17819. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17821. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17822. msm_routing_put_audio_mixer),
  17823. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17824. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17825. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17826. msm_routing_put_audio_mixer),
  17827. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17828. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17829. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17830. msm_routing_put_audio_mixer),
  17831. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17833. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17834. msm_routing_put_audio_mixer),
  17835. #endif
  17836. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_INT_FM_TX,
  17838. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17839. msm_routing_put_audio_mixer),
  17840. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17841. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17842. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17843. msm_routing_put_audio_mixer),
  17844. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_AFE_PCM_TX,
  17846. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17847. msm_routing_put_audio_mixer),
  17848. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  17849. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  17850. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17851. msm_routing_put_audio_mixer),
  17852. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  17853. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  17854. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17855. msm_routing_put_audio_mixer),
  17856. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17857. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  17858. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17859. msm_routing_put_audio_mixer),
  17860. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17861. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  17862. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17863. msm_routing_put_audio_mixer),
  17864. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17865. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  17866. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17867. msm_routing_put_audio_mixer),
  17868. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17869. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  17870. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17871. msm_routing_put_audio_mixer),
  17872. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17873. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  17874. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17875. msm_routing_put_audio_mixer),
  17876. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17877. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  17878. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17879. msm_routing_put_audio_mixer),
  17880. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17881. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  17882. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  17883. msm_routing_get_audio_mixer,
  17884. msm_routing_put_audio_mixer),
  17885. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17886. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  17887. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  17888. msm_routing_get_audio_mixer,
  17889. msm_routing_put_audio_mixer),
  17890. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17891. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  17892. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  17893. msm_routing_get_audio_mixer,
  17894. msm_routing_put_audio_mixer),
  17895. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17896. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  17897. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  17898. msm_routing_get_audio_mixer,
  17899. msm_routing_put_audio_mixer),
  17900. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17901. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  17902. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  17903. msm_routing_get_audio_mixer,
  17904. msm_routing_put_audio_mixer),
  17905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  17907. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  17908. msm_routing_get_audio_mixer,
  17909. msm_routing_put_audio_mixer),
  17910. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  17911. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  17912. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17913. msm_routing_put_audio_mixer),
  17914. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  17915. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  17916. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17917. msm_routing_put_audio_mixer),
  17918. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  17920. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17921. msm_routing_put_audio_mixer),
  17922. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17923. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17924. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17925. msm_routing_put_audio_mixer),
  17926. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17927. MSM_BACKEND_DAI_USB_TX,
  17928. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  17929. msm_routing_put_audio_mixer),
  17930. };
  17931. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  17932. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17933. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17934. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17935. msm_routing_put_audio_mixer),
  17936. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17937. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17938. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17939. msm_routing_put_audio_mixer),
  17940. #ifndef CONFIG_MI2S_DISABLE
  17941. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17943. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17944. msm_routing_put_audio_mixer),
  17945. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17946. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17947. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17948. msm_routing_put_audio_mixer),
  17949. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17950. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  17951. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17952. msm_routing_put_audio_mixer),
  17953. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17954. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17955. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17956. msm_routing_put_audio_mixer),
  17957. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17958. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17959. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17960. msm_routing_put_audio_mixer),
  17961. #endif
  17962. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17963. MSM_BACKEND_DAI_INT_FM_TX,
  17964. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17965. msm_routing_put_audio_mixer),
  17966. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17967. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17968. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17969. msm_routing_put_audio_mixer),
  17970. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17971. MSM_BACKEND_DAI_AFE_PCM_TX,
  17972. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17973. msm_routing_put_audio_mixer),
  17974. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  17975. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  17976. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17977. msm_routing_put_audio_mixer),
  17978. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  17979. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  17980. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17981. msm_routing_put_audio_mixer),
  17982. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17983. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  17984. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17985. msm_routing_put_audio_mixer),
  17986. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17987. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  17988. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17989. msm_routing_put_audio_mixer),
  17990. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17991. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  17992. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17993. msm_routing_put_audio_mixer),
  17994. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17995. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  17996. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  17997. msm_routing_put_audio_mixer),
  17998. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17999. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18000. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  18001. msm_routing_put_audio_mixer),
  18002. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18003. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18004. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  18005. msm_routing_put_audio_mixer),
  18006. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  18008. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  18009. msm_routing_get_audio_mixer,
  18010. msm_routing_put_audio_mixer),
  18011. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  18013. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  18014. msm_routing_get_audio_mixer,
  18015. msm_routing_put_audio_mixer),
  18016. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  18018. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  18019. msm_routing_get_audio_mixer,
  18020. msm_routing_put_audio_mixer),
  18021. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18023. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  18024. msm_routing_get_audio_mixer,
  18025. msm_routing_put_audio_mixer),
  18026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  18028. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  18029. msm_routing_get_audio_mixer,
  18030. msm_routing_put_audio_mixer),
  18031. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  18033. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  18034. msm_routing_get_audio_mixer,
  18035. msm_routing_put_audio_mixer),
  18036. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  18038. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  18039. msm_routing_put_audio_mixer),
  18040. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  18041. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  18042. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  18043. msm_routing_put_audio_mixer),
  18044. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  18045. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  18046. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  18047. msm_routing_put_audio_mixer),
  18048. };
  18049. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  18050. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18051. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18052. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18053. msm_routing_put_audio_mixer),
  18054. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18055. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18056. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18057. msm_routing_put_audio_mixer),
  18058. #ifndef CONFIG_MI2S_DISABLE
  18059. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18060. MSM_BACKEND_DAI_PRI_MI2S_TX,
  18061. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18062. msm_routing_put_audio_mixer),
  18063. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18064. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18065. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18066. msm_routing_put_audio_mixer),
  18067. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18068. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  18069. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18070. msm_routing_put_audio_mixer),
  18071. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18072. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18073. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18074. msm_routing_put_audio_mixer),
  18075. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18076. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18077. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18078. msm_routing_put_audio_mixer),
  18079. #endif
  18080. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18081. MSM_BACKEND_DAI_INT_FM_TX,
  18082. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18083. msm_routing_put_audio_mixer),
  18084. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18085. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  18086. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18087. msm_routing_put_audio_mixer),
  18088. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18089. MSM_BACKEND_DAI_AFE_PCM_TX,
  18090. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18091. msm_routing_put_audio_mixer),
  18092. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  18093. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  18094. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18095. msm_routing_put_audio_mixer),
  18096. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  18097. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  18098. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18099. msm_routing_put_audio_mixer),
  18100. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18101. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  18102. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18103. msm_routing_put_audio_mixer),
  18104. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18105. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  18106. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18107. msm_routing_put_audio_mixer),
  18108. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  18110. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18111. msm_routing_put_audio_mixer),
  18112. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18113. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18114. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18115. msm_routing_put_audio_mixer),
  18116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18118. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18119. msm_routing_put_audio_mixer),
  18120. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18121. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18122. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18123. msm_routing_put_audio_mixer),
  18124. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  18125. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  18126. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  18127. msm_routing_get_audio_mixer,
  18128. msm_routing_put_audio_mixer),
  18129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  18130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  18131. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  18132. msm_routing_get_audio_mixer,
  18133. msm_routing_put_audio_mixer),
  18134. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  18135. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  18136. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  18137. msm_routing_get_audio_mixer,
  18138. msm_routing_put_audio_mixer),
  18139. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18140. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18141. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  18142. msm_routing_get_audio_mixer,
  18143. msm_routing_put_audio_mixer),
  18144. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  18145. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  18146. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  18147. msm_routing_get_audio_mixer,
  18148. msm_routing_put_audio_mixer),
  18149. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  18150. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  18151. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  18152. msm_routing_get_audio_mixer,
  18153. msm_routing_put_audio_mixer),
  18154. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  18155. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  18156. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18157. msm_routing_put_audio_mixer),
  18158. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  18160. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18161. msm_routing_put_audio_mixer),
  18162. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  18163. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  18164. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18165. msm_routing_put_audio_mixer),
  18166. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  18167. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  18168. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  18169. msm_routing_put_audio_mixer),
  18170. };
  18171. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  18172. #ifndef CONFIG_MI2S_DISABLE
  18173. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_PRI_MI2S_TX,
  18175. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18176. msm_routing_put_audio_mixer),
  18177. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  18179. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18180. msm_routing_put_audio_mixer),
  18181. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18182. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18183. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18184. msm_routing_put_audio_mixer),
  18185. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18186. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18187. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18188. msm_routing_put_audio_mixer),
  18189. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18190. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  18191. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18192. msm_routing_put_audio_mixer),
  18193. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18194. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  18195. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18196. msm_routing_put_audio_mixer),
  18197. #endif
  18198. #ifndef CONFIG_TDM_DISABLE
  18199. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18200. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  18201. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18202. msm_routing_put_audio_mixer),
  18203. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  18205. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18206. msm_routing_put_audio_mixer),
  18207. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18208. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  18209. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18210. msm_routing_put_audio_mixer),
  18211. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18212. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  18213. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18214. msm_routing_put_audio_mixer),
  18215. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18216. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  18217. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18218. msm_routing_put_audio_mixer),
  18219. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18220. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  18221. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18222. msm_routing_put_audio_mixer),
  18223. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18224. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  18225. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18226. msm_routing_put_audio_mixer),
  18227. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18228. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  18229. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18230. msm_routing_put_audio_mixer),
  18231. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18232. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  18233. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18234. msm_routing_put_audio_mixer),
  18235. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18236. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  18237. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18238. msm_routing_put_audio_mixer),
  18239. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18240. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  18241. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18242. msm_routing_put_audio_mixer),
  18243. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18244. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  18245. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18246. msm_routing_put_audio_mixer),
  18247. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18248. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  18249. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18250. msm_routing_put_audio_mixer),
  18251. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18252. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  18253. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18254. msm_routing_put_audio_mixer),
  18255. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  18257. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18258. msm_routing_put_audio_mixer),
  18259. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18260. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  18261. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18262. msm_routing_put_audio_mixer),
  18263. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18264. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18265. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18266. msm_routing_put_audio_mixer),
  18267. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18268. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  18269. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18270. msm_routing_put_audio_mixer),
  18271. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18272. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  18273. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18274. msm_routing_put_audio_mixer),
  18275. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  18277. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18278. msm_routing_put_audio_mixer),
  18279. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18280. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  18281. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18282. msm_routing_put_audio_mixer),
  18283. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18284. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  18285. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18286. msm_routing_put_audio_mixer),
  18287. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18288. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  18289. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18290. msm_routing_put_audio_mixer),
  18291. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18292. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  18293. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18294. msm_routing_put_audio_mixer),
  18295. #endif
  18296. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18297. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  18298. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18299. msm_routing_put_audio_mixer),
  18300. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  18302. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18303. msm_routing_put_audio_mixer),
  18304. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18305. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  18306. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18307. msm_routing_put_audio_mixer),
  18308. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18309. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18310. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18311. msm_routing_put_audio_mixer),
  18312. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18313. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18314. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18315. msm_routing_put_audio_mixer),
  18316. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18317. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18318. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18319. msm_routing_put_audio_mixer),
  18320. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  18321. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  18322. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18323. msm_routing_put_audio_mixer),
  18324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  18325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  18326. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18327. msm_routing_put_audio_mixer),
  18328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  18329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  18330. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18331. msm_routing_put_audio_mixer),
  18332. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18333. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18334. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18335. msm_routing_put_audio_mixer),
  18336. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  18337. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  18338. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18339. msm_routing_put_audio_mixer),
  18340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  18341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  18342. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18343. msm_routing_put_audio_mixer),
  18344. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  18345. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  18346. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18347. msm_routing_put_audio_mixer),
  18348. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  18349. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  18350. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18351. msm_routing_put_audio_mixer),
  18352. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  18354. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  18355. msm_routing_put_audio_mixer),
  18356. };
  18357. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  18358. #ifndef CONFIG_AUXPCM_DISABLE
  18359. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18360. MSM_BACKEND_DAI_AUXPCM_TX,
  18361. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18362. msm_routing_put_audio_mixer),
  18363. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18364. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  18365. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18366. msm_routing_put_audio_mixer),
  18367. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  18369. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18370. msm_routing_put_audio_mixer),
  18371. #endif
  18372. #ifndef CONFIG_TDM_DISABLE
  18373. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18374. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  18375. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18376. msm_routing_put_audio_mixer),
  18377. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  18379. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18380. msm_routing_put_audio_mixer),
  18381. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18382. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  18383. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18384. msm_routing_put_audio_mixer),
  18385. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18386. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  18387. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18388. msm_routing_put_audio_mixer),
  18389. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18390. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  18391. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18392. msm_routing_put_audio_mixer),
  18393. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18394. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  18395. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18396. msm_routing_put_audio_mixer),
  18397. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  18399. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18400. msm_routing_put_audio_mixer),
  18401. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18402. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  18403. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18404. msm_routing_put_audio_mixer),
  18405. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18406. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  18407. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18408. msm_routing_put_audio_mixer),
  18409. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18410. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  18411. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18412. msm_routing_put_audio_mixer),
  18413. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18414. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  18415. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18416. msm_routing_put_audio_mixer),
  18417. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  18419. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18420. msm_routing_put_audio_mixer),
  18421. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18422. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  18423. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18424. msm_routing_put_audio_mixer),
  18425. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18426. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  18427. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18428. msm_routing_put_audio_mixer),
  18429. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18430. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  18431. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18432. msm_routing_put_audio_mixer),
  18433. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18434. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  18435. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18436. msm_routing_put_audio_mixer),
  18437. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18438. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18439. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18440. msm_routing_put_audio_mixer),
  18441. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18442. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  18443. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18444. msm_routing_put_audio_mixer),
  18445. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18446. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  18447. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18448. msm_routing_put_audio_mixer),
  18449. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18450. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  18451. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18452. msm_routing_put_audio_mixer),
  18453. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18454. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  18455. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18456. msm_routing_put_audio_mixer),
  18457. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18458. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  18459. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18460. msm_routing_put_audio_mixer),
  18461. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  18463. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18464. msm_routing_put_audio_mixer),
  18465. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18466. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  18467. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18468. msm_routing_put_audio_mixer),
  18469. #endif
  18470. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18471. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  18472. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18473. msm_routing_put_audio_mixer),
  18474. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18475. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  18476. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18477. msm_routing_put_audio_mixer),
  18478. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18479. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  18480. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18481. msm_routing_put_audio_mixer),
  18482. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18483. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18484. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18485. msm_routing_put_audio_mixer),
  18486. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18487. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18488. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18489. msm_routing_put_audio_mixer),
  18490. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18491. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18492. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18493. msm_routing_put_audio_mixer),
  18494. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  18495. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  18496. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18497. msm_routing_put_audio_mixer),
  18498. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  18499. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  18500. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18501. msm_routing_put_audio_mixer),
  18502. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  18503. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  18504. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18505. msm_routing_put_audio_mixer),
  18506. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18507. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18508. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18509. msm_routing_put_audio_mixer),
  18510. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  18511. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  18512. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18513. msm_routing_put_audio_mixer),
  18514. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  18516. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18517. msm_routing_put_audio_mixer),
  18518. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  18519. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  18520. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18521. msm_routing_put_audio_mixer),
  18522. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  18523. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  18524. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18525. msm_routing_put_audio_mixer),
  18526. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  18527. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  18528. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  18529. msm_routing_put_audio_mixer),
  18530. };
  18531. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  18532. #ifndef CONFIG_TDM_DISABLE
  18533. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18534. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  18535. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18536. msm_routing_put_audio_mixer),
  18537. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18538. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  18539. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18540. msm_routing_put_audio_mixer),
  18541. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18542. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  18543. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18544. msm_routing_put_audio_mixer),
  18545. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18546. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  18547. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18548. msm_routing_put_audio_mixer),
  18549. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18550. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  18551. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18552. msm_routing_put_audio_mixer),
  18553. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18554. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  18555. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18556. msm_routing_put_audio_mixer),
  18557. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18558. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  18559. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18560. msm_routing_put_audio_mixer),
  18561. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18562. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  18563. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18564. msm_routing_put_audio_mixer),
  18565. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18566. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  18567. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18568. msm_routing_put_audio_mixer),
  18569. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18570. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  18571. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18572. msm_routing_put_audio_mixer),
  18573. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18574. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  18575. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18576. msm_routing_put_audio_mixer),
  18577. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18578. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  18579. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18580. msm_routing_put_audio_mixer),
  18581. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18582. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  18583. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18584. msm_routing_put_audio_mixer),
  18585. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18586. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  18587. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18588. msm_routing_put_audio_mixer),
  18589. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18590. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  18591. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18592. msm_routing_put_audio_mixer),
  18593. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18594. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  18595. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18596. msm_routing_put_audio_mixer),
  18597. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18598. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18599. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18600. msm_routing_put_audio_mixer),
  18601. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18602. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  18603. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18604. msm_routing_put_audio_mixer),
  18605. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18606. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  18607. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18608. msm_routing_put_audio_mixer),
  18609. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18610. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  18611. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  18612. msm_routing_put_audio_mixer),
  18613. #endif
  18614. };
  18615. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  18616. #ifndef CONFIG_TDM_DISABLE
  18617. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18618. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  18619. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18620. msm_routing_put_audio_mixer),
  18621. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  18623. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18624. msm_routing_put_audio_mixer),
  18625. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  18627. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18628. msm_routing_put_audio_mixer),
  18629. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18630. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  18631. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18632. msm_routing_put_audio_mixer),
  18633. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18634. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  18635. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18636. msm_routing_put_audio_mixer),
  18637. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18638. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  18639. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18640. msm_routing_put_audio_mixer),
  18641. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  18643. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18644. msm_routing_put_audio_mixer),
  18645. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  18647. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18648. msm_routing_put_audio_mixer),
  18649. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18650. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  18651. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18652. msm_routing_put_audio_mixer),
  18653. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18654. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  18655. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18656. msm_routing_put_audio_mixer),
  18657. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18658. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  18659. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18660. msm_routing_put_audio_mixer),
  18661. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18662. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  18663. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18664. msm_routing_put_audio_mixer),
  18665. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18666. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  18667. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18668. msm_routing_put_audio_mixer),
  18669. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18670. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  18671. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18672. msm_routing_put_audio_mixer),
  18673. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18674. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  18675. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18676. msm_routing_put_audio_mixer),
  18677. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18678. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  18679. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18680. msm_routing_put_audio_mixer),
  18681. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18682. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18683. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18684. msm_routing_put_audio_mixer),
  18685. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  18687. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18688. msm_routing_put_audio_mixer),
  18689. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18690. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  18691. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18692. msm_routing_put_audio_mixer),
  18693. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18694. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  18695. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  18696. msm_routing_put_audio_mixer),
  18697. #endif
  18698. };
  18699. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  18700. #ifndef CONFIG_MI2S_DISABLE
  18701. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18702. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  18703. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18704. msm_routing_put_audio_mixer),
  18705. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  18707. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18708. msm_routing_put_audio_mixer),
  18709. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18710. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  18711. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18712. msm_routing_put_audio_mixer),
  18713. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18714. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  18715. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18716. msm_routing_put_audio_mixer),
  18717. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18718. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  18719. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18720. msm_routing_put_audio_mixer),
  18721. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18722. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  18723. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18724. msm_routing_put_audio_mixer),
  18725. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18726. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  18727. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18728. msm_routing_put_audio_mixer),
  18729. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18730. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  18731. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18732. msm_routing_put_audio_mixer),
  18733. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18734. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  18735. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18736. msm_routing_put_audio_mixer),
  18737. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18738. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  18739. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18740. msm_routing_put_audio_mixer),
  18741. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18742. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  18743. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18744. msm_routing_put_audio_mixer),
  18745. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18746. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  18747. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18748. msm_routing_put_audio_mixer),
  18749. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18750. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  18751. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18752. msm_routing_put_audio_mixer),
  18753. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  18755. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18756. msm_routing_put_audio_mixer),
  18757. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18758. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  18759. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18760. msm_routing_put_audio_mixer),
  18761. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18762. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  18763. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18764. msm_routing_put_audio_mixer),
  18765. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18766. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18767. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18768. msm_routing_put_audio_mixer),
  18769. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18770. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  18771. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18772. msm_routing_put_audio_mixer),
  18773. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18774. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  18775. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18776. msm_routing_put_audio_mixer),
  18777. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18778. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  18779. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  18780. msm_routing_put_audio_mixer),
  18781. #endif
  18782. };
  18783. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  18784. #ifndef CONFIG_TDM_DISABLE
  18785. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18786. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  18787. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18788. msm_routing_put_audio_mixer),
  18789. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18790. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  18791. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18792. msm_routing_put_audio_mixer),
  18793. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18794. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  18795. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18796. msm_routing_put_audio_mixer),
  18797. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18798. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  18799. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18800. msm_routing_put_audio_mixer),
  18801. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18802. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  18803. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18804. msm_routing_put_audio_mixer),
  18805. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18806. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  18807. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18808. msm_routing_put_audio_mixer),
  18809. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18810. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  18811. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18812. msm_routing_put_audio_mixer),
  18813. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18814. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  18815. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18816. msm_routing_put_audio_mixer),
  18817. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  18819. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18820. msm_routing_put_audio_mixer),
  18821. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18822. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  18823. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18824. msm_routing_put_audio_mixer),
  18825. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18826. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  18827. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18828. msm_routing_put_audio_mixer),
  18829. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18830. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  18831. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18832. msm_routing_put_audio_mixer),
  18833. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18834. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  18835. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18836. msm_routing_put_audio_mixer),
  18837. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18838. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  18839. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18840. msm_routing_put_audio_mixer),
  18841. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18842. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  18843. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18844. msm_routing_put_audio_mixer),
  18845. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18846. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  18847. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18848. msm_routing_put_audio_mixer),
  18849. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18850. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18851. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18852. msm_routing_put_audio_mixer),
  18853. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18854. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  18855. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18856. msm_routing_put_audio_mixer),
  18857. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18858. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  18859. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18860. msm_routing_put_audio_mixer),
  18861. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18862. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  18863. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  18864. msm_routing_put_audio_mixer),
  18865. #endif
  18866. };
  18867. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  18868. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18869. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18870. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18871. msm_routing_put_audio_mixer),
  18872. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18873. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18874. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18875. msm_routing_put_audio_mixer),
  18876. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  18877. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  18878. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18879. msm_routing_put_audio_mixer),
  18880. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  18882. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18883. msm_routing_put_audio_mixer),
  18884. #ifndef CONFIG_MI2S_DISABLE
  18885. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18886. MSM_BACKEND_DAI_PRI_MI2S_TX,
  18887. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18888. msm_routing_put_audio_mixer),
  18889. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18890. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  18891. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18892. msm_routing_put_audio_mixer),
  18893. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18894. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18895. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18896. msm_routing_put_audio_mixer),
  18897. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18898. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18899. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18900. msm_routing_put_audio_mixer),
  18901. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18902. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  18903. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18904. msm_routing_put_audio_mixer),
  18905. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18906. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  18907. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18908. msm_routing_put_audio_mixer),
  18909. #endif
  18910. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  18911. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  18912. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18913. msm_routing_put_audio_mixer),
  18914. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  18915. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  18916. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18917. msm_routing_put_audio_mixer),
  18918. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  18919. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  18920. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18921. msm_routing_put_audio_mixer),
  18922. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  18923. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  18924. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  18925. msm_routing_put_audio_mixer),
  18926. };
  18927. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  18928. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18929. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18930. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18931. msm_routing_put_audio_mixer),
  18932. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18933. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18934. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18935. msm_routing_put_audio_mixer),
  18936. #ifndef CONFIG_MI2S_DISABLE
  18937. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18938. MSM_BACKEND_DAI_PRI_MI2S_TX,
  18939. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18940. msm_routing_put_audio_mixer),
  18941. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18942. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18943. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18944. msm_routing_put_audio_mixer),
  18945. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18946. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  18947. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18948. msm_routing_put_audio_mixer),
  18949. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18950. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18951. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18952. msm_routing_put_audio_mixer),
  18953. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18954. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18955. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18956. msm_routing_put_audio_mixer),
  18957. #endif
  18958. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18959. MSM_BACKEND_DAI_INT_FM_TX,
  18960. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18961. msm_routing_put_audio_mixer),
  18962. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18963. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  18964. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18965. msm_routing_put_audio_mixer),
  18966. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18967. MSM_BACKEND_DAI_AFE_PCM_TX,
  18968. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18969. msm_routing_put_audio_mixer),
  18970. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  18971. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  18972. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18973. msm_routing_put_audio_mixer),
  18974. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  18975. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  18976. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18977. msm_routing_put_audio_mixer),
  18978. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18979. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  18980. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18981. msm_routing_put_audio_mixer),
  18982. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18983. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  18984. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18985. msm_routing_put_audio_mixer),
  18986. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18987. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  18988. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18989. msm_routing_put_audio_mixer),
  18990. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18991. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18992. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18993. msm_routing_put_audio_mixer),
  18994. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18995. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18996. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  18997. msm_routing_put_audio_mixer),
  18998. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18999. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19000. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  19001. msm_routing_put_audio_mixer),
  19002. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  19003. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  19004. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  19005. msm_routing_get_audio_mixer,
  19006. msm_routing_put_audio_mixer),
  19007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  19008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  19009. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  19010. msm_routing_get_audio_mixer,
  19011. msm_routing_put_audio_mixer),
  19012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  19013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  19014. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  19015. msm_routing_get_audio_mixer,
  19016. msm_routing_put_audio_mixer),
  19017. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19018. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19019. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  19020. msm_routing_get_audio_mixer,
  19021. msm_routing_put_audio_mixer),
  19022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  19023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  19024. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  19025. msm_routing_get_audio_mixer,
  19026. msm_routing_put_audio_mixer),
  19027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  19028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  19029. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  19030. msm_routing_get_audio_mixer,
  19031. msm_routing_put_audio_mixer),
  19032. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  19033. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  19034. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  19035. msm_routing_put_audio_mixer),
  19036. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  19037. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  19038. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  19039. msm_routing_put_audio_mixer),
  19040. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  19041. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  19042. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  19043. msm_routing_put_audio_mixer),
  19044. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  19045. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  19046. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  19047. msm_routing_put_audio_mixer),
  19048. };
  19049. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  19050. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19051. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19052. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19053. msm_routing_put_audio_mixer),
  19054. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  19055. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19056. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19057. msm_routing_put_audio_mixer),
  19058. #ifndef CONFIG_MI2S_DISABLE
  19059. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19060. MSM_BACKEND_DAI_PRI_MI2S_TX,
  19061. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19062. msm_routing_put_audio_mixer),
  19063. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19064. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19065. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19066. msm_routing_put_audio_mixer),
  19067. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19068. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  19069. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19070. msm_routing_put_audio_mixer),
  19071. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19072. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19073. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19074. msm_routing_put_audio_mixer),
  19075. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19076. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19077. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19078. msm_routing_put_audio_mixer),
  19079. #endif
  19080. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19081. MSM_BACKEND_DAI_INT_FM_TX,
  19082. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19083. msm_routing_put_audio_mixer),
  19084. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19085. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  19086. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19087. msm_routing_put_audio_mixer),
  19088. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19089. MSM_BACKEND_DAI_AFE_PCM_TX,
  19090. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19091. msm_routing_put_audio_mixer),
  19092. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  19093. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  19094. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19095. msm_routing_put_audio_mixer),
  19096. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  19097. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  19098. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19099. msm_routing_put_audio_mixer),
  19100. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19101. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  19102. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19103. msm_routing_put_audio_mixer),
  19104. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19105. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  19106. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19107. msm_routing_put_audio_mixer),
  19108. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19109. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  19110. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19111. msm_routing_put_audio_mixer),
  19112. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19113. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19114. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19115. msm_routing_put_audio_mixer),
  19116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19118. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19119. msm_routing_put_audio_mixer),
  19120. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19121. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19122. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19123. msm_routing_put_audio_mixer),
  19124. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  19125. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  19126. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  19127. msm_routing_get_audio_mixer,
  19128. msm_routing_put_audio_mixer),
  19129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  19130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  19131. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  19132. msm_routing_get_audio_mixer,
  19133. msm_routing_put_audio_mixer),
  19134. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  19135. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  19136. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  19137. msm_routing_get_audio_mixer,
  19138. msm_routing_put_audio_mixer),
  19139. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19140. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19141. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  19142. msm_routing_get_audio_mixer,
  19143. msm_routing_put_audio_mixer),
  19144. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  19145. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  19146. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  19147. msm_routing_get_audio_mixer,
  19148. msm_routing_put_audio_mixer),
  19149. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  19150. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  19151. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  19152. msm_routing_get_audio_mixer,
  19153. msm_routing_put_audio_mixer),
  19154. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  19155. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  19156. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19157. msm_routing_put_audio_mixer),
  19158. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  19159. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  19160. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19161. msm_routing_put_audio_mixer),
  19162. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  19163. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  19164. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19165. msm_routing_put_audio_mixer),
  19166. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  19167. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  19168. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  19169. msm_routing_put_audio_mixer),
  19170. };
  19171. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  19172. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19173. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19174. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19175. msm_routing_put_audio_mixer),
  19176. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  19177. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19178. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19179. msm_routing_put_audio_mixer),
  19180. #ifndef CONFIG_MI2S_DISABLE
  19181. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19182. MSM_BACKEND_DAI_PRI_MI2S_TX,
  19183. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19184. msm_routing_put_audio_mixer),
  19185. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19186. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19187. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19188. msm_routing_put_audio_mixer),
  19189. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19190. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  19191. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19192. msm_routing_put_audio_mixer),
  19193. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19194. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19195. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19196. msm_routing_put_audio_mixer),
  19197. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19198. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19199. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19200. msm_routing_put_audio_mixer),
  19201. #endif
  19202. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19203. MSM_BACKEND_DAI_INT_FM_TX,
  19204. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19205. msm_routing_put_audio_mixer),
  19206. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19207. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  19208. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19209. msm_routing_put_audio_mixer),
  19210. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19211. MSM_BACKEND_DAI_AFE_PCM_TX,
  19212. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19213. msm_routing_put_audio_mixer),
  19214. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  19215. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  19216. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19217. msm_routing_put_audio_mixer),
  19218. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  19219. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  19220. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19221. msm_routing_put_audio_mixer),
  19222. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19223. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  19224. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19225. msm_routing_put_audio_mixer),
  19226. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19227. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  19228. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19229. msm_routing_put_audio_mixer),
  19230. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19231. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  19232. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19233. msm_routing_put_audio_mixer),
  19234. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19235. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19236. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19237. msm_routing_put_audio_mixer),
  19238. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19239. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19240. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19241. msm_routing_put_audio_mixer),
  19242. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  19243. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  19244. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  19245. msm_routing_get_audio_mixer,
  19246. msm_routing_put_audio_mixer),
  19247. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  19248. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  19249. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  19250. msm_routing_get_audio_mixer,
  19251. msm_routing_put_audio_mixer),
  19252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  19253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  19254. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  19255. msm_routing_get_audio_mixer,
  19256. msm_routing_put_audio_mixer),
  19257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19259. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  19260. msm_routing_get_audio_mixer,
  19261. msm_routing_put_audio_mixer),
  19262. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  19263. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  19264. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  19265. msm_routing_get_audio_mixer,
  19266. msm_routing_put_audio_mixer),
  19267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  19268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  19269. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  19270. msm_routing_get_audio_mixer,
  19271. msm_routing_put_audio_mixer),
  19272. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  19273. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  19274. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19275. msm_routing_put_audio_mixer),
  19276. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  19277. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  19278. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19279. msm_routing_put_audio_mixer),
  19280. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  19281. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  19282. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  19283. msm_routing_put_audio_mixer),
  19284. };
  19285. static const struct snd_kcontrol_new mmul31_mixer_controls[] = {
  19286. #ifndef CONFIG_TDM_DISABLE
  19287. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  19288. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  19289. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19290. msm_routing_put_audio_mixer),
  19291. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  19292. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  19293. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19294. msm_routing_put_audio_mixer),
  19295. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  19296. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  19297. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19298. msm_routing_put_audio_mixer),
  19299. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  19300. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  19301. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19302. msm_routing_put_audio_mixer),
  19303. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19304. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  19305. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19306. msm_routing_put_audio_mixer),
  19307. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19308. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  19309. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19310. msm_routing_put_audio_mixer),
  19311. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19312. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  19313. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19314. msm_routing_put_audio_mixer),
  19315. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19316. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  19317. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19318. msm_routing_put_audio_mixer),
  19319. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19320. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  19321. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19322. msm_routing_put_audio_mixer),
  19323. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19324. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  19325. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19326. msm_routing_put_audio_mixer),
  19327. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19328. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  19329. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19330. msm_routing_put_audio_mixer),
  19331. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19332. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  19333. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19334. msm_routing_put_audio_mixer),
  19335. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19336. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  19337. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19338. msm_routing_put_audio_mixer),
  19339. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19340. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  19341. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19342. msm_routing_put_audio_mixer),
  19343. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19344. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  19345. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19346. msm_routing_put_audio_mixer),
  19347. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19348. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  19349. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19350. msm_routing_put_audio_mixer),
  19351. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19352. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19353. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19354. msm_routing_put_audio_mixer),
  19355. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19356. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  19357. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19358. msm_routing_put_audio_mixer),
  19359. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19360. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  19361. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19362. msm_routing_put_audio_mixer),
  19363. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19364. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  19365. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  19366. msm_routing_put_audio_mixer),
  19367. #endif
  19368. };
  19369. static const struct snd_kcontrol_new mmul32_mixer_controls[] = {
  19370. #ifndef CONFIG_TDM_DISABLE
  19371. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  19372. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  19373. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19374. msm_routing_put_audio_mixer),
  19375. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  19377. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19378. msm_routing_put_audio_mixer),
  19379. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  19380. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  19381. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19382. msm_routing_put_audio_mixer),
  19383. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  19384. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  19385. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19386. msm_routing_put_audio_mixer),
  19387. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19388. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  19389. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19390. msm_routing_put_audio_mixer),
  19391. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19392. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  19393. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19394. msm_routing_put_audio_mixer),
  19395. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  19397. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19398. msm_routing_put_audio_mixer),
  19399. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19400. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  19401. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19402. msm_routing_put_audio_mixer),
  19403. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19404. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  19405. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19406. msm_routing_put_audio_mixer),
  19407. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19408. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  19409. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19410. msm_routing_put_audio_mixer),
  19411. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19412. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  19413. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19414. msm_routing_put_audio_mixer),
  19415. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19416. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  19417. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19418. msm_routing_put_audio_mixer),
  19419. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19420. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  19421. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19422. msm_routing_put_audio_mixer),
  19423. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19424. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  19425. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19426. msm_routing_put_audio_mixer),
  19427. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19428. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  19429. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19430. msm_routing_put_audio_mixer),
  19431. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19432. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  19433. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19434. msm_routing_put_audio_mixer),
  19435. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19436. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19437. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19438. msm_routing_put_audio_mixer),
  19439. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19440. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  19441. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19442. msm_routing_put_audio_mixer),
  19443. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19444. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  19445. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19446. msm_routing_put_audio_mixer),
  19447. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19448. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  19449. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  19450. msm_routing_put_audio_mixer),
  19451. #endif
  19452. };
  19453. static const struct snd_kcontrol_new mmul33_mixer_controls[] = {
  19454. #ifndef CONFIG_TDM_DISABLE
  19455. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  19456. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  19457. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19458. msm_routing_put_audio_mixer),
  19459. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  19460. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  19461. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19462. msm_routing_put_audio_mixer),
  19463. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  19464. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  19465. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19466. msm_routing_put_audio_mixer),
  19467. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  19468. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  19469. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19470. msm_routing_put_audio_mixer),
  19471. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19472. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  19473. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19474. msm_routing_put_audio_mixer),
  19475. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19476. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  19477. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19478. msm_routing_put_audio_mixer),
  19479. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19480. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  19481. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19482. msm_routing_put_audio_mixer),
  19483. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19484. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  19485. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19486. msm_routing_put_audio_mixer),
  19487. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19488. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  19489. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19490. msm_routing_put_audio_mixer),
  19491. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19492. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  19493. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19494. msm_routing_put_audio_mixer),
  19495. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19496. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  19497. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19498. msm_routing_put_audio_mixer),
  19499. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19500. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  19501. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19502. msm_routing_put_audio_mixer),
  19503. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19504. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  19505. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19506. msm_routing_put_audio_mixer),
  19507. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19508. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  19509. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19510. msm_routing_put_audio_mixer),
  19511. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19512. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  19513. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19514. msm_routing_put_audio_mixer),
  19515. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19516. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  19517. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19518. msm_routing_put_audio_mixer),
  19519. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19520. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19521. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19522. msm_routing_put_audio_mixer),
  19523. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19524. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  19525. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19526. msm_routing_put_audio_mixer),
  19527. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19528. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  19529. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19530. msm_routing_put_audio_mixer),
  19531. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19532. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  19533. MSM_FRONTEND_DAI_MULTIMEDIA33, 1, 0, msm_routing_get_audio_mixer,
  19534. msm_routing_put_audio_mixer),
  19535. #endif
  19536. };
  19537. static const struct snd_kcontrol_new mmul34_mixer_controls[] = {
  19538. #ifndef CONFIG_TDM_DISABLE
  19539. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  19540. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  19541. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19542. msm_routing_put_audio_mixer),
  19543. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  19544. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  19545. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19546. msm_routing_put_audio_mixer),
  19547. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  19548. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  19549. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19550. msm_routing_put_audio_mixer),
  19551. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  19552. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  19553. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19554. msm_routing_put_audio_mixer),
  19555. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19556. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  19557. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19558. msm_routing_put_audio_mixer),
  19559. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19560. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  19561. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19562. msm_routing_put_audio_mixer),
  19563. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19564. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  19565. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19566. msm_routing_put_audio_mixer),
  19567. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19568. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  19569. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19570. msm_routing_put_audio_mixer),
  19571. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19572. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  19573. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19574. msm_routing_put_audio_mixer),
  19575. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19576. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  19577. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19578. msm_routing_put_audio_mixer),
  19579. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19580. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  19581. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19582. msm_routing_put_audio_mixer),
  19583. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19584. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  19585. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19586. msm_routing_put_audio_mixer),
  19587. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19588. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  19589. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19590. msm_routing_put_audio_mixer),
  19591. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19592. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  19593. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19594. msm_routing_put_audio_mixer),
  19595. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19596. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  19597. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19598. msm_routing_put_audio_mixer),
  19599. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19600. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  19601. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19602. msm_routing_put_audio_mixer),
  19603. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19604. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19605. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19606. msm_routing_put_audio_mixer),
  19607. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19608. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  19609. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19610. msm_routing_put_audio_mixer),
  19611. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19612. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  19613. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19614. msm_routing_put_audio_mixer),
  19615. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19616. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  19617. MSM_FRONTEND_DAI_MULTIMEDIA34, 1, 0, msm_routing_get_audio_mixer,
  19618. msm_routing_put_audio_mixer),
  19619. #endif
  19620. };
  19621. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  19622. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19623. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  19624. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19625. msm_routing_put_voice_mixer),
  19626. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19627. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  19628. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19629. msm_routing_put_voice_mixer),
  19630. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  19632. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19633. msm_routing_put_voice_mixer),
  19634. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  19636. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19637. msm_routing_put_voice_mixer),
  19638. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19639. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  19640. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19641. msm_routing_put_voice_mixer),
  19642. };
  19643. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  19644. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  19646. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19647. msm_routing_put_voice_mixer),
  19648. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19649. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  19650. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19651. msm_routing_put_voice_mixer),
  19652. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19653. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  19654. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19655. msm_routing_put_voice_mixer),
  19656. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19657. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  19658. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19659. msm_routing_put_voice_mixer),
  19660. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  19662. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19663. msm_routing_put_voice_mixer),
  19664. };
  19665. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  19666. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19667. MSM_BACKEND_DAI_USB_RX,
  19668. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19669. msm_routing_put_voice_mixer),
  19670. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19671. MSM_BACKEND_DAI_USB_RX,
  19672. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19673. msm_routing_put_voice_mixer),
  19674. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19675. MSM_BACKEND_DAI_USB_RX,
  19676. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19677. msm_routing_put_voice_mixer),
  19678. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19679. MSM_BACKEND_DAI_USB_RX,
  19680. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19681. msm_routing_put_voice_mixer),
  19682. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19683. MSM_BACKEND_DAI_USB_RX,
  19684. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19685. msm_routing_put_voice_mixer),
  19686. };
  19687. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  19688. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  19690. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19691. msm_routing_put_voice_mixer),
  19692. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19693. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  19694. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19695. msm_routing_put_voice_mixer),
  19696. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19697. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  19698. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19699. msm_routing_put_voice_mixer),
  19700. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19701. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  19702. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19703. msm_routing_put_voice_mixer),
  19704. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19705. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  19706. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19707. msm_routing_put_voice_mixer),
  19708. };
  19709. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  19710. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19711. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  19712. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19713. msm_routing_put_voice_mixer),
  19714. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19715. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  19716. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19717. msm_routing_put_voice_mixer),
  19718. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19719. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  19720. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19721. msm_routing_put_voice_mixer),
  19722. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19723. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  19724. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19725. msm_routing_put_voice_mixer),
  19726. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19727. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  19728. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19729. msm_routing_put_voice_mixer),
  19730. };
  19731. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  19732. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19733. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  19734. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19735. msm_routing_put_voice_mixer),
  19736. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19737. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  19738. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19739. msm_routing_put_voice_mixer),
  19740. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19741. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  19742. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19743. msm_routing_put_voice_mixer),
  19744. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19745. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  19746. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19747. msm_routing_put_voice_mixer),
  19748. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19749. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  19750. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19751. msm_routing_put_voice_mixer),
  19752. };
  19753. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  19754. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19755. MSM_BACKEND_DAI_MI2S_RX,
  19756. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19757. msm_routing_put_voice_mixer),
  19758. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  19759. MSM_BACKEND_DAI_MI2S_RX,
  19760. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  19761. msm_routing_put_voice_mixer),
  19762. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  19763. MSM_BACKEND_DAI_MI2S_RX,
  19764. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  19765. msm_routing_put_voice_mixer),
  19766. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19767. MSM_BACKEND_DAI_MI2S_RX,
  19768. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19769. msm_routing_put_voice_mixer),
  19770. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19771. MSM_BACKEND_DAI_MI2S_RX,
  19772. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19773. msm_routing_put_voice_mixer),
  19774. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19775. MSM_BACKEND_DAI_MI2S_RX,
  19776. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19777. msm_routing_put_voice_mixer),
  19778. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19779. MSM_BACKEND_DAI_MI2S_RX,
  19780. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19781. msm_routing_put_voice_mixer),
  19782. };
  19783. #ifndef CONFIG_MI2S_DISABLE
  19784. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  19785. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19786. MSM_BACKEND_DAI_PRI_MI2S_RX,
  19787. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19788. msm_routing_put_voice_mixer),
  19789. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  19790. MSM_BACKEND_DAI_PRI_MI2S_RX,
  19791. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  19792. msm_routing_put_voice_mixer),
  19793. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  19794. MSM_BACKEND_DAI_PRI_MI2S_RX,
  19795. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  19796. msm_routing_put_voice_mixer),
  19797. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19798. MSM_BACKEND_DAI_PRI_MI2S_RX,
  19799. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19800. msm_routing_put_voice_mixer),
  19801. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_PRI_MI2S_RX,
  19803. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19804. msm_routing_put_voice_mixer),
  19805. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19806. MSM_BACKEND_DAI_PRI_MI2S_RX,
  19807. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19808. msm_routing_put_voice_mixer),
  19809. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19810. MSM_BACKEND_DAI_PRI_MI2S_RX,
  19811. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19812. msm_routing_put_voice_mixer),
  19813. };
  19814. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  19815. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19816. MSM_BACKEND_DAI_INT0_MI2S_RX,
  19817. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19818. msm_routing_put_voice_mixer),
  19819. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19820. MSM_BACKEND_DAI_INT0_MI2S_RX,
  19821. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19822. msm_routing_put_voice_mixer),
  19823. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19824. MSM_BACKEND_DAI_INT0_MI2S_RX,
  19825. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19826. msm_routing_put_voice_mixer),
  19827. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19828. MSM_BACKEND_DAI_INT0_MI2S_RX,
  19829. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19830. msm_routing_put_voice_mixer),
  19831. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19832. MSM_BACKEND_DAI_INT0_MI2S_RX,
  19833. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19834. msm_routing_put_voice_mixer),
  19835. };
  19836. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  19837. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19838. MSM_BACKEND_DAI_INT4_MI2S_RX,
  19839. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19840. msm_routing_put_voice_mixer),
  19841. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19842. MSM_BACKEND_DAI_INT4_MI2S_RX,
  19843. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19844. msm_routing_put_voice_mixer),
  19845. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19846. MSM_BACKEND_DAI_INT4_MI2S_RX,
  19847. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19848. msm_routing_put_voice_mixer),
  19849. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19850. MSM_BACKEND_DAI_INT4_MI2S_RX,
  19851. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19852. msm_routing_put_voice_mixer),
  19853. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19854. MSM_BACKEND_DAI_INT4_MI2S_RX,
  19855. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19856. msm_routing_put_voice_mixer),
  19857. };
  19858. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  19859. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19860. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19861. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19862. msm_routing_put_voice_mixer),
  19863. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  19864. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19865. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  19866. msm_routing_put_voice_mixer),
  19867. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  19868. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19869. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  19870. msm_routing_put_voice_mixer),
  19871. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19872. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19873. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19874. msm_routing_put_voice_mixer),
  19875. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19876. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19877. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19878. msm_routing_put_voice_mixer),
  19879. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19880. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19881. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19882. msm_routing_put_voice_mixer),
  19883. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19884. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19885. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19886. msm_routing_put_voice_mixer),
  19887. };
  19888. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  19889. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  19891. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19892. msm_routing_put_voice_mixer),
  19893. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  19894. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  19895. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  19896. msm_routing_put_voice_mixer),
  19897. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  19898. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  19899. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  19900. msm_routing_put_voice_mixer),
  19901. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19902. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  19903. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19904. msm_routing_put_voice_mixer),
  19905. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19906. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  19907. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19908. msm_routing_put_voice_mixer),
  19909. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  19911. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19912. msm_routing_put_voice_mixer),
  19913. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19914. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  19915. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19916. msm_routing_put_voice_mixer),
  19917. };
  19918. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  19919. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19920. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  19921. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19922. msm_routing_put_voice_mixer),
  19923. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  19924. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  19925. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  19926. msm_routing_put_voice_stub_mixer),
  19927. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  19928. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  19929. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  19930. msm_routing_put_voice_stub_mixer),
  19931. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19932. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  19933. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19934. msm_routing_put_voice_mixer),
  19935. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19936. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  19937. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19938. msm_routing_put_voice_mixer),
  19939. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19940. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  19941. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19942. msm_routing_put_voice_mixer),
  19943. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19944. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  19945. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19946. msm_routing_put_voice_mixer),
  19947. };
  19948. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  19949. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19950. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  19951. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19952. msm_routing_put_voice_mixer),
  19953. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19954. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  19955. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19956. msm_routing_put_voice_mixer),
  19957. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19958. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  19959. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19960. msm_routing_put_voice_mixer),
  19961. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19962. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  19963. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19964. msm_routing_put_voice_mixer),
  19965. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19966. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  19967. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19968. msm_routing_put_voice_mixer),
  19969. };
  19970. #endif
  19971. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  19972. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19973. MSM_BACKEND_DAI_AFE_PCM_RX,
  19974. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19975. msm_routing_put_voice_mixer),
  19976. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19977. MSM_BACKEND_DAI_AFE_PCM_RX,
  19978. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  19979. msm_routing_put_voice_mixer),
  19980. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  19981. MSM_BACKEND_DAI_AFE_PCM_RX,
  19982. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  19983. msm_routing_put_voice_mixer),
  19984. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  19985. MSM_BACKEND_DAI_AFE_PCM_RX,
  19986. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  19987. msm_routing_put_voice_mixer),
  19988. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  19989. MSM_BACKEND_DAI_AFE_PCM_RX,
  19990. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  19991. msm_routing_put_voice_mixer),
  19992. };
  19993. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  19994. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  19995. MSM_BACKEND_DAI_AUXPCM_RX,
  19996. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  19997. msm_routing_put_voice_mixer),
  19998. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  19999. MSM_BACKEND_DAI_AUXPCM_RX,
  20000. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20001. msm_routing_put_voice_mixer),
  20002. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20003. MSM_BACKEND_DAI_AUXPCM_RX,
  20004. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20005. msm_routing_put_voice_mixer),
  20006. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20007. MSM_BACKEND_DAI_AUXPCM_RX,
  20008. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20009. msm_routing_put_voice_mixer),
  20010. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20011. MSM_BACKEND_DAI_AUXPCM_RX,
  20012. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20013. msm_routing_put_voice_mixer),
  20014. };
  20015. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  20016. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20017. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  20018. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20019. msm_routing_put_voice_mixer),
  20020. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20021. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  20022. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20023. msm_routing_put_voice_mixer),
  20024. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20025. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  20026. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20027. msm_routing_put_voice_mixer),
  20028. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20029. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  20030. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20031. msm_routing_put_voice_mixer),
  20032. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20033. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  20034. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20035. msm_routing_put_voice_mixer),
  20036. };
  20037. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  20038. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20039. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  20040. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20041. msm_routing_put_voice_mixer),
  20042. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20043. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  20044. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20045. msm_routing_put_voice_mixer),
  20046. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20047. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  20048. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20049. msm_routing_put_voice_mixer),
  20050. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20051. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  20052. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20053. msm_routing_put_voice_mixer),
  20054. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20055. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  20056. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20057. msm_routing_put_voice_mixer),
  20058. };
  20059. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  20060. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20061. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  20062. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20063. msm_routing_put_voice_mixer),
  20064. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20065. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  20066. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20067. msm_routing_put_voice_mixer),
  20068. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20069. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  20070. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20071. msm_routing_put_voice_mixer),
  20072. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20073. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  20074. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20075. msm_routing_put_voice_mixer),
  20076. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20077. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  20078. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20079. msm_routing_put_voice_mixer),
  20080. };
  20081. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  20082. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20083. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  20084. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20085. msm_routing_put_voice_mixer),
  20086. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20087. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  20088. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20089. msm_routing_put_voice_mixer),
  20090. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20091. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  20092. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20093. msm_routing_put_voice_mixer),
  20094. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20095. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  20096. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20097. msm_routing_put_voice_mixer),
  20098. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20099. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  20100. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20101. msm_routing_put_voice_mixer),
  20102. };
  20103. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  20104. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  20105. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20106. msm_routing_put_voice_mixer),
  20107. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  20108. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20109. msm_routing_put_voice_mixer),
  20110. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  20111. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20112. msm_routing_put_voice_mixer),
  20113. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20114. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  20115. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20116. msm_routing_put_voice_mixer),
  20117. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20118. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  20119. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20120. msm_routing_put_voice_mixer),
  20121. };
  20122. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  20123. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20124. MSM_BACKEND_DAI_HDMI_RX,
  20125. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20126. msm_routing_put_voice_mixer),
  20127. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20128. MSM_BACKEND_DAI_HDMI_RX,
  20129. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20130. msm_routing_put_voice_mixer),
  20131. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20132. MSM_BACKEND_DAI_HDMI_RX,
  20133. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20134. msm_routing_put_voice_mixer),
  20135. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20136. MSM_BACKEND_DAI_HDMI_RX,
  20137. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20138. msm_routing_put_voice_mixer),
  20139. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20140. MSM_BACKEND_DAI_HDMI_RX,
  20141. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20142. msm_routing_put_voice_mixer),
  20143. };
  20144. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  20145. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20146. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  20147. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20148. msm_routing_put_voice_mixer),
  20149. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20150. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  20151. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20152. msm_routing_put_voice_mixer),
  20153. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20154. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  20155. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20156. msm_routing_put_voice_mixer),
  20157. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20158. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  20159. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20160. msm_routing_put_voice_mixer),
  20161. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20162. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  20163. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20164. msm_routing_put_voice_mixer),
  20165. };
  20166. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  20167. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20168. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  20169. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20170. msm_routing_put_voice_mixer),
  20171. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20172. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  20173. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20174. msm_routing_put_voice_mixer),
  20175. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20176. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  20177. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20178. msm_routing_put_voice_mixer),
  20179. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20180. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  20181. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20182. msm_routing_put_voice_mixer),
  20183. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20184. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  20185. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20186. msm_routing_put_voice_mixer),
  20187. };
  20188. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  20189. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20190. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  20191. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20192. msm_routing_put_voice_mixer),
  20193. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20194. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  20195. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20196. msm_routing_put_voice_mixer),
  20197. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20198. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  20199. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20200. msm_routing_put_voice_mixer),
  20201. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20202. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  20203. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20204. msm_routing_put_voice_mixer),
  20205. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20206. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  20207. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20208. msm_routing_put_voice_mixer),
  20209. };
  20210. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  20211. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  20213. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20214. msm_routing_put_voice_mixer),
  20215. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20216. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  20217. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20218. msm_routing_put_voice_mixer),
  20219. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20220. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  20221. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20222. msm_routing_put_voice_mixer),
  20223. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20224. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  20225. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20226. msm_routing_put_voice_mixer),
  20227. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20228. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  20229. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20230. msm_routing_put_voice_mixer),
  20231. };
  20232. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  20233. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20234. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  20235. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20236. msm_routing_put_voice_mixer),
  20237. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20238. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  20239. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20240. msm_routing_put_voice_mixer),
  20241. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20242. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  20243. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20244. msm_routing_put_voice_mixer),
  20245. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20246. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  20247. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20248. msm_routing_put_voice_mixer),
  20249. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20250. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  20251. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20252. msm_routing_put_voice_mixer),
  20253. };
  20254. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  20255. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20256. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  20257. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20258. msm_routing_put_voice_mixer),
  20259. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20260. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  20261. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20262. msm_routing_put_voice_mixer),
  20263. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20264. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  20265. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20266. msm_routing_put_voice_mixer),
  20267. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20268. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  20269. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20270. msm_routing_put_voice_mixer),
  20271. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20272. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  20273. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20274. msm_routing_put_voice_mixer),
  20275. };
  20276. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  20277. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20278. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  20279. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20280. msm_routing_put_voice_mixer),
  20281. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20282. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  20283. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20284. msm_routing_put_voice_mixer),
  20285. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20286. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  20287. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20288. msm_routing_put_voice_mixer),
  20289. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20290. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  20291. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20292. msm_routing_put_voice_mixer),
  20293. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  20295. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20296. msm_routing_put_voice_mixer),
  20297. };
  20298. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  20299. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20300. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  20301. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20302. msm_routing_put_voice_mixer),
  20303. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20304. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  20305. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20306. msm_routing_put_voice_mixer),
  20307. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20308. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  20309. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20310. msm_routing_put_voice_mixer),
  20311. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20312. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  20313. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20314. msm_routing_put_voice_mixer),
  20315. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20316. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  20317. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20318. msm_routing_put_voice_mixer),
  20319. };
  20320. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  20321. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20322. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  20323. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20324. msm_routing_put_voice_mixer),
  20325. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20326. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  20327. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20328. msm_routing_put_voice_mixer),
  20329. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20330. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  20331. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20332. msm_routing_put_voice_mixer),
  20333. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20334. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  20335. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20336. msm_routing_put_voice_mixer),
  20337. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20338. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  20339. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20340. msm_routing_put_voice_mixer),
  20341. };
  20342. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  20343. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20344. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  20345. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20346. msm_routing_put_voice_mixer),
  20347. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20348. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  20349. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20350. msm_routing_put_voice_mixer),
  20351. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20352. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  20353. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20354. msm_routing_put_voice_mixer),
  20355. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20356. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  20357. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20358. msm_routing_put_voice_mixer),
  20359. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20360. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  20361. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20362. msm_routing_put_voice_mixer),
  20363. };
  20364. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  20365. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20366. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  20367. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20368. msm_routing_put_voice_mixer),
  20369. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20370. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  20371. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20372. msm_routing_put_voice_mixer),
  20373. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20374. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  20375. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20376. msm_routing_put_voice_mixer),
  20377. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20378. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  20379. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20380. msm_routing_put_voice_mixer),
  20381. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20382. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  20383. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20384. msm_routing_put_voice_mixer),
  20385. };
  20386. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  20387. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  20388. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  20389. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20390. msm_routing_put_voice_mixer),
  20391. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  20392. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  20393. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  20394. msm_routing_put_voice_mixer),
  20395. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  20396. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  20397. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  20398. msm_routing_put_voice_mixer),
  20399. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20400. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  20401. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20402. msm_routing_put_voice_mixer),
  20403. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  20405. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20406. msm_routing_put_voice_mixer),
  20407. };
  20408. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  20409. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20410. MSM_BACKEND_DAI_EXTPROC_RX,
  20411. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20412. msm_routing_put_voice_mixer),
  20413. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20414. MSM_BACKEND_DAI_EXTPROC_RX,
  20415. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20416. msm_routing_put_voice_mixer),
  20417. };
  20418. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  20419. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20420. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  20421. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20422. msm_routing_put_voice_mixer),
  20423. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20424. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  20425. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20426. msm_routing_put_voice_mixer),
  20427. };
  20428. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  20429. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20430. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  20431. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20432. msm_routing_put_voice_mixer),
  20433. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20434. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  20435. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20436. msm_routing_put_voice_mixer),
  20437. };
  20438. static const struct snd_kcontrol_new proxy_rx_voice_mixer_controls[] = {
  20439. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  20440. MSM_BACKEND_DAI_PROXY_RX,
  20441. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20442. msm_routing_put_voice_mixer),
  20443. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  20444. MSM_BACKEND_DAI_PROXY_RX,
  20445. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20446. msm_routing_put_voice_mixer),
  20447. };
  20448. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  20449. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  20450. MSM_BACKEND_DAI_PRI_I2S_TX,
  20451. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20452. msm_routing_put_voice_mixer),
  20453. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  20454. MSM_BACKEND_DAI_MI2S_TX,
  20455. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20456. msm_routing_put_voice_mixer),
  20457. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  20458. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  20459. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20460. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  20462. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20463. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  20464. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  20465. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20466. #ifndef CONFIG_AUXPCM_DISABLE
  20467. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  20468. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  20469. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20470. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  20471. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  20472. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20473. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  20474. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  20475. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20476. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  20477. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  20478. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20479. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  20480. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  20481. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20482. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  20483. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  20484. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20485. #endif
  20486. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  20487. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  20488. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20489. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  20490. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  20491. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20492. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  20493. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  20494. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20495. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  20496. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  20497. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20498. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  20499. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  20500. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20501. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  20502. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  20503. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20504. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  20505. MSM_BACKEND_DAI_USB_TX,
  20506. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  20507. msm_routing_put_voice_mixer),
  20508. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  20509. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  20510. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20511. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  20512. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  20513. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20514. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  20515. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  20516. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20517. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  20518. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  20519. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20520. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  20521. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  20522. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20523. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  20524. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  20525. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20526. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  20527. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  20528. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  20530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  20531. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20532. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  20533. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  20534. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20535. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  20536. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  20537. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20538. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  20539. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  20540. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20541. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  20542. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  20543. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20544. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  20545. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  20546. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20547. SOC_DOUBLE_EXT("PROXY_TX_MMode1", SND_SOC_NOPM,
  20548. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  20549. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20550. };
  20551. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  20552. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  20553. MSM_BACKEND_DAI_PRI_I2S_TX,
  20554. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20555. msm_routing_put_voice_mixer),
  20556. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  20557. MSM_BACKEND_DAI_MI2S_TX,
  20558. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  20559. msm_routing_put_voice_mixer),
  20560. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  20561. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20562. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20563. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  20564. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20565. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20566. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  20567. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  20568. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20569. #ifndef CONFIG_AUXPCM_DISABLE
  20570. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  20571. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  20572. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20573. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  20574. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20575. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20576. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  20577. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20578. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20579. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  20580. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20581. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20582. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  20583. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20584. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20585. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  20586. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20587. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20588. #endif
  20589. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  20590. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  20591. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20592. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  20593. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  20594. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20595. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  20596. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  20597. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20598. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  20599. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  20600. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20601. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  20602. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20603. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20604. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  20605. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20606. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20607. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  20608. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  20609. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20610. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  20611. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  20612. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20613. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  20614. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  20615. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20616. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  20617. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  20618. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  20620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  20621. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  20623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  20624. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20625. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  20626. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  20627. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20628. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  20629. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  20630. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20631. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  20632. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  20633. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20634. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  20635. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  20636. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20637. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  20638. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  20639. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20640. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  20641. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  20642. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20643. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  20644. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  20645. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20646. SOC_DOUBLE_EXT("PROXY_TX_MMode2", SND_SOC_NOPM,
  20647. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  20648. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20649. };
  20650. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  20651. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  20652. MSM_BACKEND_DAI_PRI_I2S_TX,
  20653. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20654. msm_routing_put_voice_mixer),
  20655. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  20656. MSM_BACKEND_DAI_MI2S_TX,
  20657. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20658. msm_routing_put_voice_mixer),
  20659. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  20660. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20661. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20662. msm_routing_put_voice_mixer),
  20663. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  20664. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  20665. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20666. msm_routing_put_voice_mixer),
  20667. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  20668. MSM_BACKEND_DAI_AFE_PCM_TX,
  20669. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20670. msm_routing_put_voice_mixer),
  20671. #ifndef CONFIG_AUXPCM_DISABLE
  20672. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  20673. MSM_BACKEND_DAI_AUXPCM_TX,
  20674. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20675. msm_routing_put_voice_mixer),
  20676. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  20677. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  20678. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20679. msm_routing_put_voice_mixer),
  20680. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  20681. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  20682. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20683. msm_routing_put_voice_mixer),
  20684. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  20685. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  20686. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20687. msm_routing_put_voice_mixer),
  20688. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  20689. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  20690. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20691. msm_routing_put_voice_mixer),
  20692. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  20693. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  20694. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20695. msm_routing_put_voice_mixer),
  20696. #endif
  20697. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  20698. MSM_BACKEND_DAI_PRI_MI2S_TX,
  20699. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20700. msm_routing_put_voice_mixer),
  20701. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  20702. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  20703. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20704. msm_routing_put_voice_mixer),
  20705. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  20706. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20707. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20708. msm_routing_put_voice_mixer),
  20709. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  20710. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20711. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20712. msm_routing_put_voice_mixer),
  20713. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  20714. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  20715. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20716. msm_routing_put_voice_mixer),
  20717. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  20718. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  20719. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20720. msm_routing_put_voice_mixer),
  20721. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  20722. MSM_BACKEND_DAI_USB_TX,
  20723. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20724. msm_routing_put_voice_mixer),
  20725. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  20726. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  20727. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20728. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  20729. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  20730. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20731. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  20732. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  20733. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20734. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  20735. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  20736. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  20738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  20739. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20740. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  20741. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  20742. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  20744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  20745. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  20747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  20748. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20749. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  20750. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  20751. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  20752. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  20753. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  20754. msm_routing_put_voice_mixer),
  20755. };
  20756. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  20757. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  20758. MSM_BACKEND_DAI_EXTPROC_TX,
  20759. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20760. msm_routing_put_voice_stub_mixer),
  20761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20762. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  20763. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20764. msm_routing_put_voice_stub_mixer),
  20765. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  20766. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20767. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20768. msm_routing_put_voice_stub_mixer),
  20769. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  20770. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  20771. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20772. msm_routing_put_voice_stub_mixer),
  20773. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  20774. MSM_BACKEND_DAI_MI2S_TX,
  20775. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20776. msm_routing_put_voice_stub_mixer),
  20777. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20778. MSM_BACKEND_DAI_PRI_MI2S_TX,
  20779. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20780. msm_routing_put_voice_stub_mixer),
  20781. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20782. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20783. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20784. msm_routing_put_voice_stub_mixer),
  20785. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20786. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20787. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20788. msm_routing_put_voice_stub_mixer),
  20789. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20790. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20791. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20792. msm_routing_put_voice_stub_mixer),
  20793. #ifndef CONFIG_AUXPCM_DISABLE
  20794. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20795. MSM_BACKEND_DAI_AUXPCM_TX,
  20796. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20797. msm_routing_put_voice_stub_mixer),
  20798. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20799. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  20800. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20801. msm_routing_put_voice_stub_mixer),
  20802. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  20803. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  20804. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20805. msm_routing_put_voice_stub_mixer),
  20806. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  20807. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  20808. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20809. msm_routing_put_voice_stub_mixer),
  20810. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  20811. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  20812. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20813. msm_routing_put_voice_stub_mixer),
  20814. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  20815. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  20816. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20817. msm_routing_put_voice_stub_mixer),
  20818. #endif
  20819. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20820. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20821. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20822. msm_routing_put_voice_stub_mixer),
  20823. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  20824. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20825. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20826. msm_routing_put_voice_stub_mixer),
  20827. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20828. MSM_BACKEND_DAI_AFE_PCM_TX,
  20829. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20830. msm_routing_put_voice_stub_mixer),
  20831. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  20832. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  20833. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20834. msm_routing_put_voice_stub_mixer),
  20835. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20836. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  20837. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20838. msm_routing_put_voice_stub_mixer),
  20839. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20840. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  20841. 1, 0, msm_routing_get_voice_stub_mixer,
  20842. msm_routing_put_voice_stub_mixer),
  20843. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20844. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  20845. 1, 0, msm_routing_get_voice_stub_mixer,
  20846. msm_routing_put_voice_stub_mixer),
  20847. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20848. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  20849. 1, 0, msm_routing_get_voice_stub_mixer,
  20850. msm_routing_put_voice_stub_mixer),
  20851. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  20852. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  20853. 1, 0, msm_routing_get_voice_stub_mixer,
  20854. msm_routing_put_voice_stub_mixer),
  20855. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  20856. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  20857. 1, 0, msm_routing_get_voice_stub_mixer,
  20858. msm_routing_put_voice_stub_mixer),
  20859. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  20860. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  20861. 1, 0, msm_routing_get_voice_stub_mixer,
  20862. msm_routing_put_voice_stub_mixer),
  20863. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20864. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  20865. 1, 0, msm_routing_get_voice_stub_mixer,
  20866. msm_routing_put_voice_stub_mixer),
  20867. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  20868. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  20869. 1, 0, msm_routing_get_voice_stub_mixer,
  20870. msm_routing_put_voice_stub_mixer),
  20871. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  20872. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  20873. 1, 0, msm_routing_get_voice_stub_mixer,
  20874. msm_routing_put_voice_stub_mixer),
  20875. };
  20876. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  20877. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  20878. MSM_BACKEND_DAI_EXTPROC_TX,
  20879. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20880. msm_routing_put_voice_stub_mixer),
  20881. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  20882. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20883. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20884. msm_routing_put_voice_stub_mixer),
  20885. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  20886. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  20887. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20888. msm_routing_put_voice_stub_mixer),
  20889. #ifndef CONFIG_AUXPCM_DISABLE
  20890. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20891. MSM_BACKEND_DAI_AUXPCM_TX,
  20892. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20893. msm_routing_put_voice_stub_mixer),
  20894. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20895. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  20896. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20897. msm_routing_put_voice_stub_mixer),
  20898. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  20899. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  20900. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20901. msm_routing_put_voice_stub_mixer),
  20902. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  20903. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  20904. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20905. msm_routing_put_voice_stub_mixer),
  20906. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  20907. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  20908. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20909. msm_routing_put_voice_stub_mixer),
  20910. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  20911. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  20912. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20913. msm_routing_put_voice_stub_mixer),
  20914. #endif
  20915. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20916. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20917. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20918. msm_routing_put_voice_stub_mixer),
  20919. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  20920. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20921. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20922. msm_routing_put_voice_stub_mixer),
  20923. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20924. MSM_BACKEND_DAI_AFE_PCM_TX,
  20925. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20926. msm_routing_put_voice_stub_mixer),
  20927. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20928. MSM_BACKEND_DAI_PRI_MI2S_TX,
  20929. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20930. msm_routing_put_voice_stub_mixer),
  20931. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20932. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20933. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20934. msm_routing_put_voice_stub_mixer),
  20935. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20936. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20937. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20938. msm_routing_put_voice_stub_mixer),
  20939. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  20940. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  20941. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20942. msm_routing_put_voice_stub_mixer),
  20943. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20944. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  20945. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20946. msm_routing_put_voice_stub_mixer),
  20947. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20948. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  20949. 1, 0, msm_routing_get_voice_stub_mixer,
  20950. msm_routing_put_voice_stub_mixer),
  20951. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20952. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  20953. 1, 0, msm_routing_get_voice_stub_mixer,
  20954. msm_routing_put_voice_stub_mixer),
  20955. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20956. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  20957. 1, 0, msm_routing_get_voice_stub_mixer,
  20958. msm_routing_put_voice_stub_mixer),
  20959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  20960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  20961. 1, 0, msm_routing_get_voice_stub_mixer,
  20962. msm_routing_put_voice_stub_mixer),
  20963. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  20964. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  20965. 1, 0, msm_routing_get_voice_stub_mixer,
  20966. msm_routing_put_voice_stub_mixer),
  20967. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  20968. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  20969. 1, 0, msm_routing_get_voice_stub_mixer,
  20970. msm_routing_put_voice_stub_mixer),
  20971. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20972. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  20973. 1, 0, msm_routing_get_voice_stub_mixer,
  20974. msm_routing_put_voice_stub_mixer),
  20975. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  20976. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  20977. 1, 0, msm_routing_get_voice_stub_mixer,
  20978. msm_routing_put_voice_stub_mixer),
  20979. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  20980. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  20981. 1, 0, msm_routing_get_voice_stub_mixer,
  20982. msm_routing_put_voice_stub_mixer),
  20983. };
  20984. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  20985. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  20986. MSM_BACKEND_DAI_EXTPROC_TX,
  20987. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20988. msm_routing_put_voice_stub_mixer),
  20989. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  20990. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20991. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20992. msm_routing_put_voice_stub_mixer),
  20993. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  20994. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  20995. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  20996. msm_routing_put_voice_stub_mixer),
  20997. #ifndef CONFIG_AUXPCM_DISABLE
  20998. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20999. MSM_BACKEND_DAI_AUXPCM_TX,
  21000. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21001. msm_routing_put_voice_stub_mixer),
  21002. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21003. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  21004. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21005. msm_routing_put_voice_stub_mixer),
  21006. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  21007. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  21008. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21009. msm_routing_put_voice_stub_mixer),
  21010. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  21011. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  21012. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21013. msm_routing_put_voice_stub_mixer),
  21014. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  21015. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  21016. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21017. msm_routing_put_voice_stub_mixer),
  21018. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  21019. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  21020. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21021. msm_routing_put_voice_stub_mixer),
  21022. #endif
  21023. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21024. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21025. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21026. msm_routing_put_voice_stub_mixer),
  21027. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  21028. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21029. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21030. msm_routing_put_voice_stub_mixer),
  21031. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  21032. MSM_BACKEND_DAI_AFE_PCM_TX,
  21033. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21034. msm_routing_put_voice_stub_mixer),
  21035. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21036. MSM_BACKEND_DAI_PRI_MI2S_TX,
  21037. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21038. msm_routing_put_voice_stub_mixer),
  21039. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21040. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21041. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21042. msm_routing_put_voice_stub_mixer),
  21043. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  21044. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  21045. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21046. msm_routing_put_voice_stub_mixer),
  21047. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21048. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  21049. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  21050. msm_routing_put_voice_stub_mixer),
  21051. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21052. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  21053. 1, 0, msm_routing_get_voice_stub_mixer,
  21054. msm_routing_put_voice_stub_mixer),
  21055. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21056. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  21057. 1, 0, msm_routing_get_voice_stub_mixer,
  21058. msm_routing_put_voice_stub_mixer),
  21059. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21060. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  21061. 1, 0, msm_routing_get_voice_stub_mixer,
  21062. msm_routing_put_voice_stub_mixer),
  21063. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  21064. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  21065. 1, 0, msm_routing_get_voice_stub_mixer,
  21066. msm_routing_put_voice_stub_mixer),
  21067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  21068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  21069. 1, 0, msm_routing_get_voice_stub_mixer,
  21070. msm_routing_put_voice_stub_mixer),
  21071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  21072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  21073. 1, 0, msm_routing_get_voice_stub_mixer,
  21074. msm_routing_put_voice_stub_mixer),
  21075. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21076. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  21077. 1, 0, msm_routing_get_voice_stub_mixer,
  21078. msm_routing_put_voice_stub_mixer),
  21079. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  21080. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  21081. 1, 0, msm_routing_get_voice_stub_mixer,
  21082. msm_routing_put_voice_stub_mixer),
  21083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  21084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  21085. 1, 0, msm_routing_get_voice_stub_mixer,
  21086. msm_routing_put_voice_stub_mixer),
  21087. };
  21088. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  21089. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  21090. MSM_BACKEND_DAI_PRI_I2S_TX,
  21091. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21092. msm_routing_put_voice_mixer),
  21093. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  21094. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21095. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21096. msm_routing_put_voice_mixer),
  21097. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  21098. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  21099. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  21100. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21101. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  21102. MSM_BACKEND_DAI_AFE_PCM_TX,
  21103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21104. msm_routing_put_voice_mixer),
  21105. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  21106. MSM_BACKEND_DAI_AUXPCM_TX,
  21107. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21108. msm_routing_put_voice_mixer),
  21109. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  21110. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  21111. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21112. msm_routing_put_voice_mixer),
  21113. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  21114. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  21115. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21116. msm_routing_put_voice_mixer),
  21117. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  21118. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  21119. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21120. msm_routing_put_voice_mixer),
  21121. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  21122. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  21123. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21124. msm_routing_put_voice_mixer),
  21125. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  21126. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  21127. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21128. msm_routing_put_voice_mixer),
  21129. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  21130. MSM_BACKEND_DAI_MI2S_TX,
  21131. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21132. msm_routing_put_voice_mixer),
  21133. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  21134. MSM_BACKEND_DAI_PRI_MI2S_TX,
  21135. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21136. msm_routing_put_voice_mixer),
  21137. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  21138. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21139. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21140. msm_routing_put_voice_mixer),
  21141. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  21142. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21143. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21144. msm_routing_put_voice_mixer),
  21145. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  21146. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  21147. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21148. msm_routing_put_voice_mixer),
  21149. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  21150. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  21151. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21152. msm_routing_put_voice_mixer),
  21153. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  21154. MSM_BACKEND_DAI_USB_TX,
  21155. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  21156. msm_routing_put_voice_mixer),
  21157. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  21158. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  21159. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21160. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  21161. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  21162. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  21164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  21165. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21166. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  21167. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  21168. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21169. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  21170. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  21171. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21172. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  21173. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  21174. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  21176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  21177. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  21179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  21180. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21181. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  21182. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  21183. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  21184. };
  21185. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  21186. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21187. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  21188. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  21189. msm_routing_put_port_mixer),
  21190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21191. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  21192. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  21193. msm_routing_put_port_mixer),
  21194. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21195. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  21196. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21197. msm_routing_put_port_mixer),
  21198. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21199. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  21200. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21201. msm_routing_put_port_mixer),
  21202. };
  21203. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  21204. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21205. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  21206. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  21207. msm_routing_put_port_mixer),
  21208. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21209. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  21210. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21211. msm_routing_put_port_mixer),
  21212. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  21213. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  21214. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  21215. msm_routing_put_port_mixer),
  21216. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21217. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  21218. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21219. msm_routing_put_port_mixer),
  21220. };
  21221. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  21222. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21223. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  21224. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  21225. msm_routing_put_port_mixer),
  21226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  21228. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  21229. msm_routing_put_port_mixer),
  21230. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21231. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  21232. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21233. msm_routing_put_port_mixer),
  21234. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21235. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  21236. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21237. msm_routing_put_port_mixer),
  21238. };
  21239. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  21240. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21241. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21242. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21243. msm_routing_put_port_mixer),
  21244. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21245. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21246. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21247. msm_routing_put_port_mixer),
  21248. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  21249. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21250. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  21251. msm_routing_put_port_mixer),
  21252. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  21253. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21254. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  21255. msm_routing_put_port_mixer),
  21256. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21257. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21258. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21259. msm_routing_put_port_mixer),
  21260. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21261. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21262. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21263. msm_routing_put_port_mixer),
  21264. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21265. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21266. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21267. msm_routing_put_port_mixer),
  21268. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  21269. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21270. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21271. msm_routing_put_port_mixer),
  21272. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  21273. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21274. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21275. msm_routing_put_port_mixer),
  21276. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  21277. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21278. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21279. msm_routing_put_port_mixer),
  21280. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  21281. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21282. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21283. msm_routing_put_port_mixer),
  21284. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  21285. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21286. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21287. msm_routing_put_port_mixer),
  21288. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21289. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21290. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21291. msm_routing_put_port_mixer),
  21292. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21293. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21294. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21295. msm_routing_put_port_mixer),
  21296. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21297. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21298. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21299. msm_routing_put_port_mixer),
  21300. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21301. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21302. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21303. msm_routing_put_port_mixer),
  21304. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21305. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21306. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21307. msm_routing_put_port_mixer),
  21308. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21309. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21310. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21311. msm_routing_put_port_mixer),
  21312. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  21313. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21314. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  21315. msm_routing_put_port_mixer),
  21316. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  21317. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21318. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  21319. msm_routing_put_port_mixer),
  21320. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  21321. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21322. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  21323. msm_routing_put_port_mixer),
  21324. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  21325. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21326. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  21327. msm_routing_put_port_mixer),
  21328. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  21329. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21330. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  21331. msm_routing_put_port_mixer),
  21332. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  21333. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21334. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  21335. msm_routing_put_port_mixer),
  21336. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  21337. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21338. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  21339. msm_routing_put_port_mixer),
  21340. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  21341. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  21342. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  21343. msm_routing_put_port_mixer),
  21344. };
  21345. #ifndef CONFIG_AUXPCM_DISABLE
  21346. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  21347. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21348. MSM_BACKEND_DAI_AUXPCM_RX,
  21349. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21350. msm_routing_put_port_mixer),
  21351. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21352. MSM_BACKEND_DAI_AUXPCM_RX,
  21353. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21354. msm_routing_put_port_mixer),
  21355. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  21356. MSM_BACKEND_DAI_AUXPCM_RX,
  21357. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  21358. msm_routing_put_port_mixer),
  21359. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21360. MSM_BACKEND_DAI_AUXPCM_RX,
  21361. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21362. msm_routing_put_port_mixer),
  21363. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  21364. MSM_BACKEND_DAI_AUXPCM_RX,
  21365. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  21366. msm_routing_put_port_mixer),
  21367. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21368. MSM_BACKEND_DAI_AUXPCM_RX,
  21369. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21370. msm_routing_put_port_mixer),
  21371. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21372. MSM_BACKEND_DAI_AUXPCM_RX,
  21373. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  21374. msm_routing_put_port_mixer),
  21375. };
  21376. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  21377. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21378. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  21379. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21380. msm_routing_put_port_mixer),
  21381. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21382. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  21383. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21384. msm_routing_put_port_mixer),
  21385. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21386. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  21387. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21388. msm_routing_put_port_mixer),
  21389. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21390. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  21391. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21392. msm_routing_put_port_mixer),
  21393. };
  21394. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  21395. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  21396. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  21397. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21398. msm_routing_put_port_mixer),
  21399. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21400. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  21401. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21402. msm_routing_put_port_mixer),
  21403. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21404. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  21405. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21406. msm_routing_put_port_mixer),
  21407. };
  21408. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  21409. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  21410. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  21411. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21412. msm_routing_put_port_mixer),
  21413. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21414. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  21415. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21416. msm_routing_put_port_mixer),
  21417. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21418. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  21419. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21420. msm_routing_put_port_mixer),
  21421. };
  21422. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  21423. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  21424. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  21425. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21426. msm_routing_put_port_mixer),
  21427. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21428. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  21429. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21430. msm_routing_put_port_mixer),
  21431. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21432. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  21433. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21434. msm_routing_put_port_mixer),
  21435. };
  21436. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  21437. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  21438. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  21439. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21440. msm_routing_put_port_mixer),
  21441. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21442. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  21443. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21444. msm_routing_put_port_mixer),
  21445. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21446. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  21447. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21448. msm_routing_put_port_mixer),
  21449. };
  21450. #endif
  21451. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  21452. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  21453. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  21454. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  21455. msm_routing_put_port_mixer),
  21456. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  21457. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  21458. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  21459. msm_routing_put_port_mixer),
  21460. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21461. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  21462. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21463. msm_routing_put_port_mixer),
  21464. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21465. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  21466. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21467. msm_routing_put_port_mixer),
  21468. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  21469. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  21470. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21471. msm_routing_put_port_mixer),
  21472. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  21473. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  21474. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21475. msm_routing_put_port_mixer),
  21476. };
  21477. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  21478. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  21479. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  21480. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  21481. msm_routing_put_port_mixer),
  21482. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  21483. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  21484. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21485. msm_routing_put_port_mixer),
  21486. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  21487. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  21488. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  21489. msm_routing_put_port_mixer),
  21490. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  21491. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  21492. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  21493. msm_routing_put_port_mixer),
  21494. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  21495. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  21496. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  21497. msm_routing_put_port_mixer),
  21498. };
  21499. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  21500. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21501. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21502. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21503. msm_routing_put_port_mixer),
  21504. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21505. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21506. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21507. msm_routing_put_port_mixer),
  21508. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  21509. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21510. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  21511. msm_routing_put_port_mixer),
  21512. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  21513. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21514. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  21515. msm_routing_put_port_mixer),
  21516. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21517. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21518. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21519. msm_routing_put_port_mixer),
  21520. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21521. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21522. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21523. msm_routing_put_port_mixer),
  21524. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21525. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21526. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21527. msm_routing_put_port_mixer),
  21528. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  21529. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21530. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21531. msm_routing_put_port_mixer),
  21532. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21533. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21534. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21535. msm_routing_put_port_mixer),
  21536. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21537. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21538. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21539. msm_routing_put_port_mixer),
  21540. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21541. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21542. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21543. msm_routing_put_port_mixer),
  21544. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  21545. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21546. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  21547. msm_routing_put_port_mixer),
  21548. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  21549. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  21550. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  21551. msm_routing_put_port_mixer),
  21552. };
  21553. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  21554. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  21555. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  21556. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  21557. msm_routing_put_port_mixer),
  21558. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21559. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  21560. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21561. msm_routing_put_port_mixer),
  21562. };
  21563. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  21564. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21565. MSM_BACKEND_DAI_AFE_PCM_RX,
  21566. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21567. msm_routing_put_port_mixer),
  21568. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  21569. MSM_BACKEND_DAI_AFE_PCM_RX,
  21570. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  21571. msm_routing_put_port_mixer),
  21572. };
  21573. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  21574. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  21575. MSM_BACKEND_DAI_HDMI_RX,
  21576. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21577. msm_routing_put_port_mixer),
  21578. };
  21579. static const struct snd_kcontrol_new hdmi_rx_ms_port_mixer_controls[] = {
  21580. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  21581. MSM_BACKEND_DAI_HDMI_RX_MS,
  21582. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21583. msm_routing_put_port_mixer),
  21584. };
  21585. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  21586. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  21587. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  21588. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21589. msm_routing_put_port_mixer),
  21590. };
  21591. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  21592. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  21593. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  21594. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21595. msm_routing_put_port_mixer),
  21596. };
  21597. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  21598. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  21599. MSM_BACKEND_DAI_SEC_I2S_RX,
  21600. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21601. msm_routing_put_port_mixer),
  21602. };
  21603. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  21604. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  21605. MSM_BACKEND_DAI_USB_RX,
  21606. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  21607. msm_routing_put_port_mixer),
  21608. };
  21609. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21610. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21611. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21612. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21613. msm_routing_put_listen_mixer),
  21614. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21615. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21616. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21617. msm_routing_put_listen_mixer),
  21618. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21619. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21620. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21621. msm_routing_put_listen_mixer),
  21622. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21623. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21624. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21625. msm_routing_put_listen_mixer),
  21626. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21627. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21628. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21629. msm_routing_put_listen_mixer),
  21630. #ifndef CONFIG_MI2S_DISABLE
  21631. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21632. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21633. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21634. msm_routing_put_listen_mixer),
  21635. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21636. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21637. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21638. msm_routing_put_listen_mixer),
  21639. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21640. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21641. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21642. msm_routing_put_listen_mixer),
  21643. #endif
  21644. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21645. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21646. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21647. msm_routing_put_listen_mixer),
  21648. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21649. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21650. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21651. msm_routing_put_listen_mixer),
  21652. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21653. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21654. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21655. msm_routing_put_listen_mixer),
  21656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21658. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21659. msm_routing_put_listen_mixer),
  21660. #ifndef CONFIG_TDM_DISABLE
  21661. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21662. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21663. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21664. msm_routing_put_listen_mixer),
  21665. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21666. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21667. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21668. msm_routing_put_listen_mixer),
  21669. #endif
  21670. };
  21671. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21672. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21673. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21674. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21675. msm_routing_put_listen_mixer),
  21676. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21677. SND_SOC_NOPM,
  21678. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21679. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21680. msm_routing_put_listen_mixer),
  21681. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21682. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21683. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21684. msm_routing_put_listen_mixer),
  21685. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21686. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21687. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21688. msm_routing_put_listen_mixer),
  21689. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21690. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21691. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21692. msm_routing_put_listen_mixer),
  21693. #ifndef CONFIG_MI2S_DISABLE
  21694. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21695. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21696. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21697. msm_routing_put_listen_mixer),
  21698. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21699. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21700. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21701. msm_routing_put_listen_mixer),
  21702. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21703. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21704. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21705. msm_routing_put_listen_mixer),
  21706. #endif
  21707. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21708. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21709. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21710. msm_routing_put_listen_mixer),
  21711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21713. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21714. msm_routing_put_listen_mixer),
  21715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21717. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21718. msm_routing_put_listen_mixer),
  21719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21721. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21722. msm_routing_put_listen_mixer),
  21723. #ifndef CONFIG_TDM_DISABLE
  21724. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21725. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21726. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21727. msm_routing_put_listen_mixer),
  21728. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21729. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21730. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21731. msm_routing_put_listen_mixer),
  21732. #endif
  21733. };
  21734. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21735. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21736. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21737. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21738. msm_routing_put_listen_mixer),
  21739. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21740. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21741. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21742. msm_routing_put_listen_mixer),
  21743. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21744. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21745. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21746. msm_routing_put_listen_mixer),
  21747. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21748. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21749. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21750. msm_routing_put_listen_mixer),
  21751. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21752. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21753. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21754. msm_routing_put_listen_mixer),
  21755. #ifndef CONFIG_MI2S_DISABLE
  21756. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21757. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21758. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21759. msm_routing_put_listen_mixer),
  21760. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21761. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21762. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21763. msm_routing_put_listen_mixer),
  21764. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21765. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21766. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21767. msm_routing_put_listen_mixer),
  21768. #endif
  21769. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21770. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21771. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21772. msm_routing_put_listen_mixer),
  21773. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21774. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21775. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21776. msm_routing_put_listen_mixer),
  21777. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21778. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21779. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21780. msm_routing_put_listen_mixer),
  21781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21783. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21784. msm_routing_put_listen_mixer),
  21785. #ifndef CONFIG_TDM_DISABLE
  21786. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21787. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21788. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21789. msm_routing_put_listen_mixer),
  21790. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21791. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21792. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21793. msm_routing_put_listen_mixer),
  21794. #endif
  21795. };
  21796. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21797. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21798. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21799. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21800. msm_routing_put_listen_mixer),
  21801. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21802. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21803. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21804. msm_routing_put_listen_mixer),
  21805. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21806. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21807. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21808. msm_routing_put_listen_mixer),
  21809. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21810. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21811. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21812. msm_routing_put_listen_mixer),
  21813. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21814. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21815. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21816. msm_routing_put_listen_mixer),
  21817. #ifndef CONFIG_MI2S_DISABLE
  21818. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21819. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21820. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21821. msm_routing_put_listen_mixer),
  21822. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21823. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21824. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21825. msm_routing_put_listen_mixer),
  21826. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21827. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21828. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21829. msm_routing_put_listen_mixer),
  21830. #endif
  21831. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21832. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21833. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21834. msm_routing_put_listen_mixer),
  21835. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21836. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21837. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21838. msm_routing_put_listen_mixer),
  21839. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21840. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21841. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21842. msm_routing_put_listen_mixer),
  21843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21845. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21846. msm_routing_put_listen_mixer),
  21847. #ifndef CONFIG_TDM_DISABLE
  21848. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21849. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21850. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21851. msm_routing_put_listen_mixer),
  21852. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21853. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21854. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21855. msm_routing_put_listen_mixer),
  21856. #endif
  21857. };
  21858. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21859. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21860. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21861. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21862. msm_routing_put_listen_mixer),
  21863. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21864. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21865. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21866. msm_routing_put_listen_mixer),
  21867. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21868. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21869. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21870. msm_routing_put_listen_mixer),
  21871. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21872. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21873. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21874. msm_routing_put_listen_mixer),
  21875. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21876. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21877. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21878. msm_routing_put_listen_mixer),
  21879. #ifndef CONFIG_MI2S_DISABLE
  21880. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21881. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21882. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21883. msm_routing_put_listen_mixer),
  21884. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21885. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21886. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21887. msm_routing_put_listen_mixer),
  21888. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21889. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21890. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21891. msm_routing_put_listen_mixer),
  21892. #endif
  21893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21895. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21896. msm_routing_put_listen_mixer),
  21897. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21898. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21899. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21900. msm_routing_put_listen_mixer),
  21901. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21902. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21903. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21904. msm_routing_put_listen_mixer),
  21905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21907. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21908. msm_routing_put_listen_mixer),
  21909. #ifndef CONFIG_TDM_DISABLE
  21910. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21911. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21912. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21913. msm_routing_put_listen_mixer),
  21914. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21915. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21916. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21917. msm_routing_put_listen_mixer),
  21918. #endif
  21919. };
  21920. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21921. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21922. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21923. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21924. msm_routing_put_listen_mixer),
  21925. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21926. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21927. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21928. msm_routing_put_listen_mixer),
  21929. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21930. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21931. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21932. msm_routing_put_listen_mixer),
  21933. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21934. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21935. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21936. msm_routing_put_listen_mixer),
  21937. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21938. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21939. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21940. msm_routing_put_listen_mixer),
  21941. #ifndef CONFIG_MI2S_DISABLE
  21942. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21943. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21944. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21945. msm_routing_put_listen_mixer),
  21946. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21947. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21948. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21949. msm_routing_put_listen_mixer),
  21950. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21951. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21952. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21953. msm_routing_put_listen_mixer),
  21954. #endif
  21955. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21956. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21957. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21958. msm_routing_put_listen_mixer),
  21959. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21960. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21961. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21962. msm_routing_put_listen_mixer),
  21963. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21964. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21965. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21966. msm_routing_put_listen_mixer),
  21967. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21968. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21969. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21970. msm_routing_put_listen_mixer),
  21971. #ifndef CONFIG_TDM_DISABLE
  21972. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21973. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21974. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21975. msm_routing_put_listen_mixer),
  21976. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21977. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21978. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21979. msm_routing_put_listen_mixer),
  21980. #endif
  21981. };
  21982. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21983. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21984. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21985. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21986. msm_routing_put_listen_mixer),
  21987. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21988. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21989. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21990. msm_routing_put_listen_mixer),
  21991. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21992. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21993. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21994. msm_routing_put_listen_mixer),
  21995. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21996. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21997. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21998. msm_routing_put_listen_mixer),
  21999. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  22000. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  22001. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22002. msm_routing_put_listen_mixer),
  22003. #ifndef CONFIG_MI2S_DISABLE
  22004. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  22005. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  22006. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22007. msm_routing_put_listen_mixer),
  22008. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  22009. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  22010. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22011. msm_routing_put_listen_mixer),
  22012. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  22013. MSM_BACKEND_DAI_INT3_MI2S_TX,
  22014. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22015. msm_routing_put_listen_mixer),
  22016. #endif
  22017. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  22018. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  22019. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22020. msm_routing_put_listen_mixer),
  22021. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  22022. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  22023. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22024. msm_routing_put_listen_mixer),
  22025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  22026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  22027. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22028. msm_routing_put_listen_mixer),
  22029. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  22030. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  22031. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22032. msm_routing_put_listen_mixer),
  22033. #ifndef CONFIG_TDM_DISABLE
  22034. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  22035. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  22036. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22037. msm_routing_put_listen_mixer),
  22038. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  22039. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  22040. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  22041. msm_routing_put_listen_mixer),
  22042. #endif
  22043. };
  22044. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  22045. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  22046. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  22047. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22048. msm_routing_put_listen_mixer),
  22049. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  22050. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  22051. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22052. msm_routing_put_listen_mixer),
  22053. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  22054. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  22055. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22056. msm_routing_put_listen_mixer),
  22057. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  22058. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  22059. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22060. msm_routing_put_listen_mixer),
  22061. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  22062. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  22063. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22064. msm_routing_put_listen_mixer),
  22065. #ifndef CONFIG_MI2S_DISABLE
  22066. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  22067. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  22068. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22069. msm_routing_put_listen_mixer),
  22070. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  22071. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  22072. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22073. msm_routing_put_listen_mixer),
  22074. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  22075. MSM_BACKEND_DAI_INT3_MI2S_TX,
  22076. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22077. msm_routing_put_listen_mixer),
  22078. #endif
  22079. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  22080. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  22081. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22082. msm_routing_put_listen_mixer),
  22083. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  22084. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  22085. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22086. msm_routing_put_listen_mixer),
  22087. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  22088. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  22089. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22090. msm_routing_put_listen_mixer),
  22091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  22092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  22093. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22094. msm_routing_put_listen_mixer),
  22095. #ifndef CONFIG_TDM_DISABLE
  22096. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  22097. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  22098. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22099. msm_routing_put_listen_mixer),
  22100. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  22101. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  22102. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  22103. msm_routing_put_listen_mixer),
  22104. #endif
  22105. };
  22106. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  22107. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22108. 0, 1, 0, msm_routing_get_switch_mixer,
  22109. msm_routing_put_switch_mixer);
  22110. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  22111. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22112. 0, 1, 0, msm_routing_get_switch_mixer,
  22113. msm_routing_put_switch_mixer);
  22114. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  22115. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22116. 0, 1, 0, msm_routing_get_switch_mixer,
  22117. msm_routing_put_switch_mixer);
  22118. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  22119. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22120. 0, 1, 0, msm_routing_get_switch_mixer,
  22121. msm_routing_put_switch_mixer);
  22122. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  22123. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22124. 0, 1, 0, msm_routing_get_switch_mixer,
  22125. msm_routing_put_switch_mixer);
  22126. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  22127. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22128. 0, 1, 0, msm_routing_get_switch_mixer,
  22129. msm_routing_put_switch_mixer);
  22130. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  22131. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22132. 0, 1, 0, msm_routing_get_switch_mixer,
  22133. msm_routing_put_switch_mixer);
  22134. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  22135. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22136. 0, 1, 0, msm_routing_get_switch_mixer,
  22137. msm_routing_put_switch_mixer);
  22138. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  22139. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22140. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  22141. msm_routing_put_fm_pcmrx_switch_mixer);
  22142. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  22143. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22144. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  22145. msm_routing_put_hfp_switch_mixer);
  22146. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  22147. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22148. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  22149. msm_routing_put_hfp_switch_mixer);
  22150. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  22151. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22152. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  22153. msm_routing_put_hfp_switch_mixer);
  22154. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  22155. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22156. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  22157. msm_routing_put_hfp_switch_mixer);
  22158. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  22159. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22160. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  22161. msm_routing_put_usb_switch_mixer);
  22162. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  22163. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22164. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  22165. msm_routing_a2dp_switch_mixer_put);
  22166. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  22167. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  22168. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  22169. msm_routing_sco_switch_mixer_put);
  22170. static const struct soc_enum lsm_port_enum =
  22171. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  22172. static const char * const lsm_func_text[] = {
  22173. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  22174. };
  22175. static const struct soc_enum lsm_func_enum =
  22176. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  22177. static const struct snd_kcontrol_new lsm_controls[] = {
  22178. /* kcontrol of lsm_function */
  22179. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22180. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22181. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22182. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22183. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22184. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22185. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22186. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22187. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22188. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22189. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22190. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22191. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22192. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22193. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22194. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22195. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22196. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22197. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22198. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22199. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22200. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22201. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  22202. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  22203. /* kcontrol of lsm_port */
  22204. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  22205. msm_routing_lsm_port_get,
  22206. msm_routing_lsm_port_put),
  22207. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  22208. msm_routing_lsm_port_get,
  22209. msm_routing_lsm_port_put),
  22210. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  22211. msm_routing_lsm_port_get,
  22212. msm_routing_lsm_port_put),
  22213. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  22214. msm_routing_lsm_port_get,
  22215. msm_routing_lsm_port_put),
  22216. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  22217. msm_routing_lsm_port_get,
  22218. msm_routing_lsm_port_put),
  22219. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  22220. msm_routing_lsm_port_get,
  22221. msm_routing_lsm_port_put),
  22222. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  22223. msm_routing_lsm_port_get,
  22224. msm_routing_lsm_port_put),
  22225. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  22226. msm_routing_lsm_port_get,
  22227. msm_routing_lsm_port_put),
  22228. };
  22229. static const char * const aanc_slim_0_rx_text[] = {
  22230. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  22231. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  22232. };
  22233. static const struct soc_enum aanc_slim_0_rx_enum =
  22234. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  22235. aanc_slim_0_rx_text);
  22236. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  22237. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  22238. msm_routing_slim_0_rx_aanc_mux_get,
  22239. msm_routing_slim_0_rx_aanc_mux_put)
  22240. };
  22241. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  22242. struct snd_ctl_elem_value *ucontrol)
  22243. {
  22244. ucontrol->value.integer.value[0] = aanc_level;
  22245. return 0;
  22246. }
  22247. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  22248. struct snd_ctl_elem_value *ucontrol)
  22249. {
  22250. int ret = 0;
  22251. mutex_lock(&routing_lock);
  22252. aanc_level = ucontrol->value.integer.value[0];
  22253. pr_debug("%s: value: %ld\n",
  22254. __func__, ucontrol->value.integer.value[0]);
  22255. ret = afe_set_aanc_noise_level(aanc_level);
  22256. mutex_unlock(&routing_lock);
  22257. return ret;
  22258. }
  22259. static const struct snd_kcontrol_new aanc_noise_level[] = {
  22260. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  22261. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  22262. };
  22263. static int msm_routing_get_stereo_to_custom_stereo_control(
  22264. struct snd_kcontrol *kcontrol,
  22265. struct snd_ctl_elem_value *ucontrol)
  22266. {
  22267. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  22268. return 0;
  22269. }
  22270. static int msm_routing_put_stereo_to_custom_stereo_control(
  22271. struct snd_kcontrol *kcontrol,
  22272. struct snd_ctl_elem_value *ucontrol)
  22273. {
  22274. int flag = 0, i = 0, rc = 0, idx = 0;
  22275. int be_index = 0, port_id, topo_id;
  22276. unsigned int session_id = 0;
  22277. uint16_t op_FL_ip_FL_weight = 0;
  22278. uint16_t op_FL_ip_FR_weight = 0;
  22279. uint16_t op_FR_ip_FL_weight = 0;
  22280. uint16_t op_FR_ip_FR_weight = 0;
  22281. flag = ucontrol->value.integer.value[0];
  22282. pr_debug("%s E flag %d\n", __func__, flag);
  22283. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  22284. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  22285. __func__, is_custom_stereo_on, flag);
  22286. return 0;
  22287. }
  22288. is_custom_stereo_on = flag ? true : false;
  22289. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  22290. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22291. port_id = msm_bedais[be_index].port_id;
  22292. if (!msm_bedais[be_index].active)
  22293. continue;
  22294. if ((port_id != SLIMBUS_0_RX) &&
  22295. (port_id != RT_PROXY_PORT_001_RX) &&
  22296. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  22297. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  22298. continue;
  22299. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22300. MSM_FRONTEND_DAI_MM_SIZE) {
  22301. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  22302. LEGACY_PCM_MODE)
  22303. goto skip_send_custom_stereo;
  22304. session_id =
  22305. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  22306. if (is_custom_stereo_on) {
  22307. op_FL_ip_FL_weight =
  22308. Q14_GAIN_ZERO_POINT_FIVE;
  22309. op_FL_ip_FR_weight =
  22310. Q14_GAIN_ZERO_POINT_FIVE;
  22311. op_FR_ip_FL_weight =
  22312. Q14_GAIN_ZERO_POINT_FIVE;
  22313. op_FR_ip_FR_weight =
  22314. Q14_GAIN_ZERO_POINT_FIVE;
  22315. } else {
  22316. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  22317. op_FL_ip_FR_weight = 0;
  22318. op_FR_ip_FL_weight = 0;
  22319. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  22320. }
  22321. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22322. unsigned long copp =
  22323. session_copp_map[i]
  22324. [SESSION_TYPE_RX][be_index];
  22325. if (!test_bit(idx, &copp))
  22326. goto skip_send_custom_stereo;
  22327. topo_id = adm_get_topology_for_port_copp_idx(
  22328. msm_bedais[be_index].port_id, idx);
  22329. if (topo_id < 0)
  22330. pr_debug("%s:Err:custom stereo topo %d",
  22331. __func__, topo_id);
  22332. pr_debug("idx %d\n", idx);
  22333. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  22334. rc = msm_ds2_dap_set_custom_stereo_onoff
  22335. (msm_bedais[be_index].port_id,
  22336. idx, is_custom_stereo_on);
  22337. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  22338. rc = dolby_dap_set_custom_stereo_onoff(
  22339. msm_bedais[be_index].port_id,
  22340. idx, is_custom_stereo_on);
  22341. else
  22342. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  22343. (msm_bedais[be_index].port_id,
  22344. idx, session_id,
  22345. op_FL_ip_FL_weight,
  22346. op_FL_ip_FR_weight,
  22347. op_FR_ip_FL_weight,
  22348. op_FR_ip_FR_weight);
  22349. if (rc < 0)
  22350. skip_send_custom_stereo:
  22351. pr_err("%s: err setting custom stereo\n",
  22352. __func__);
  22353. }
  22354. }
  22355. }
  22356. return 0;
  22357. }
  22358. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  22359. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  22360. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  22361. msm_routing_put_stereo_to_custom_stereo_control),
  22362. };
  22363. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22364. struct snd_ctl_elem_value *ucontrol)
  22365. {
  22366. return 0;
  22367. }
  22368. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22369. struct snd_ctl_elem_value *ucontrol)
  22370. {
  22371. int i = 0, j;
  22372. int num_app_types = ucontrol->value.integer.value[i++];
  22373. pr_debug("%s\n", __func__);
  22374. memset(app_type_cfg, 0, MAX_APP_TYPES*
  22375. sizeof(struct msm_pcm_routing_app_type_data));
  22376. if (num_app_types > MAX_APP_TYPES) {
  22377. pr_err("%s: number of app types exceed the max supported\n",
  22378. __func__);
  22379. return -EINVAL;
  22380. }
  22381. for (j = 0; j < num_app_types; j++) {
  22382. app_type_cfg[j].app_type =
  22383. ucontrol->value.integer.value[i++];
  22384. app_type_cfg[j].sample_rate =
  22385. ucontrol->value.integer.value[i++];
  22386. app_type_cfg[j].bit_width =
  22387. ucontrol->value.integer.value[i++];
  22388. }
  22389. return 0;
  22390. }
  22391. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  22392. struct snd_ctl_elem_value *ucontrol)
  22393. {
  22394. int j, fe_id, be_id, port_type;
  22395. int ret = 0;
  22396. unsigned long copp;
  22397. struct msm_pcm_routing_bdai_data *bedai;
  22398. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22399. SESSION_TYPE_RX;
  22400. int app_type = ucontrol->value.integer.value[1];
  22401. int gain = (ucontrol->value.integer.value[2] +
  22402. ucontrol->value.integer.value[3])/2;
  22403. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22404. MSM_AFE_PORT_TYPE_TX;
  22405. mutex_lock(&routing_lock);
  22406. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22407. if (is_be_dai_extproc(be_id))
  22408. continue;
  22409. bedai = &msm_bedais[be_id];
  22410. if (afe_get_port_type(bedai->port_id) != port_type)
  22411. continue;
  22412. if (!bedai->active)
  22413. continue;
  22414. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22415. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22416. continue;
  22417. if (app_type !=
  22418. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22419. continue;
  22420. copp = session_copp_map[fe_id][dir][be_id];
  22421. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  22422. if (!test_bit(j, &copp))
  22423. continue;
  22424. ret |= adm_set_volume(bedai->port_id, j, gain);
  22425. }
  22426. }
  22427. }
  22428. mutex_unlock(&routing_lock);
  22429. return ret ? -EINVAL : 0;
  22430. }
  22431. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  22432. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  22433. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  22434. msm_routing_put_app_type_cfg_control),
  22435. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  22436. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  22437. };
  22438. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  22439. struct snd_ctl_elem_value *ucontrol)
  22440. {
  22441. int copp_idx, fe_id, be_id, port_type;
  22442. int ret = 0;
  22443. unsigned long copp;
  22444. struct msm_pcm_routing_bdai_data *bedai;
  22445. u8 *packed_params = NULL;
  22446. struct param_hdr_v3 param_hdr;
  22447. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  22448. sizeof(uint32_t));
  22449. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22450. SESSION_TYPE_RX;
  22451. int app_type = ucontrol->value.integer.value[1];
  22452. int module_id = ucontrol->value.integer.value[2];
  22453. int instance_id = ucontrol->value.integer.value[3];
  22454. int param_id = ucontrol->value.integer.value[4];
  22455. int param_value = ucontrol->value.integer.value[5];
  22456. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22457. MSM_AFE_PORT_TYPE_TX;
  22458. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  22459. __func__, app_type, module_id,
  22460. instance_id, param_id, param_value);
  22461. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  22462. if (!packed_params)
  22463. return -ENOMEM;
  22464. memset(&param_hdr, 0, sizeof(param_hdr));
  22465. param_hdr.module_id = module_id;
  22466. param_hdr.instance_id = instance_id;
  22467. param_hdr.param_id = param_id;
  22468. param_hdr.param_size = sizeof(uint32_t);
  22469. packed_param_size = 0;
  22470. mutex_lock(&routing_lock);
  22471. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22472. if (is_be_dai_extproc(be_id))
  22473. continue;
  22474. bedai = &msm_bedais[be_id];
  22475. if (afe_get_port_type(bedai->port_id) != port_type)
  22476. continue;
  22477. if (!bedai->active)
  22478. continue;
  22479. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22480. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22481. continue;
  22482. if (app_type !=
  22483. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22484. continue;
  22485. copp = session_copp_map[fe_id][dir][be_id];
  22486. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  22487. copp_idx++) {
  22488. if (!test_bit(copp_idx, &copp))
  22489. continue;
  22490. ret = q6common_pack_pp_params(packed_params,
  22491. &param_hdr,
  22492. (u8 *) &param_value,
  22493. &packed_param_size);
  22494. if (ret) {
  22495. pr_err("%s: Failed to pack params, error %d\n",
  22496. __func__, ret);
  22497. goto done;
  22498. }
  22499. ret = adm_set_pp_params(bedai->port_id,
  22500. copp_idx, NULL,
  22501. packed_params,
  22502. packed_param_size);
  22503. if (ret) {
  22504. pr_err("%s: Setting param failed with err=%d\n",
  22505. __func__, ret);
  22506. ret = -EINVAL;
  22507. goto done;
  22508. }
  22509. }
  22510. }
  22511. }
  22512. done:
  22513. mutex_unlock(&routing_lock);
  22514. kfree(packed_params);
  22515. return ret;
  22516. }
  22517. static const struct snd_kcontrol_new module_cfg_controls[] = {
  22518. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  22519. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  22520. };
  22521. static int msm_routing_get_lsm_app_type_cfg_control(
  22522. struct snd_kcontrol *kcontrol,
  22523. struct snd_ctl_elem_value *ucontrol)
  22524. {
  22525. int shift = ((struct soc_multi_mixer_control *)
  22526. kcontrol->private_value)->shift;
  22527. int i = 0, j = 0;
  22528. mutex_lock(&routing_lock);
  22529. ucontrol->value.integer.value[i] = num_app_cfg_types;
  22530. for (j = 0; j < num_app_cfg_types; ++j) {
  22531. ucontrol->value.integer.value[++i] =
  22532. lsm_app_type_cfg[j].app_type;
  22533. ucontrol->value.integer.value[++i] =
  22534. lsm_app_type_cfg[j].sample_rate;
  22535. ucontrol->value.integer.value[++i] =
  22536. lsm_app_type_cfg[j].bit_width;
  22537. if (shift == 1)
  22538. ucontrol->value.integer.value[++i] =
  22539. lsm_app_type_cfg[j].num_out_channels;
  22540. }
  22541. mutex_unlock(&routing_lock);
  22542. return 0;
  22543. }
  22544. static int msm_routing_put_lsm_app_type_cfg_control(
  22545. struct snd_kcontrol *kcontrol,
  22546. struct snd_ctl_elem_value *ucontrol)
  22547. {
  22548. int shift = ((struct soc_multi_mixer_control *)
  22549. kcontrol->private_value)->shift;
  22550. int i = 0, j;
  22551. mutex_lock(&routing_lock);
  22552. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  22553. pr_err("%s: number of app types exceed the max supported\n",
  22554. __func__);
  22555. mutex_unlock(&routing_lock);
  22556. return -EINVAL;
  22557. }
  22558. num_app_cfg_types = ucontrol->value.integer.value[i++];
  22559. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  22560. sizeof(struct msm_pcm_routing_app_type_data));
  22561. for (j = 0; j < num_app_cfg_types; j++) {
  22562. lsm_app_type_cfg[j].app_type =
  22563. ucontrol->value.integer.value[i++];
  22564. lsm_app_type_cfg[j].sample_rate =
  22565. ucontrol->value.integer.value[i++];
  22566. lsm_app_type_cfg[j].bit_width =
  22567. ucontrol->value.integer.value[i++];
  22568. /* Shift of 1 indicates this is V2 mixer control */
  22569. if (shift == 1)
  22570. lsm_app_type_cfg[j].num_out_channels =
  22571. ucontrol->value.integer.value[i++];
  22572. }
  22573. mutex_unlock(&routing_lock);
  22574. return 0;
  22575. }
  22576. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  22577. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  22578. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22579. msm_routing_put_lsm_app_type_cfg_control),
  22580. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  22581. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22582. msm_routing_put_lsm_app_type_cfg_control),
  22583. };
  22584. static int msm_routing_get_use_ds1_or_ds2_control(
  22585. struct snd_kcontrol *kcontrol,
  22586. struct snd_ctl_elem_value *ucontrol)
  22587. {
  22588. ucontrol->value.integer.value[0] = is_ds2_on;
  22589. return 0;
  22590. }
  22591. static int msm_routing_put_use_ds1_or_ds2_control(
  22592. struct snd_kcontrol *kcontrol,
  22593. struct snd_ctl_elem_value *ucontrol)
  22594. {
  22595. is_ds2_on = ucontrol->value.integer.value[0];
  22596. return 0;
  22597. }
  22598. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  22599. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  22600. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  22601. msm_routing_put_use_ds1_or_ds2_control),
  22602. };
  22603. static int msm_routing_get_hifi_filter_control(
  22604. struct snd_kcontrol *kcontrol,
  22605. struct snd_ctl_elem_value *ucontrol)
  22606. {
  22607. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22608. return 0;
  22609. }
  22610. static int msm_routing_put_hifi_filter_control(
  22611. struct snd_kcontrol *kcontrol,
  22612. struct snd_ctl_elem_value *ucontrol)
  22613. {
  22614. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22615. return 0;
  22616. }
  22617. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22618. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22619. 1, 0, msm_routing_get_hifi_filter_control,
  22620. msm_routing_put_hifi_filter_control),
  22621. };
  22622. static int msm_routing_get_ffecns_freeze_event_control(
  22623. struct snd_kcontrol *kcontrol,
  22624. struct snd_ctl_elem_value *ucontrol)
  22625. {
  22626. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22627. return 0;
  22628. }
  22629. static int msm_routing_put_ffecns_freeze_event_control(
  22630. struct snd_kcontrol *kcontrol,
  22631. struct snd_ctl_elem_value *ucontrol)
  22632. {
  22633. int ret = -EINVAL;
  22634. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22635. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22636. if (ret)
  22637. pr_err("%s: failed to set ffecns imc event to%d\n",
  22638. __func__, ffecns_freeze_event);
  22639. return ret;
  22640. }
  22641. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22642. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22643. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22644. msm_routing_put_ffecns_freeze_event_control),
  22645. };
  22646. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22647. struct snd_ctl_elem_value *ucontrol) {
  22648. int rc = 0;
  22649. int be_idx = 0;
  22650. char *param_value;
  22651. int *update_param_value;
  22652. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22653. struct param_hdr_v3 param_hdr;
  22654. param_value = kzalloc(param_size, GFP_KERNEL);
  22655. if (!param_value)
  22656. return -ENOMEM;
  22657. memset(&param_hdr, 0, sizeof(param_hdr));
  22658. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22659. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22660. break;
  22661. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22662. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22663. param_hdr.instance_id = INSTANCE_ID_0;
  22664. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22665. param_hdr.param_size = param_size;
  22666. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22667. NULL, &param_hdr, (u8 *) param_value);
  22668. if (rc) {
  22669. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22670. kfree(param_value);
  22671. return -EINVAL;
  22672. }
  22673. update_param_value = (int *)param_value;
  22674. ucontrol->value.integer.value[0] = update_param_value[0];
  22675. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22676. __func__, update_param_value[0]);
  22677. }
  22678. kfree(param_value);
  22679. return 0;
  22680. }
  22681. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22682. struct snd_ctl_elem_value *ucontrol)
  22683. {
  22684. voc_session_id = ucontrol->value.integer.value[0];
  22685. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22686. return 0;
  22687. }
  22688. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22689. struct snd_ctl_elem_value *ucontrol)
  22690. {
  22691. ucontrol->value.integer.value[0] = voc_session_id;
  22692. return 0;
  22693. }
  22694. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22695. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22696. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22697. msm_voc_session_id_put),
  22698. };
  22699. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22700. struct snd_ctl_elem_info *uinfo)
  22701. {
  22702. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22703. uinfo->count = sizeof(struct sound_focus_param);
  22704. return 0;
  22705. }
  22706. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22707. struct snd_ctl_elem_value *ucontrol)
  22708. {
  22709. int ret = 0;
  22710. struct sound_focus_param soundFocusData;
  22711. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22712. sizeof(struct sound_focus_param));
  22713. ret = voc_set_sound_focus(soundFocusData);
  22714. if (ret) {
  22715. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22716. __func__, ret);
  22717. ret = -EINVAL;
  22718. }
  22719. return ret;
  22720. }
  22721. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22722. struct snd_ctl_elem_value *ucontrol)
  22723. {
  22724. int ret = 0;
  22725. struct sound_focus_param soundFocusData;
  22726. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22727. ret = voc_get_sound_focus(&soundFocusData);
  22728. if (ret) {
  22729. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22730. __func__, ret);
  22731. ret = -EINVAL;
  22732. goto done;
  22733. }
  22734. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22735. sizeof(struct sound_focus_param));
  22736. done:
  22737. return ret;
  22738. }
  22739. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22740. struct snd_ctl_elem_info *uinfo)
  22741. {
  22742. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22743. uinfo->count = sizeof(struct source_tracking_param);
  22744. return 0;
  22745. }
  22746. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22747. struct snd_ctl_elem_value *ucontrol)
  22748. {
  22749. int ret = 0;
  22750. struct source_tracking_param sourceTrackingData;
  22751. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22752. ret = voc_get_source_tracking(&sourceTrackingData);
  22753. if (ret) {
  22754. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22755. __func__, ret);
  22756. ret = -EINVAL;
  22757. goto done;
  22758. }
  22759. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22760. sizeof(struct source_tracking_param));
  22761. done:
  22762. return ret;
  22763. }
  22764. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22765. int *copp_idx)
  22766. {
  22767. int i, idx, be_idx;
  22768. int ret = 0;
  22769. unsigned long copp;
  22770. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22771. ret = q6audio_validate_port(port_id);
  22772. if (ret < 0) {
  22773. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22774. __func__, port_id, ret);
  22775. ret = -EINVAL;
  22776. goto done;
  22777. }
  22778. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22779. if (msm_bedais[be_idx].port_id == port_id)
  22780. break;
  22781. }
  22782. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22783. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22784. ret = -EINVAL;
  22785. goto done;
  22786. }
  22787. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22788. MSM_FRONTEND_DAI_MAX) {
  22789. if (!(is_mm_lsm_fe_id(i) &&
  22790. route_check_fe_id_adm_support(i)))
  22791. continue;
  22792. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22793. copp = session_copp_map[i]
  22794. [session_type][be_idx];
  22795. if (test_bit(idx, &copp))
  22796. break;
  22797. }
  22798. if (idx >= MAX_COPPS_PER_PORT)
  22799. continue;
  22800. else
  22801. break;
  22802. }
  22803. if (i >= MSM_FRONTEND_DAI_MAX) {
  22804. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22805. ret = -EINVAL;
  22806. goto done;
  22807. }
  22808. *copp_idx = idx;
  22809. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22810. done:
  22811. return ret;
  22812. }
  22813. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22814. const char *prefix, int *port_id)
  22815. {
  22816. int ret = 0;
  22817. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22818. /*
  22819. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22820. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22821. * and compare the string with the backend name to derive the port id.
  22822. */
  22823. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22824. "SLIMBUS_0")) {
  22825. *port_id = SLIMBUS_0_TX;
  22826. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22827. "TERT_MI2S")) {
  22828. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22829. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22830. "INT3_MI2S")) {
  22831. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22832. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22833. "VA_CDC_DMA_TX_0")) {
  22834. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22835. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22836. "TX_CDC_DMA_TX_3")) {
  22837. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22838. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22839. "QUIN_TDM_TX_0")) {
  22840. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22841. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22842. "PRIMARY_TDM")) {
  22843. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22844. } else {
  22845. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22846. __func__, kcontrol->id.name);
  22847. ret = -EINVAL;
  22848. goto done;
  22849. }
  22850. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22851. __func__, kcontrol->id.name, *port_id);
  22852. done:
  22853. return ret;
  22854. }
  22855. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22856. struct snd_ctl_elem_value *ucontrol)
  22857. {
  22858. int ret = 0;
  22859. struct sound_focus_param soundFocusData;
  22860. int port_id, copp_idx;
  22861. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22862. "Sound Focus Audio Tx ", &port_id);
  22863. if (ret != 0) {
  22864. pr_err("%s: Error in deriving port id, err=%d\n",
  22865. __func__, ret);
  22866. ret = -EINVAL;
  22867. goto done;
  22868. }
  22869. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22870. &copp_idx);
  22871. if (ret) {
  22872. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22873. __func__, port_id);
  22874. ret = -EINVAL;
  22875. goto done;
  22876. }
  22877. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22878. sizeof(struct sound_focus_param));
  22879. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22880. if (ret) {
  22881. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22882. __func__, ret);
  22883. ret = -EINVAL;
  22884. goto done;
  22885. }
  22886. done:
  22887. return ret;
  22888. }
  22889. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22890. struct snd_ctl_elem_value *ucontrol)
  22891. {
  22892. int ret = 0;
  22893. struct sound_focus_param soundFocusData;
  22894. int port_id, copp_idx;
  22895. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22896. "Sound Focus Audio Tx ", &port_id);
  22897. if (ret) {
  22898. pr_err("%s: Error in deriving port id, err=%d\n",
  22899. __func__, ret);
  22900. ret = -EINVAL;
  22901. goto done;
  22902. }
  22903. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22904. &copp_idx);
  22905. if (ret) {
  22906. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22907. __func__, port_id);
  22908. ret = -EINVAL;
  22909. goto done;
  22910. }
  22911. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22912. if (ret) {
  22913. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22914. __func__, ret);
  22915. ret = -EINVAL;
  22916. goto done;
  22917. }
  22918. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22919. sizeof(struct sound_focus_param));
  22920. done:
  22921. return ret;
  22922. }
  22923. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22924. struct snd_ctl_elem_value *ucontrol)
  22925. {
  22926. int ret = 0;
  22927. struct source_tracking_param sourceTrackingData;
  22928. int port_id, copp_idx;
  22929. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22930. "Source Tracking Audio Tx ", &port_id);
  22931. if (ret) {
  22932. pr_err("%s: Error in deriving port id, err=%d\n",
  22933. __func__, ret);
  22934. ret = -EINVAL;
  22935. goto done;
  22936. }
  22937. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22938. &copp_idx);
  22939. if (ret) {
  22940. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22941. __func__, port_id);
  22942. ret = -EINVAL;
  22943. goto done;
  22944. }
  22945. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22946. if (ret) {
  22947. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22948. __func__, ret);
  22949. ret = -EINVAL;
  22950. goto done;
  22951. }
  22952. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22953. sizeof(struct source_tracking_param));
  22954. done:
  22955. return ret;
  22956. }
  22957. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22958. struct snd_ctl_elem_info *uinfo)
  22959. {
  22960. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22961. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22962. return 0;
  22963. }
  22964. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22965. struct snd_ctl_elem_value *ucontrol)
  22966. {
  22967. int ret = 0;
  22968. struct doa_tracking_mon_param doa_tracking_data;
  22969. int port_id, copp_idx;
  22970. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22971. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22972. "Doa Tracking Monitor Listen ", &port_id);
  22973. if (ret) {
  22974. pr_err("%s: Error in deriving port id, err=%d\n",
  22975. __func__, ret);
  22976. ret = -EINVAL;
  22977. goto done;
  22978. }
  22979. /*
  22980. * If copp id exists for given port id, query adm to get doa data.
  22981. * Else query afe for doa tracking params.
  22982. * This is to support in cases where LSM directly connects to
  22983. * AFE for FFNS.
  22984. */
  22985. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22986. &copp_idx);
  22987. if (!ret)
  22988. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22989. &doa_tracking_data);
  22990. else
  22991. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22992. if (ret) {
  22993. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22994. __func__, ret);
  22995. ret = -EINVAL;
  22996. goto done;
  22997. }
  22998. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22999. sizeof(struct doa_tracking_mon_param));
  23000. done:
  23001. return ret;
  23002. }
  23003. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  23004. {
  23005. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23006. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23007. .name = "Sound Focus Voice Tx SLIMBUS_0",
  23008. .info = msm_sound_focus_info,
  23009. .get = msm_voice_sound_focus_get,
  23010. .put = msm_voice_sound_focus_put,
  23011. },
  23012. {
  23013. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23015. .name = "Source Tracking Voice Tx SLIMBUS_0",
  23016. .info = msm_source_tracking_info,
  23017. .get = msm_voice_source_tracking_get,
  23018. },
  23019. {
  23020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23021. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23022. .name = "Sound Focus Audio Tx SLIMBUS_0",
  23023. .info = msm_sound_focus_info,
  23024. .get = msm_audio_sound_focus_get,
  23025. .put = msm_audio_sound_focus_put,
  23026. },
  23027. {
  23028. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23030. .name = "Source Tracking Audio Tx SLIMBUS_0",
  23031. .info = msm_source_tracking_info,
  23032. .get = msm_audio_source_tracking_get,
  23033. },
  23034. {
  23035. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23036. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23037. .name = "Sound Focus Voice Tx TERT_MI2S",
  23038. .info = msm_sound_focus_info,
  23039. .get = msm_voice_sound_focus_get,
  23040. .put = msm_voice_sound_focus_put,
  23041. },
  23042. {
  23043. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23044. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23045. .name = "Source Tracking Voice Tx TERT_MI2S",
  23046. .info = msm_source_tracking_info,
  23047. .get = msm_voice_source_tracking_get,
  23048. },
  23049. {
  23050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23052. .name = "Sound Focus Audio Tx TERT_MI2S",
  23053. .info = msm_sound_focus_info,
  23054. .get = msm_audio_sound_focus_get,
  23055. .put = msm_audio_sound_focus_put,
  23056. },
  23057. {
  23058. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23060. .name = "Source Tracking Audio Tx TERT_MI2S",
  23061. .info = msm_source_tracking_info,
  23062. .get = msm_audio_source_tracking_get,
  23063. },
  23064. {
  23065. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23067. .name = "Sound Focus Voice Tx INT3_MI2S",
  23068. .info = msm_sound_focus_info,
  23069. .get = msm_voice_sound_focus_get,
  23070. .put = msm_voice_sound_focus_put,
  23071. },
  23072. {
  23073. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23074. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23075. .name = "Source Tracking Voice Tx INT3_MI2S",
  23076. .info = msm_source_tracking_info,
  23077. .get = msm_voice_source_tracking_get,
  23078. },
  23079. {
  23080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23081. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23082. .name = "Sound Focus Audio Tx INT3_MI2S",
  23083. .info = msm_sound_focus_info,
  23084. .get = msm_audio_sound_focus_get,
  23085. .put = msm_audio_sound_focus_put,
  23086. },
  23087. {
  23088. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23090. .name = "Source Tracking Audio Tx INT3_MI2S",
  23091. .info = msm_source_tracking_info,
  23092. .get = msm_audio_source_tracking_get,
  23093. },
  23094. {
  23095. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23096. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23097. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  23098. .info = msm_sound_focus_info,
  23099. .get = msm_voice_sound_focus_get,
  23100. .put = msm_voice_sound_focus_put,
  23101. },
  23102. {
  23103. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23104. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23105. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  23106. .info = msm_source_tracking_info,
  23107. .get = msm_voice_source_tracking_get,
  23108. },
  23109. {
  23110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23111. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23112. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  23113. .info = msm_sound_focus_info,
  23114. .get = msm_audio_sound_focus_get,
  23115. .put = msm_audio_sound_focus_put,
  23116. },
  23117. {
  23118. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23120. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  23121. .info = msm_source_tracking_info,
  23122. .get = msm_audio_source_tracking_get,
  23123. },
  23124. {
  23125. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23126. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23127. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  23128. .info = msm_sound_focus_info,
  23129. .get = msm_voice_sound_focus_get,
  23130. .put = msm_voice_sound_focus_put,
  23131. },
  23132. {
  23133. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23134. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23135. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  23136. .info = msm_source_tracking_info,
  23137. .get = msm_voice_source_tracking_get,
  23138. },
  23139. {
  23140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23141. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23142. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  23143. .info = msm_sound_focus_info,
  23144. .get = msm_audio_sound_focus_get,
  23145. .put = msm_audio_sound_focus_put,
  23146. },
  23147. {
  23148. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23150. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  23151. .info = msm_source_tracking_info,
  23152. .get = msm_audio_source_tracking_get,
  23153. },
  23154. {
  23155. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23156. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23157. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  23158. .info = msm_sound_focus_info,
  23159. .get = msm_voice_sound_focus_get,
  23160. .put = msm_voice_sound_focus_put,
  23161. },
  23162. {
  23163. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23164. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23165. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  23166. .info = msm_source_tracking_info,
  23167. .get = msm_voice_source_tracking_get,
  23168. },
  23169. {
  23170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23171. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23172. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  23173. .info = msm_sound_focus_info,
  23174. .get = msm_audio_sound_focus_get,
  23175. .put = msm_audio_sound_focus_put,
  23176. },
  23177. {
  23178. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23180. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  23181. .info = msm_source_tracking_info,
  23182. .get = msm_audio_source_tracking_get,
  23183. },
  23184. {
  23185. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  23186. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23187. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  23188. .info = msm_sound_focus_info,
  23189. .get = msm_audio_sound_focus_get,
  23190. .put = msm_audio_sound_focus_put,
  23191. },
  23192. {
  23193. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23194. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23195. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  23196. .info = msm_source_tracking_info,
  23197. .get = msm_audio_source_tracking_get,
  23198. },
  23199. };
  23200. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  23201. {
  23202. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  23203. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  23204. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  23205. .info = msm_doa_tracking_mon_info,
  23206. .get = msm_doa_tracking_mon_get,
  23207. },
  23208. };
  23209. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  23210. struct snd_ctl_elem_value *ucontrol)
  23211. {
  23212. int ret = 0;
  23213. int item;
  23214. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  23215. pr_debug("%s item is %d\n", __func__,
  23216. ucontrol->value.enumerated.item[0]);
  23217. mutex_lock(&routing_lock);
  23218. item = ucontrol->value.enumerated.item[0];
  23219. if (item < e->items) {
  23220. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  23221. __func__, e->shift_l, e->values[item]);
  23222. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  23223. e->values[item] < MSM_BACKEND_DAI_MAX)
  23224. /* Enable feedback TX path */
  23225. ret = afe_spk_prot_feed_back_cfg(
  23226. msm_bedais[e->values[item]].port_id,
  23227. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  23228. else {
  23229. pr_debug("%s values are out of range item %d\n",
  23230. __func__, e->values[item]);
  23231. /* Disable feedback TX path */
  23232. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  23233. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  23234. else
  23235. ret = -EINVAL;
  23236. }
  23237. } else {
  23238. pr_err("%s item value is out of range item\n", __func__);
  23239. ret = -EINVAL;
  23240. }
  23241. mutex_unlock(&routing_lock);
  23242. return ret;
  23243. }
  23244. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  23245. struct snd_ctl_elem_value *ucontrol)
  23246. {
  23247. int ret = 0;
  23248. int item;
  23249. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  23250. pr_debug("%s item is %d\n", __func__,
  23251. ucontrol->value.enumerated.item[0]);
  23252. mutex_lock(&routing_lock);
  23253. item = ucontrol->value.enumerated.item[0];
  23254. if (item < e->items) {
  23255. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  23256. __func__, e->shift_l, e->values[item]);
  23257. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  23258. e->values[item] < MSM_BACKEND_DAI_MAX)
  23259. /* Enable feedback TX path */
  23260. ret = afe_spk_prot_feed_back_cfg(
  23261. msm_bedais[e->values[item]].port_id,
  23262. msm_bedais[e->shift_l].port_id,
  23263. 1, 1, 1);
  23264. else {
  23265. pr_debug("%s values are out of range item %d\n",
  23266. __func__, e->values[item]);
  23267. /* Disable feedback TX path */
  23268. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  23269. ret = afe_spk_prot_feed_back_cfg(0,
  23270. 0, 0, 0, 0);
  23271. else
  23272. ret = -EINVAL;
  23273. }
  23274. } else {
  23275. pr_err("%s item value is out of range item\n", __func__);
  23276. ret = -EINVAL;
  23277. }
  23278. mutex_unlock(&routing_lock);
  23279. return ret;
  23280. }
  23281. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  23282. struct snd_ctl_elem_value *ucontrol)
  23283. {
  23284. pr_debug("%s\n", __func__);
  23285. return 0;
  23286. }
  23287. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  23288. struct snd_ctl_elem_value *ucontrol)
  23289. {
  23290. pr_debug("%s\n", __func__);
  23291. ucontrol->value.enumerated.item[0] = 0;
  23292. return 0;
  23293. }
  23294. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  23295. "ZERO", "SLIM4_TX"
  23296. };
  23297. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  23298. "ZERO", "SLIM4_TX"
  23299. };
  23300. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  23301. "ZERO", "WSA_CDC_DMA_TX_0"
  23302. };
  23303. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  23304. "ZERO", "WSA_CDC_DMA_TX_0"
  23305. };
  23306. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  23307. "ZERO", "SENARY_TX"
  23308. };
  23309. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  23310. "ZERO", "INT5_MI2S_TX"
  23311. };
  23312. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  23313. "ZERO", "INT5_MI2S_TX"
  23314. };
  23315. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  23316. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23317. };
  23318. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  23319. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23320. };
  23321. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  23322. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23323. };
  23324. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  23325. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23326. };
  23327. static const int mi2s_rx_vi_fb_tx_value[] = {
  23328. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  23329. };
  23330. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  23331. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23332. };
  23333. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  23334. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23335. };
  23336. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  23337. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23338. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  23339. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  23340. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  23341. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23342. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  23343. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  23344. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  23345. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23346. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  23347. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  23348. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  23349. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23350. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  23351. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  23352. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  23353. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  23354. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  23355. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  23356. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  23357. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23358. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  23359. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  23360. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  23361. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  23362. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23363. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  23364. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  23365. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  23366. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  23367. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  23368. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23369. spkr_prot_put_vi_lch_port);
  23370. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  23371. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  23372. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23373. spkr_prot_put_vi_rch_port);
  23374. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  23375. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  23376. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23377. spkr_prot_put_vi_lch_port);
  23378. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  23379. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  23380. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23381. spkr_prot_put_vi_rch_port);
  23382. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  23383. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  23384. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  23385. spkr_prot_put_vi_lch_port);
  23386. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  23387. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  23388. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  23389. spkr_prot_put_vi_lch_port);
  23390. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  23391. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  23392. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  23393. spkr_prot_put_vi_rch_port);
  23394. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  23395. /* Frontend AIF */
  23396. /* Widget name equals to Front-End DAI name<Need confirmation>,
  23397. * Stream name must contains substring of front-end dai name
  23398. */
  23399. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  23400. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  23401. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  23402. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  23403. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  23404. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  23405. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  23406. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  23407. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  23408. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  23409. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  23410. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  23411. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  23412. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  23413. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  23414. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  23415. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  23416. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  23417. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  23418. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  23419. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  23420. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  23421. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  23422. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  23423. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  23424. SND_SOC_DAPM_AIF_IN("MM_DL33", "MultiMedia33 Playback", 0, 0, 0, 0),
  23425. SND_SOC_DAPM_AIF_IN("MM_DL34", "MultiMedia34 Playback", 0, 0, 0, 0),
  23426. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  23427. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  23428. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  23429. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  23430. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  23431. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  23432. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  23433. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  23434. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  23435. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  23436. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  23437. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  23438. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  23439. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  23440. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  23441. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  23442. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  23443. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  23444. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  23445. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  23446. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  23447. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  23448. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  23449. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  23450. SND_SOC_DAPM_AIF_OUT("MM_UL31", "MultiMedia31 Capture", 0, 0, 0, 0),
  23451. SND_SOC_DAPM_AIF_OUT("MM_UL32", "MultiMedia32 Capture", 0, 0, 0, 0),
  23452. SND_SOC_DAPM_AIF_OUT("MM_UL33", "MultiMedia33 Capture", 0, 0, 0, 0),
  23453. SND_SOC_DAPM_AIF_OUT("MM_UL34", "MultiMedia34 Capture", 0, 0, 0, 0),
  23454. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  23455. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  23456. "VoiceMMode1 Playback", 0, 0, 0, 0),
  23457. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  23458. "VoiceMMode1 Capture", 0, 0, 0, 0),
  23459. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  23460. "VoiceMMode2 Playback", 0, 0, 0, 0),
  23461. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  23462. "VoiceMMode2 Capture", 0, 0, 0, 0),
  23463. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  23464. 0, 0, 0, 0),
  23465. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  23466. 0, 0, 0, 0),
  23467. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  23468. 0, 0, 0, 0),
  23469. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  23470. 0, 0, 0, 0),
  23471. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  23472. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  23473. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  23474. 0, 0, 0, 0),
  23475. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  23476. 0, 0, 0, 0),
  23477. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  23478. 0, 0, 0, 0),
  23479. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  23480. 0, 0, 0, 0),
  23481. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  23482. 0, 0, 0, 0),
  23483. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  23484. 0, 0, 0, 0),
  23485. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  23486. 0, 0, 0, 0),
  23487. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  23488. 0, 0, 0, 0),
  23489. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  23490. 0, 0, 0, 0),
  23491. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  23492. 0, 0, 0, 0),
  23493. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  23494. 0, 0, 0, 0),
  23495. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  23496. 0, 0, 0, 0),
  23497. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  23498. 0, 0, 0, 0),
  23499. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  23500. 0, 0, 0, 0),
  23501. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  23502. 0, 0, 0, 0),
  23503. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  23504. 0, 0, 0, 0),
  23505. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  23506. 0, 0, 0, 0),
  23507. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  23508. 0, 0, 0, 0),
  23509. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  23510. 0, 0, 0, 0),
  23511. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  23512. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  23513. 0, 0, 0, 0),
  23514. /* LSM */
  23515. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23516. 0, 0, 0, 0),
  23517. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23518. 0, 0, 0, 0),
  23519. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23520. 0, 0, 0, 0),
  23521. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23522. 0, 0, 0, 0),
  23523. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23524. 0, 0, 0, 0),
  23525. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23526. 0, 0, 0, 0),
  23527. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23528. 0, 0, 0, 0),
  23529. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23530. 0, 0, 0, 0),
  23531. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23532. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23533. /* Backend AIF */
  23534. /* Stream name equals to backend dai link stream name */
  23535. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23536. 0, 0, 0, 0),
  23537. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23538. 0, 0, 0, 0),
  23539. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23540. 0, 0, 0, 0),
  23541. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23542. 0, 0, 0, 0),
  23543. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23544. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23545. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23546. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23547. SND_SOC_DAPM_AIF_OUT("HDMI_MS", "HDMI MS Playback", 0, 0, 0, 0),
  23548. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23549. 0, 0, 0, 0),
  23550. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23551. 0, 0, 0, 0),
  23552. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23553. 0, 0, 0, 0),
  23554. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23555. 0, 0, 0, 0),
  23556. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23557. 0, 0, 0, 0),
  23558. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23559. 0, 0, 0, 0),
  23560. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23561. 0, 0, 0, 0),
  23562. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23563. 0, 0, 0, 0),
  23564. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23565. 0, 0, 0, 0),
  23566. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23567. 0, 0, 0, 0),
  23568. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23569. 0, 0, 0, 0),
  23570. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23571. 0, 0, 0, 0),
  23572. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23573. 0, 0, 0, 0),
  23574. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23575. 0, 0, 0, 0),
  23576. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23577. 0, 0, 0, 0),
  23578. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23579. 0, 0, 0, 0),
  23580. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23581. 0, 0, 0, 0),
  23582. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23583. 0, 0, 0, 0),
  23584. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23585. 0, 0, 0, 0),
  23586. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23587. 0, 0, 0, 0),
  23588. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23589. 0, 0, 0, 0),
  23590. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23591. 0, 0, 0, 0),
  23592. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23593. 0, 0, 0, 0),
  23594. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23595. 0, 0, 0, 0),
  23596. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23597. 0, 0, 0, 0),
  23598. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23599. 0, 0, 0, 0),
  23600. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23601. 0, 0, 0, 0),
  23602. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23603. 0, 0, 0, 0),
  23604. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23605. 0, 0, 0, 0),
  23606. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23607. 0, 0, 0, 0),
  23608. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23609. 0, 0, 0, 0),
  23610. /* incall */
  23611. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23612. 0, 0, 0, 0),
  23613. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23614. 0, 0, 0, 0),
  23615. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23616. 0, 0, 0, 0),
  23617. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23618. 0, 0, 0, 0),
  23619. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23620. 0, 0, 0, 0),
  23621. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23622. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23623. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23624. 0, 0, 0, 0),
  23625. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23626. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23627. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23628. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23629. 0, 0, 0, 0),
  23630. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23631. 0, 0, 0, 0),
  23632. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23633. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23634. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23635. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23636. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23637. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23638. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23639. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23640. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23641. /* In- call recording */
  23642. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23643. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23644. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23645. 0, 0, 0, 0),
  23646. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23647. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23648. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23649. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23650. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23651. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23652. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23653. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23654. SND_SOC_DAPM_AIF_OUT("PROXY_RX", "Proxy Playback", 0, 0, 0, 0),
  23655. SND_SOC_DAPM_AIF_IN("PROXY_TX", "Proxy Capture", 0, 0, 0, 0),
  23656. /* Switch Definitions */
  23657. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23658. &slim_fm_switch_mixer_controls),
  23659. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23660. &slim1_fm_switch_mixer_controls),
  23661. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23662. &slim3_fm_switch_mixer_controls),
  23663. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23664. &slim4_fm_switch_mixer_controls),
  23665. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23666. &slim6_fm_switch_mixer_controls),
  23667. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23668. &pcm_rx_switch_mixer_controls),
  23669. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23670. &sco_slim7_switch_mixer_controls),
  23671. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23672. &hfp_pri_aux_switch_mixer_controls),
  23673. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23674. &hfp_aux_switch_mixer_controls),
  23675. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23676. &hfp_int_switch_mixer_controls),
  23677. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23678. &hfp_slim7_switch_mixer_controls),
  23679. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23680. &usb_switch_mixer_controls),
  23681. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23682. &a2dp_slim7_switch_mixer_controls),
  23683. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23684. &cdc_dma_wsa_switch_mixer_controls),
  23685. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23686. &cdc_dma_rx_switch_mixer_controls),
  23687. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23688. &cdc_dma_rx_1_switch_mixer_controls),
  23689. /* Mixer definitions */
  23690. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23691. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23692. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23693. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23694. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23695. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23696. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23697. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23698. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23699. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23700. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23701. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23702. SND_SOC_DAPM_MIXER("HDMI_MS Mixer", SND_SOC_NOPM, 0, 0,
  23703. hdmi_ms_mixer_controls, ARRAY_SIZE(hdmi_ms_mixer_controls)),
  23704. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23705. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23706. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23707. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23708. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23709. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23710. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23711. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23712. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23713. wsa_cdc_dma_rx_0_mixer_controls,
  23714. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23715. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23716. wsa_cdc_dma_rx_1_mixer_controls,
  23717. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23718. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23719. rx_cdc_dma_rx_0_mixer_controls,
  23720. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23721. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23722. rx_cdc_dma_rx_1_mixer_controls,
  23723. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23724. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23725. rx_cdc_dma_rx_2_mixer_controls,
  23726. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23727. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23728. rx_cdc_dma_rx_3_mixer_controls,
  23729. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23730. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23731. rx_cdc_dma_rx_4_mixer_controls,
  23732. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23733. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23734. rx_cdc_dma_rx_5_mixer_controls,
  23735. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23736. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23737. rx_cdc_dma_rx_6_mixer_controls,
  23738. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23739. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23740. rx_cdc_dma_rx_7_mixer_controls,
  23741. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23742. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23743. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23744. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23745. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23746. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23747. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23748. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23749. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23750. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23751. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23752. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23753. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23754. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23755. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23756. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23757. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23758. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23759. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23760. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23761. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23762. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23763. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23764. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23765. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23766. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23767. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23768. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23769. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23771. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23772. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23773. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23774. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23775. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  23777. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  23778. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  23779. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  23780. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23781. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23782. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23783. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23784. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23785. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23786. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23787. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23788. SND_SOC_DAPM_MIXER("MultiMedia31 Mixer", SND_SOC_NOPM, 0, 0,
  23789. mmul31_mixer_controls, ARRAY_SIZE(mmul31_mixer_controls)),
  23790. SND_SOC_DAPM_MIXER("MultiMedia32 Mixer", SND_SOC_NOPM, 0, 0,
  23791. mmul32_mixer_controls, ARRAY_SIZE(mmul32_mixer_controls)),
  23792. SND_SOC_DAPM_MIXER("MultiMedia33 Mixer", SND_SOC_NOPM, 0, 0,
  23793. mmul33_mixer_controls, ARRAY_SIZE(mmul33_mixer_controls)),
  23794. SND_SOC_DAPM_MIXER("MultiMedia34 Mixer", SND_SOC_NOPM, 0, 0,
  23795. mmul34_mixer_controls, ARRAY_SIZE(mmul34_mixer_controls)),
  23796. /* incall */
  23797. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23798. incall_music_delivery_mixer_controls,
  23799. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23800. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23801. incall_music2_delivery_mixer_controls,
  23802. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23803. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23804. slimbus_4_rx_mixer_controls,
  23805. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23806. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23807. slimbus_6_rx_mixer_controls,
  23808. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23809. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23810. usb_audio_rx_mixer_controls,
  23811. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23812. /* Voice Mixer */
  23813. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23814. SND_SOC_NOPM, 0, 0,
  23815. slimbus_rx_voice_mixer_controls,
  23816. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23817. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23818. SND_SOC_NOPM, 0, 0,
  23819. bt_sco_rx_voice_mixer_controls,
  23820. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23821. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23822. SND_SOC_NOPM, 0, 0,
  23823. afe_pcm_rx_voice_mixer_controls,
  23824. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23825. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23826. SND_SOC_NOPM, 0, 0,
  23827. aux_pcm_rx_voice_mixer_controls,
  23828. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23829. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23830. SND_SOC_NOPM, 0, 0,
  23831. hdmi_rx_voice_mixer_controls,
  23832. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23833. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23834. SND_SOC_NOPM, 0, 0,
  23835. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23836. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23837. SND_SOC_DAPM_MIXER("PROXY_RX_Voice Mixer",
  23838. SND_SOC_NOPM, 0, 0,
  23839. proxy_rx_voice_mixer_controls,
  23840. ARRAY_SIZE(proxy_rx_voice_mixer_controls)),
  23841. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23842. SND_SOC_NOPM, 0, 0,
  23843. rx_cdc_dma_rx_0_voice_mixer_controls,
  23844. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23845. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  23846. SND_SOC_NOPM, 0, 0,
  23847. rx_cdc_dma_rx_1_voice_mixer_controls,
  23848. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  23849. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23850. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23851. ARRAY_SIZE(tx_voip_mixer_controls)),
  23852. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23853. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23854. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23855. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23856. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23857. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23858. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23859. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23860. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23861. int_bt_a2dp_rx_mixer_controls,
  23862. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23863. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23864. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23865. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23866. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23867. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23868. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23869. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23870. tx_voice2_stub_mixer_controls,
  23871. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23872. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23873. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23874. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23875. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23876. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23877. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23878. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23879. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23880. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23881. SND_SOC_NOPM, 0, 0,
  23882. slimbus_6_rx_voice_mixer_controls,
  23883. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23884. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23885. slimbus_7_rx_voice_mixer_controls,
  23886. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23887. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23888. slimbus_8_rx_voice_mixer_controls,
  23889. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23890. /* port mixer */
  23891. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23892. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23893. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23894. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23895. sbus_1_rx_port_mixer_controls,
  23896. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23897. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23898. bt_sco_rx_port_mixer_controls,
  23899. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23900. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23901. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23902. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23903. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23904. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23905. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23906. SND_SOC_DAPM_MIXER("HDMI_RX_MS Port Mixer",
  23907. SND_SOC_NOPM, 0, 0, hdmi_rx_ms_port_mixer_controls,
  23908. ARRAY_SIZE(hdmi_rx_ms_port_mixer_controls)),
  23909. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23910. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23911. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23912. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23913. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23914. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23915. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23916. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23917. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23918. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23919. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23920. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23921. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23922. wsa_cdc_dma_rx_0_port_mixer_controls,
  23923. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23924. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23925. rx_cdc_dma_rx_0_port_mixer_controls,
  23926. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23927. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23928. rx_cdc_dma_rx_1_port_mixer_controls,
  23929. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  23930. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23931. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23932. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23933. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23934. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23935. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23936. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23937. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23938. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23939. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23940. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23941. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23942. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23943. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23944. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23945. /* lsm mixer definitions */
  23946. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23947. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23948. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23949. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23950. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23951. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23952. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23953. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23954. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23955. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23956. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23957. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23958. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23959. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23960. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23961. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23962. /* Virtual Pins to force backends ON atm */
  23963. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23964. SND_SOC_DAPM_INPUT("BE_IN"),
  23965. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23966. &slim0_rx_vi_fb_lch_mux),
  23967. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23968. &slim0_rx_vi_fb_rch_mux),
  23969. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23970. &wsa_rx_0_vi_fb_lch_mux),
  23971. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23972. &wsa_rx_0_vi_fb_rch_mux),
  23973. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23974. &voc_ext_ec_mux),
  23975. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23976. &ext_ec_ref_mux_ul1),
  23977. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23978. &ext_ec_ref_mux_ul2),
  23979. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23980. &ext_ec_ref_mux_ul3),
  23981. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23982. &ext_ec_ref_mux_ul4),
  23983. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23984. &ext_ec_ref_mux_ul5),
  23985. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23986. &ext_ec_ref_mux_ul6),
  23987. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23988. &ext_ec_ref_mux_ul8),
  23989. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23990. &ext_ec_ref_mux_ul9),
  23991. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23992. &ext_ec_ref_mux_ul10),
  23993. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23994. &ext_ec_ref_mux_ul16),
  23995. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23996. &ext_ec_ref_mux_ul17),
  23997. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23998. &ext_ec_ref_mux_ul18),
  23999. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24000. &ext_ec_ref_mux_ul19),
  24001. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24002. &ext_ec_ref_mux_ul28),
  24003. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24004. &ext_ec_ref_mux_ul29),
  24005. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL30 MUX", SND_SOC_NOPM, 0, 0,
  24006. &ext_ec_ref_mux_ul30),
  24007. };
  24008. #ifndef CONFIG_AUXPCM_DISABLE
  24009. static const struct snd_soc_dapm_widget msm_qdsp6_widgets_aux_pcm[] = {
  24010. /* Frontend AIF */
  24011. /* Widget name equals to Front-End DAI name<Need confirmation>,
  24012. * Stream name must contains substring of front-end dai name
  24013. */
  24014. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  24015. 0, 0, 0, 0),
  24016. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  24017. 0, 0, 0, 0),
  24018. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  24019. 0, 0, 0, 0),
  24020. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  24021. 0, 0, 0, 0),
  24022. /* LSM */
  24023. /* Backend AIF */
  24024. /* Stream name equals to backend dai link stream name */
  24025. /* incall */
  24026. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  24027. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  24028. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  24029. 0, 0, 0, 0),
  24030. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  24031. 0, 0, 0, 0),
  24032. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  24033. 0, 0, 0, 0),
  24034. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  24035. 0, 0, 0, 0),
  24036. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  24037. 0, 0, 0, 0),
  24038. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  24039. 0, 0, 0, 0),
  24040. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  24041. 0, 0, 0, 0),
  24042. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  24043. 0, 0, 0, 0),
  24044. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  24045. 0, 0, 0, 0),
  24046. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  24047. 0, 0, 0, 0),
  24048. /* In- call recording */
  24049. /* Switch Definitions */
  24050. /* Mixer definitions */
  24051. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24052. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  24053. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24054. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  24055. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24056. tert_auxpcm_rx_mixer_controls,
  24057. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  24058. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24059. quat_auxpcm_rx_mixer_controls,
  24060. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  24061. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24062. quin_auxpcm_rx_mixer_controls,
  24063. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  24064. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24065. sen_auxpcm_rx_mixer_controls,
  24066. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  24067. /* incall */
  24068. /* Voice Mixer */
  24069. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24070. SND_SOC_NOPM, 0, 0,
  24071. sec_aux_pcm_rx_voice_mixer_controls,
  24072. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24073. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24074. SND_SOC_NOPM, 0, 0,
  24075. tert_aux_pcm_rx_voice_mixer_controls,
  24076. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24077. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24078. SND_SOC_NOPM, 0, 0,
  24079. quat_aux_pcm_rx_voice_mixer_controls,
  24080. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24081. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24082. SND_SOC_NOPM, 0, 0,
  24083. quin_aux_pcm_rx_voice_mixer_controls,
  24084. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24085. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24086. SND_SOC_NOPM, 0, 0,
  24087. sen_aux_pcm_rx_voice_mixer_controls,
  24088. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24089. /* port mixer */
  24090. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24091. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24092. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24093. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24094. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24095. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24096. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24097. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24098. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24099. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24100. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24101. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24102. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24103. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24104. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24105. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24106. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24107. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24108. };
  24109. #endif
  24110. #ifndef CONFIG_MI2S_DISABLE
  24111. static const struct snd_soc_dapm_widget msm_qdsp6_widgets_mi2s[] = {
  24112. /* Frontend AIF */
  24113. /* Widget name equals to Front-End DAI name<Need confirmation>,
  24114. * Stream name must contains substring of front-end dai name
  24115. */
  24116. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  24117. 0, 0, 0, 0),
  24118. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  24119. "INT0 MI2S_RX Hostless Playback",
  24120. 0, 0, 0, 0),
  24121. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  24122. "INT4 MI2S_RX Hostless Playback",
  24123. 0, 0, 0, 0),
  24124. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  24125. "Primary MI2S_RX Hostless Playback",
  24126. 0, 0, 0, 0),
  24127. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  24128. "Secondary MI2S_RX Hostless Playback",
  24129. 0, 0, 0, 0),
  24130. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  24131. "Tertiary MI2S_RX Hostless Playback",
  24132. 0, 0, 0, 0),
  24133. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  24134. "Quaternary MI2S_RX Hostless Playback",
  24135. 0, 0, 0, 0),
  24136. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  24137. "Quinary MI2S_RX Hostless Playback",
  24138. 0, 0, 0, 0),
  24139. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  24140. "Senary MI2S_RX Hostless Playback",
  24141. 0, 0, 0, 0),
  24142. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  24143. 0, 0, 0, 0),
  24144. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  24145. "INT3 MI2S_TX Hostless Capture",
  24146. 0, 0, 0, 0),
  24147. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  24148. "Tertiary MI2S_TX Hostless Capture",
  24149. 0, 0, 0, 0),
  24150. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  24151. "Secondary MI2S_TX Hostless Capture",
  24152. 0, 0, 0, 0),
  24153. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  24154. "Primary MI2S_TX Hostless Capture",
  24155. 0, 0, 0, 0),
  24156. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  24157. 0, 0, 0, 0),
  24158. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  24159. "Quaternary MI2S_TX Hostless Capture",
  24160. 0, 0, 0, 0),
  24161. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  24162. "Quinary MI2S_TX Hostless Capture",
  24163. 0, 0, 0, 0),
  24164. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  24165. "Senary MI2S_TX Hostless Capture",
  24166. 0, 0, 0, 0),
  24167. /* LSM */
  24168. /* Backend AIF */
  24169. /* Stream name equals to backend dai link stream name */
  24170. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  24171. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  24172. 0, 0, 0, 0),
  24173. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  24174. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  24175. 0, 0, 0, 0),
  24176. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  24177. 0, 0, 0, 0),
  24178. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  24179. 0, 0, 0, 0),
  24180. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  24181. "Secondary MI2S Playback SD1",
  24182. 0, 0, 0, 0),
  24183. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  24184. 0, 0, 0, 0),
  24185. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  24186. 0, 0, 0, 0),
  24187. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  24188. 0, 0, 0, 0),
  24189. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  24190. 0, 0, 0, 0),
  24191. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  24192. 0, 0, 0, 0),
  24193. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  24194. 0, 0, 0, 0),
  24195. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  24196. 0, 0, 0, 0),
  24197. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  24198. 0, 0, 0, 0),
  24199. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  24200. 0, 0, 0, 0),
  24201. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  24202. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  24203. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  24204. 0, 0, 0, 0),
  24205. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  24206. 0, 0, 0, 0),
  24207. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  24208. 0, 0, 0, 0),
  24209. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  24210. 0, 0, 0, 0),
  24211. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  24212. 0, 0, 0, 0),
  24213. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  24214. 0, 0, 0, 0),
  24215. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  24216. 0, 0, 0, 0),
  24217. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  24218. 0, 0, 0, 0),
  24219. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  24220. 0, 0, 0, 0),
  24221. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  24222. 0, 0, 0, 0),
  24223. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  24224. 0, 0, 0, 0),
  24225. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  24226. 0, 0, 0, 0),
  24227. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  24228. 0, 0, 0, 0),
  24229. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24230. &int0_mi2s_rx_switch_mixer_controls),
  24231. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24232. &int4_mi2s_rx_switch_mixer_controls),
  24233. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24234. &pri_mi2s_rx_switch_mixer_controls),
  24235. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24236. &sec_mi2s_rx_switch_mixer_controls),
  24237. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24238. &tert_mi2s_rx_switch_mixer_controls),
  24239. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24240. &quat_mi2s_rx_switch_mixer_controls),
  24241. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24242. &quin_mi2s_rx_switch_mixer_controls),
  24243. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24244. &sen_mi2s_rx_switch_mixer_controls),
  24245. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24246. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  24247. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24248. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  24249. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24250. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  24251. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24252. quaternary_mi2s_rx_mixer_controls,
  24253. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  24254. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24255. tertiary_mi2s_rx_mixer_controls,
  24256. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  24257. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24258. secondary_mi2s_rx_mixer_controls,
  24259. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  24260. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24261. secondary_mi2s_rx2_mixer_controls,
  24262. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  24263. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24264. primary_mi2s_rx_mixer_controls,
  24265. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  24266. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24267. int0_mi2s_rx_mixer_controls,
  24268. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  24269. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24270. int4_mi2s_rx_mixer_controls,
  24271. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  24272. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24273. quinary_mi2s_rx_mixer_controls,
  24274. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  24275. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24276. senary_mi2s_rx_mixer_controls,
  24277. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  24278. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24279. pri_meta_mi2s_rx_mixer_controls,
  24280. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  24281. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24282. sec_meta_mi2s_rx_mixer_controls,
  24283. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  24284. /* incall */
  24285. /* Voice Mixer */
  24286. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  24287. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  24288. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  24289. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  24290. SND_SOC_NOPM, 0, 0,
  24291. sec_i2s_rx_voice_mixer_controls,
  24292. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  24293. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  24294. SND_SOC_NOPM, 0, 0,
  24295. sec_mi2s_rx_voice_mixer_controls,
  24296. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  24297. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24298. SND_SOC_NOPM, 0, 0,
  24299. mi2s_rx_voice_mixer_controls,
  24300. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24301. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24302. SND_SOC_NOPM, 0, 0,
  24303. pri_mi2s_rx_voice_mixer_controls,
  24304. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24305. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24306. SND_SOC_NOPM, 0, 0,
  24307. int0_mi2s_rx_voice_mixer_controls,
  24308. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24309. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24310. SND_SOC_NOPM, 0, 0,
  24311. int4_mi2s_rx_voice_mixer_controls,
  24312. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24313. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24314. SND_SOC_NOPM, 0, 0,
  24315. tert_mi2s_rx_voice_mixer_controls,
  24316. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24317. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24318. SND_SOC_NOPM, 0, 0,
  24319. quat_mi2s_rx_voice_mixer_controls,
  24320. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24321. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24322. SND_SOC_NOPM, 0, 0,
  24323. quin_mi2s_rx_voice_mixer_controls,
  24324. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24325. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24326. SND_SOC_NOPM, 0, 0,
  24327. sen_mi2s_rx_voice_mixer_controls,
  24328. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24329. /* port mixer */
  24330. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24331. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24332. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24333. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24334. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24335. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24336. primary_mi2s_rx_port_mixer_controls,
  24337. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24338. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24339. sec_mi2s_rx_port_mixer_controls,
  24340. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24341. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24342. tert_mi2s_rx_port_mixer_controls,
  24343. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24344. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24345. quat_mi2s_rx_port_mixer_controls,
  24346. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24347. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24348. quin_mi2s_rx_port_mixer_controls,
  24349. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24350. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24351. sen_mi2s_rx_port_mixer_controls,
  24352. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24353. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24354. int0_mi2s_rx_port_mixer_controls,
  24355. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24356. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24357. int4_mi2s_rx_port_mixer_controls,
  24358. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24359. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24360. &mi2s_rx_vi_fb_mux),
  24361. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24362. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24363. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24364. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24365. };
  24366. #endif
  24367. #ifndef CONFIG_TDM_DISABLE
  24368. static const struct snd_soc_dapm_widget msm_qdsp6_widgets_tdm[] = {
  24369. /* Frontend AIF */
  24370. /* Widget name equals to Front-End DAI name<Need confirmation>,
  24371. * Stream name must contains substring of front-end dai name
  24372. */
  24373. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  24374. "Primary TDM0 Hostless Playback",
  24375. 0, 0, 0, 0),
  24376. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  24377. "Primary TDM0 Hostless Capture",
  24378. 0, 0, 0, 0),
  24379. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  24380. "Primary TDM1 Hostless Playback",
  24381. 0, 0, 0, 0),
  24382. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  24383. "Primary TDM1 Hostless Capture",
  24384. 0, 0, 0, 0),
  24385. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  24386. "Primary TDM2 Hostless Playback",
  24387. 0, 0, 0, 0),
  24388. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  24389. "Primary TDM2 Hostless Capture",
  24390. 0, 0, 0, 0),
  24391. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  24392. "Primary TDM3 Hostless Playback",
  24393. 0, 0, 0, 0),
  24394. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  24395. "Primary TDM3 Hostless Capture",
  24396. 0, 0, 0, 0),
  24397. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  24398. "Primary TDM4 Hostless Playback",
  24399. 0, 0, 0, 0),
  24400. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  24401. "Primary TDM4 Hostless Capture",
  24402. 0, 0, 0, 0),
  24403. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  24404. "Primary TDM5 Hostless Playback",
  24405. 0, 0, 0, 0),
  24406. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  24407. "Primary TDM5 Hostless Capture",
  24408. 0, 0, 0, 0),
  24409. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  24410. "Primary TDM6 Hostless Playback",
  24411. 0, 0, 0, 0),
  24412. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  24413. "Primary TDM6 Hostless Capture",
  24414. 0, 0, 0, 0),
  24415. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  24416. "Primary TDM7 Hostless Playback",
  24417. 0, 0, 0, 0),
  24418. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  24419. "Primary TDM7 Hostless Capture",
  24420. 0, 0, 0, 0),
  24421. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  24422. "Secondary TDM0 Hostless Playback",
  24423. 0, 0, 0, 0),
  24424. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  24425. "Secondary TDM0 Hostless Capture",
  24426. 0, 0, 0, 0),
  24427. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  24428. "Secondary TDM1 Hostless Playback",
  24429. 0, 0, 0, 0),
  24430. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  24431. "Secondary TDM1 Hostless Capture",
  24432. 0, 0, 0, 0),
  24433. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  24434. "Secondary TDM2 Hostless Playback",
  24435. 0, 0, 0, 0),
  24436. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  24437. "Secondary TDM2 Hostless Capture",
  24438. 0, 0, 0, 0),
  24439. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  24440. "Secondary TDM3 Hostless Playback",
  24441. 0, 0, 0, 0),
  24442. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  24443. "Secondary TDM3 Hostless Capture",
  24444. 0, 0, 0, 0),
  24445. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  24446. "Secondary TDM4 Hostless Playback",
  24447. 0, 0, 0, 0),
  24448. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  24449. "Secondary TDM4 Hostless Capture",
  24450. 0, 0, 0, 0),
  24451. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  24452. "Secondary TDM5 Hostless Playback",
  24453. 0, 0, 0, 0),
  24454. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  24455. "Secondary TDM5 Hostless Capture",
  24456. 0, 0, 0, 0),
  24457. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  24458. "Secondary TDM6 Hostless Playback",
  24459. 0, 0, 0, 0),
  24460. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  24461. "Secondary TDM6 Hostless Capture",
  24462. 0, 0, 0, 0),
  24463. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  24464. "Secondary TDM7 Hostless Playback",
  24465. 0, 0, 0, 0),
  24466. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  24467. "Secondary TDM7 Hostless Capture",
  24468. 0, 0, 0, 0),
  24469. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  24470. "Tertiary TDM0 Hostless Playback",
  24471. 0, 0, 0, 0),
  24472. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  24473. "Tertiary TDM0 Hostless Capture",
  24474. 0, 0, 0, 0),
  24475. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  24476. "Tertiary TDM1 Hostless Playback",
  24477. 0, 0, 0, 0),
  24478. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  24479. "Tertiary TDM1 Hostless Capture",
  24480. 0, 0, 0, 0),
  24481. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  24482. "Tertiary TDM2 Hostless Playback",
  24483. 0, 0, 0, 0),
  24484. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  24485. "Tertiary TDM2 Hostless Capture",
  24486. 0, 0, 0, 0),
  24487. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  24488. "Tertiary TDM3 Hostless Playback",
  24489. 0, 0, 0, 0),
  24490. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  24491. "Tertiary TDM3 Hostless Capture",
  24492. 0, 0, 0, 0),
  24493. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  24494. "Tertiary TDM4 Hostless Playback",
  24495. 0, 0, 0, 0),
  24496. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  24497. "Tertiary TDM4 Hostless Capture",
  24498. 0, 0, 0, 0),
  24499. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  24500. "Tertiary TDM5 Hostless Playback",
  24501. 0, 0, 0, 0),
  24502. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  24503. "Tertiary TDM5 Hostless Capture",
  24504. 0, 0, 0, 0),
  24505. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  24506. "Tertiary TDM6 Hostless Playback",
  24507. 0, 0, 0, 0),
  24508. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  24509. "Tertiary TDM6 Hostless Capture",
  24510. 0, 0, 0, 0),
  24511. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  24512. "Tertiary TDM7 Hostless Playback",
  24513. 0, 0, 0, 0),
  24514. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  24515. "Tertiary TDM7 Hostless Capture",
  24516. 0, 0, 0, 0),
  24517. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  24518. "Quaternary TDM0 Hostless Playback",
  24519. 0, 0, 0, 0),
  24520. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  24521. "Quaternary TDM0 Hostless Capture",
  24522. 0, 0, 0, 0),
  24523. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  24524. "Quaternary TDM1 Hostless Playback",
  24525. 0, 0, 0, 0),
  24526. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  24527. "Quaternary TDM1 Hostless Capture",
  24528. 0, 0, 0, 0),
  24529. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  24530. "Quaternary TDM2 Hostless Playback",
  24531. 0, 0, 0, 0),
  24532. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  24533. "Quaternary TDM2 Hostless Capture",
  24534. 0, 0, 0, 0),
  24535. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  24536. "Quaternary TDM3 Hostless Playback",
  24537. 0, 0, 0, 0),
  24538. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  24539. "Quaternary TDM3 Hostless Capture",
  24540. 0, 0, 0, 0),
  24541. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  24542. "Quaternary TDM4 Hostless Playback",
  24543. 0, 0, 0, 0),
  24544. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  24545. "Quaternary TDM4 Hostless Capture",
  24546. 0, 0, 0, 0),
  24547. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  24548. "Quaternary TDM5 Hostless Playback",
  24549. 0, 0, 0, 0),
  24550. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  24551. "Quaternary TDM5 Hostless Capture",
  24552. 0, 0, 0, 0),
  24553. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  24554. "Quaternary TDM6 Hostless Playback",
  24555. 0, 0, 0, 0),
  24556. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  24557. "Quaternary TDM6 Hostless Capture",
  24558. 0, 0, 0, 0),
  24559. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  24560. "Quaternary TDM7 Hostless Playback",
  24561. 0, 0, 0, 0),
  24562. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  24563. "Quaternary TDM7 Hostless Capture",
  24564. 0, 0, 0, 0),
  24565. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  24566. "Quinary TDM0 Hostless Playback",
  24567. 0, 0, 0, 0),
  24568. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  24569. "Quinary TDM0 Hostless Capture",
  24570. 0, 0, 0, 0),
  24571. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  24572. "Quinary TDM1 Hostless Playback",
  24573. 0, 0, 0, 0),
  24574. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  24575. "Quinary TDM1 Hostless Capture",
  24576. 0, 0, 0, 0),
  24577. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  24578. "Quinary TDM2 Hostless Playback",
  24579. 0, 0, 0, 0),
  24580. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  24581. "Quinary TDM2 Hostless Capture",
  24582. 0, 0, 0, 0),
  24583. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  24584. "Quinary TDM3 Hostless Playback",
  24585. 0, 0, 0, 0),
  24586. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  24587. "Quinary TDM3 Hostless Capture",
  24588. 0, 0, 0, 0),
  24589. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  24590. "Quinary TDM4 Hostless Playback",
  24591. 0, 0, 0, 0),
  24592. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  24593. "Quinary TDM4 Hostless Capture",
  24594. 0, 0, 0, 0),
  24595. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  24596. "Quinary TDM5 Hostless Playback",
  24597. 0, 0, 0, 0),
  24598. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  24599. "Quinary TDM5 Hostless Capture",
  24600. 0, 0, 0, 0),
  24601. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  24602. "Quinary TDM6 Hostless Playback",
  24603. 0, 0, 0, 0),
  24604. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  24605. "Quinary TDM6 Hostless Capture",
  24606. 0, 0, 0, 0),
  24607. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  24608. "Quinary TDM7 Hostless Playback",
  24609. 0, 0, 0, 0),
  24610. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  24611. "Quinary TDM7 Hostless Capture",
  24612. 0, 0, 0, 0),
  24613. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  24614. "Senary TDM0 Hostless Playback",
  24615. 0, 0, 0, 0),
  24616. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  24617. "Senary TDM0 Hostless Capture",
  24618. 0, 0, 0, 0),
  24619. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  24620. "Senary TDM1 Hostless Playback",
  24621. 0, 0, 0, 0),
  24622. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  24623. "Senary TDM1 Hostless Capture",
  24624. 0, 0, 0, 0),
  24625. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  24626. "Senary TDM2 Hostless Playback",
  24627. 0, 0, 0, 0),
  24628. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  24629. "Senary TDM2 Hostless Capture",
  24630. 0, 0, 0, 0),
  24631. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  24632. "Senary TDM3 Hostless Playback",
  24633. 0, 0, 0, 0),
  24634. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  24635. "Senary TDM3 Hostless Capture",
  24636. 0, 0, 0, 0),
  24637. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  24638. "Senary TDM4 Hostless Playback",
  24639. 0, 0, 0, 0),
  24640. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  24641. "Senary TDM4 Hostless Capture",
  24642. 0, 0, 0, 0),
  24643. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  24644. "Senary TDM5 Hostless Playback",
  24645. 0, 0, 0, 0),
  24646. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  24647. "Senary TDM5 Hostless Capture",
  24648. 0, 0, 0, 0),
  24649. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  24650. "Senary TDM6 Hostless Playback",
  24651. 0, 0, 0, 0),
  24652. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  24653. "Senary TDM6 Hostless Capture",
  24654. 0, 0, 0, 0),
  24655. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  24656. "Senary TDM7 Hostless Playback",
  24657. 0, 0, 0, 0),
  24658. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  24659. "Senary TDM7 Hostless Capture",
  24660. 0, 0, 0, 0),
  24661. /* Backend AIF */
  24662. /* Stream name equals to backend dai link stream name */
  24663. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  24664. 0, 0, 0, 0),
  24665. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  24666. 0, 0, 0, 0),
  24667. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  24668. 0, 0, 0, 0),
  24669. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  24670. 0, 0, 0, 0),
  24671. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  24672. 0, 0, 0, 0),
  24673. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  24674. 0, 0, 0, 0),
  24675. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  24676. 0, 0, 0, 0),
  24677. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  24678. 0, 0, 0, 0),
  24679. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  24680. 0, 0, 0, 0),
  24681. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  24682. 0, 0, 0, 0),
  24683. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  24684. 0, 0, 0, 0),
  24685. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  24686. 0, 0, 0, 0),
  24687. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  24688. 0, 0, 0, 0),
  24689. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  24690. 0, 0, 0, 0),
  24691. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  24692. 0, 0, 0, 0),
  24693. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  24694. 0, 0, 0, 0),
  24695. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  24696. 0, 0, 0, 0),
  24697. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  24698. 0, 0, 0, 0),
  24699. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  24700. 0, 0, 0, 0),
  24701. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  24702. 0, 0, 0, 0),
  24703. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  24704. 0, 0, 0, 0),
  24705. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  24706. 0, 0, 0, 0),
  24707. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  24708. 0, 0, 0, 0),
  24709. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  24710. 0, 0, 0, 0),
  24711. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  24712. 0, 0, 0, 0),
  24713. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  24714. 0, 0, 0, 0),
  24715. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  24716. 0, 0, 0, 0),
  24717. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  24718. 0, 0, 0, 0),
  24719. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  24720. 0, 0, 0, 0),
  24721. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  24722. 0, 0, 0, 0),
  24723. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  24724. 0, 0, 0, 0),
  24725. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  24726. 0, 0, 0, 0),
  24727. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  24728. 0, 0, 0, 0),
  24729. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  24730. 0, 0, 0, 0),
  24731. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  24732. 0, 0, 0, 0),
  24733. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  24734. 0, 0, 0, 0),
  24735. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  24736. 0, 0, 0, 0),
  24737. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  24738. 0, 0, 0, 0),
  24739. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  24740. 0, 0, 0, 0),
  24741. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  24742. 0, 0, 0, 0),
  24743. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  24744. 0, 0, 0, 0),
  24745. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  24746. 0, 0, 0, 0),
  24747. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  24748. 0, 0, 0, 0),
  24749. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  24750. 0, 0, 0, 0),
  24751. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  24752. 0, 0, 0, 0),
  24753. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  24754. 0, 0, 0, 0),
  24755. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  24756. 0, 0, 0, 0),
  24757. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  24758. 0, 0, 0, 0),
  24759. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  24760. 0, 0, 0, 0),
  24761. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  24762. 0, 0, 0, 0),
  24763. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  24764. 0, 0, 0, 0),
  24765. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  24766. 0, 0, 0, 0),
  24767. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  24768. 0, 0, 0, 0),
  24769. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  24770. 0, 0, 0, 0),
  24771. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  24772. 0, 0, 0, 0),
  24773. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  24774. 0, 0, 0, 0),
  24775. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  24776. 0, 0, 0, 0),
  24777. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  24778. 0, 0, 0, 0),
  24779. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  24780. 0, 0, 0, 0),
  24781. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  24782. 0, 0, 0, 0),
  24783. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  24784. 0, 0, 0, 0),
  24785. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  24786. 0, 0, 0, 0),
  24787. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  24788. 0, 0, 0, 0),
  24789. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  24790. 0, 0, 0, 0),
  24791. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  24792. 0, 0, 0, 0),
  24793. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  24794. 0, 0, 0, 0),
  24795. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  24796. 0, 0, 0, 0),
  24797. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  24798. 0, 0, 0, 0),
  24799. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  24800. 0, 0, 0, 0),
  24801. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  24802. 0, 0, 0, 0),
  24803. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  24804. 0, 0, 0, 0),
  24805. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  24806. 0, 0, 0, 0),
  24807. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  24808. 0, 0, 0, 0),
  24809. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  24810. 0, 0, 0, 0),
  24811. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  24812. 0, 0, 0, 0),
  24813. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  24814. 0, 0, 0, 0),
  24815. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  24816. 0, 0, 0, 0),
  24817. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  24818. 0, 0, 0, 0),
  24819. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  24820. 0, 0, 0, 0),
  24821. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  24822. 0, 0, 0, 0),
  24823. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  24824. 0, 0, 0, 0),
  24825. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  24826. 0, 0, 0, 0),
  24827. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  24828. 0, 0, 0, 0),
  24829. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  24830. 0, 0, 0, 0),
  24831. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  24832. 0, 0, 0, 0),
  24833. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  24834. 0, 0, 0, 0),
  24835. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  24836. 0, 0, 0, 0),
  24837. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  24838. 0, 0, 0, 0),
  24839. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  24840. 0, 0, 0, 0),
  24841. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  24842. 0, 0, 0, 0),
  24843. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  24844. 0, 0, 0, 0),
  24845. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  24846. 0, 0, 0, 0),
  24847. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  24848. 0, 0, 0, 0),
  24849. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  24850. 0, 0, 0, 0),
  24851. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  24852. 0, 0, 0, 0),
  24853. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  24854. 0, 0, 0, 0),
  24855. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24856. pri_tdm_rx_0_mixer_controls,
  24857. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  24858. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24859. pri_tdm_rx_1_mixer_controls,
  24860. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  24861. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24862. pri_tdm_rx_2_mixer_controls,
  24863. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  24864. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24865. pri_tdm_rx_3_mixer_controls,
  24866. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  24867. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24868. sec_tdm_rx_0_mixer_controls,
  24869. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  24870. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24871. sec_tdm_rx_1_mixer_controls,
  24872. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  24873. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24874. sec_tdm_rx_2_mixer_controls,
  24875. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  24876. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24877. sec_tdm_rx_3_mixer_controls,
  24878. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  24879. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24880. tert_tdm_rx_0_mixer_controls,
  24881. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  24882. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24883. tert_tdm_rx_1_mixer_controls,
  24884. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  24885. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24886. tert_tdm_rx_2_mixer_controls,
  24887. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  24888. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24889. tert_tdm_rx_3_mixer_controls,
  24890. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  24891. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24892. tert_tdm_rx_4_mixer_controls,
  24893. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  24894. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24895. quat_tdm_rx_0_mixer_controls,
  24896. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  24897. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24898. quat_tdm_rx_1_mixer_controls,
  24899. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  24900. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24901. quat_tdm_rx_2_mixer_controls,
  24902. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  24903. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24904. quat_tdm_rx_3_mixer_controls,
  24905. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  24906. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24907. quin_tdm_rx_0_mixer_controls,
  24908. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  24909. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24910. quin_tdm_rx_1_mixer_controls,
  24911. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  24912. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24913. quin_tdm_rx_2_mixer_controls,
  24914. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  24915. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24916. quin_tdm_rx_3_mixer_controls,
  24917. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  24918. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24919. sen_tdm_rx_0_mixer_controls,
  24920. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  24921. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24922. sen_tdm_rx_1_mixer_controls,
  24923. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  24924. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24925. sen_tdm_rx_2_mixer_controls,
  24926. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  24927. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24928. sen_tdm_rx_3_mixer_controls,
  24929. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  24930. /* incall */
  24931. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24932. SND_SOC_NOPM, 0, 0,
  24933. pri_tdm_rx_0_voice_mixer_controls,
  24934. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24935. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24936. SND_SOC_NOPM, 0, 0,
  24937. pri_tdm_rx_1_voice_mixer_controls,
  24938. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24939. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24940. SND_SOC_NOPM, 0, 0,
  24941. pri_tdm_rx_2_voice_mixer_controls,
  24942. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24943. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24944. SND_SOC_NOPM, 0, 0,
  24945. pri_tdm_rx_3_voice_mixer_controls,
  24946. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24947. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24948. SND_SOC_NOPM, 0, 0,
  24949. quat_tdm_rx_2_voice_mixer_controls,
  24950. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24951. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24952. SND_SOC_NOPM, 0, 0,
  24953. quin_tdm_rx_2_voice_mixer_controls,
  24954. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24955. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24956. pri_tdm_rx_0_port_mixer_controls,
  24957. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24958. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24959. pri_tdm_rx_1_port_mixer_controls,
  24960. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24961. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24962. pri_tdm_rx_2_port_mixer_controls,
  24963. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24964. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24965. pri_tdm_rx_3_port_mixer_controls,
  24966. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24967. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24968. sec_tdm_rx_0_port_mixer_controls,
  24969. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24970. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24971. sec_tdm_rx_1_port_mixer_controls,
  24972. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24973. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24974. sec_tdm_rx_2_port_mixer_controls,
  24975. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24976. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24977. sec_tdm_rx_3_port_mixer_controls,
  24978. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24979. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24980. sec_tdm_rx_7_port_mixer_controls,
  24981. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24982. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24983. tert_tdm_rx_0_port_mixer_controls,
  24984. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24985. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24986. tert_tdm_rx_1_port_mixer_controls,
  24987. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24988. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24989. tert_tdm_rx_2_port_mixer_controls,
  24990. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24991. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24992. tert_tdm_rx_3_port_mixer_controls,
  24993. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24994. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24995. quat_tdm_rx_0_port_mixer_controls,
  24996. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24997. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24998. quat_tdm_rx_1_port_mixer_controls,
  24999. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  25000. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  25001. quat_tdm_rx_2_port_mixer_controls,
  25002. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  25003. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  25004. quat_tdm_rx_3_port_mixer_controls,
  25005. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  25006. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  25007. quat_tdm_rx_7_port_mixer_controls,
  25008. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  25009. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  25010. quin_tdm_rx_0_port_mixer_controls,
  25011. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  25012. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  25013. quin_tdm_rx_1_port_mixer_controls,
  25014. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  25015. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  25016. quin_tdm_rx_2_port_mixer_controls,
  25017. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  25018. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  25019. quin_tdm_rx_3_port_mixer_controls,
  25020. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  25021. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  25022. quin_tdm_rx_7_port_mixer_controls,
  25023. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  25024. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  25025. sen_tdm_rx_0_port_mixer_controls,
  25026. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  25027. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  25028. sen_tdm_rx_1_port_mixer_controls,
  25029. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  25030. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  25031. sen_tdm_rx_2_port_mixer_controls,
  25032. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  25033. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  25034. sen_tdm_rx_3_port_mixer_controls,
  25035. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  25036. };
  25037. #endif
  25038. static const struct snd_soc_dapm_route intercon[] = {
  25039. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25040. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25041. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25042. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25043. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25044. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25045. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25046. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25047. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25048. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25049. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25050. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25051. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25052. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25053. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25054. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25055. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25056. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  25057. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25058. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25059. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25060. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25061. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25062. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25063. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25064. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25065. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25066. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25067. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25068. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25069. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25070. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25071. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25072. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25073. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25074. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  25075. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25076. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25077. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25078. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25079. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25080. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25081. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25082. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25083. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25084. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25085. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25086. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25087. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25088. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25089. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25090. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25091. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25092. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  25093. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25094. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25095. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25096. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25097. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25098. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25099. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25100. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25101. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25102. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25103. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25104. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25105. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25106. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25107. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25108. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25109. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25110. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25111. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25112. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  25113. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25114. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25115. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25116. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25117. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25118. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25119. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25120. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25121. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25122. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25123. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25124. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25125. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25126. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25127. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25128. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25129. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25130. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25131. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25132. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  25133. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25134. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25135. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25136. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25137. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25138. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25139. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25140. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25141. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25142. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25143. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25144. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25145. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25146. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25147. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25148. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25149. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25150. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25151. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25152. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  25153. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25154. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25155. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25156. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25157. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25158. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25159. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25160. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25161. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25162. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25163. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25164. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25165. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25166. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25167. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25168. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25169. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25170. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25171. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25172. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  25173. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25174. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25175. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25176. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25177. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25178. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25179. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25180. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25181. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25182. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25183. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25184. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25185. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25186. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25187. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25188. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25189. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25190. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25191. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25192. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  25193. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25194. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25195. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25196. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25197. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25198. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25199. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25200. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25201. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25202. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25203. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25204. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25205. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25206. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25207. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25208. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25209. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25210. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25211. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25212. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  25213. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25214. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25215. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25216. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25217. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25218. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25219. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25220. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25221. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25222. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25223. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25224. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25225. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25226. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25227. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25228. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25229. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25230. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25231. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25232. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  25233. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25234. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25235. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25236. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25237. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25238. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25239. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25240. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25241. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25242. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25243. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25244. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25245. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25246. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25247. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25248. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25249. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25250. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25251. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25252. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  25253. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25254. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25255. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25256. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25257. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25258. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25259. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25260. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25261. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25262. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25263. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25264. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25265. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25266. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25267. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25268. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25269. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25270. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25271. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25272. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  25273. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25274. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25275. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25276. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25277. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25278. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25279. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25280. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25281. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25282. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25283. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25284. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25285. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25286. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25287. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25288. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25289. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25290. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25291. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25292. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  25293. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  25294. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  25295. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  25296. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  25297. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  25298. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  25299. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  25300. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  25301. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  25302. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  25303. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  25304. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  25305. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  25306. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  25307. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  25308. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  25309. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  25310. {"HDMI", NULL, "HDMI Mixer"},
  25311. {"HDMI_MS Mixer", "MultiMedia1", "MM_DL1"},
  25312. {"HDMI_MS Mixer", "MultiMedia2", "MM_DL2"},
  25313. {"HDMI_MS Mixer", "MultiMedia3", "MM_DL3"},
  25314. {"HDMI_MS Mixer", "MultiMedia4", "MM_DL4"},
  25315. {"HDMI_MS Mixer", "MultiMedia5", "MM_DL5"},
  25316. {"HDMI_MS Mixer", "MultiMedia6", "MM_DL6"},
  25317. {"HDMI_MS Mixer", "MultiMedia7", "MM_DL7"},
  25318. {"HDMI_MS Mixer", "MultiMedia8", "MM_DL8"},
  25319. {"HDMI_MS Mixer", "MultiMedia9", "MM_DL9"},
  25320. {"HDMI_MS Mixer", "MultiMedia10", "MM_DL10"},
  25321. {"HDMI_MS Mixer", "MultiMedia11", "MM_DL11"},
  25322. {"HDMI_MS Mixer", "MultiMedia12", "MM_DL12"},
  25323. {"HDMI_MS Mixer", "MultiMedia13", "MM_DL13"},
  25324. {"HDMI_MS Mixer", "MultiMedia14", "MM_DL14"},
  25325. {"HDMI_MS Mixer", "MultiMedia15", "MM_DL15"},
  25326. {"HDMI_MS Mixer", "MultiMedia16", "MM_DL16"},
  25327. {"HDMI_MS Mixer", "MultiMedia26", "MM_DL26"},
  25328. {"HDMI_MS", NULL, "HDMI_MS Mixer"},
  25329. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  25330. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  25331. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  25332. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  25333. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  25334. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  25335. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  25336. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  25337. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  25338. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  25339. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  25340. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  25341. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  25342. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  25343. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  25344. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  25345. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  25346. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  25347. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  25348. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  25349. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  25350. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  25351. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  25352. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  25353. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  25354. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  25355. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  25356. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  25357. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  25358. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  25359. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  25360. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  25361. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  25362. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  25363. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  25364. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  25365. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25366. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25367. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25368. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25369. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25370. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25371. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25372. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25373. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25374. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25375. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25376. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25377. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25378. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25379. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25380. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25381. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25382. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  25383. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25384. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25385. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25386. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25387. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25388. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25389. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25390. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25391. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25392. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25393. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25394. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25395. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25396. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25397. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25398. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25399. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25400. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  25401. /* incall */
  25402. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  25403. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  25404. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  25405. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  25406. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  25407. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  25408. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25409. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25410. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25411. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25412. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  25413. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25414. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25415. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25416. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25417. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  25418. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25419. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25420. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25421. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25422. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25423. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25424. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25425. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25426. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25427. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25428. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25429. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25430. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25431. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25432. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25433. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25434. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25435. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  25436. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25437. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25438. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25439. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25440. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25441. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25442. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25443. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25444. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25445. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25446. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25447. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25448. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25449. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25450. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25451. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25452. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25453. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia31", "MM_DL31"},
  25454. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  25455. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25456. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25457. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25458. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25459. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25460. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25461. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25462. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25463. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25464. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25465. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25466. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25467. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25468. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25469. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25470. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25471. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25472. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  25473. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25474. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25475. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25476. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25477. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25478. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25479. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25480. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25481. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25482. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25483. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25484. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25485. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25486. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25487. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25488. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25489. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25490. {"USB_AUDIO_RX Audio Mixer", "MultiMedia31", "MM_DL31"},
  25491. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  25492. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25493. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25494. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25495. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25496. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25497. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25498. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25499. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25500. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  25501. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25502. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25503. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25504. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25505. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25506. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25507. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25508. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25509. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25510. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25511. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25512. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25513. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25514. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25515. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25516. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25517. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25518. {"MultiMedia19 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25519. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25520. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25521. {"MultiMedia28 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25522. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25523. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25524. {"MultiMedia29 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25525. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25526. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25527. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25528. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25529. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25530. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25531. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25532. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25533. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25534. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25535. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25536. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25537. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25538. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25539. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25540. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25541. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25542. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25543. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25544. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25545. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25546. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25547. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25548. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25549. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25550. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25551. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25552. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25553. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25554. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25555. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25556. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25557. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25558. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25559. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25560. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25561. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25562. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25563. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25564. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25565. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25566. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25567. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25568. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25569. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25570. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25571. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25572. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25573. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25574. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25575. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25576. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25577. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25578. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25579. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25580. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25581. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25582. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25583. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25584. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25585. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25586. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25587. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25588. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25589. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25590. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25591. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25592. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25593. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25594. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25595. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25596. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25597. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25598. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25599. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25600. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25601. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25602. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25603. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25604. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25605. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25606. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25607. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25608. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25609. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25610. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25611. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25612. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25613. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25614. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25615. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25616. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25617. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25618. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25619. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25620. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25621. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25622. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25623. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25624. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25625. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25626. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25627. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25628. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25629. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25630. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25631. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25632. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25633. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25634. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25635. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25636. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25637. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25638. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25639. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25640. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25641. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25642. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25643. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25644. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25645. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25646. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25647. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25648. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25649. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25650. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25651. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25652. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25653. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25654. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25655. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25656. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25657. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25658. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25659. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25660. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25661. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25662. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25663. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25664. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25665. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25666. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25667. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25668. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25669. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25670. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25671. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25672. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25673. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25674. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25675. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25676. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25677. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25678. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25679. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25680. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25681. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25682. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25683. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25684. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25685. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25686. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25687. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25688. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25689. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25690. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25691. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25692. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25693. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25694. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25695. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25696. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25697. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25698. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25699. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25700. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25701. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25702. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25703. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25704. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25705. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25706. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25707. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25708. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25709. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25710. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25711. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25712. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25713. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25714. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25715. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25716. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25717. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25718. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25719. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25720. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25721. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25722. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25723. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25724. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25725. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25726. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25727. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25728. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25729. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25730. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25731. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25732. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25733. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25734. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25735. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25736. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25737. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25738. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25739. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25740. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25741. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25742. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25743. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25744. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25745. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25746. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25747. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25748. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25749. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25750. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25751. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25752. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25753. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25754. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25755. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25756. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25757. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25758. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25759. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25760. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25761. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25762. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25763. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25764. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25765. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25766. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25767. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25768. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25769. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25770. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25771. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25772. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25773. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25774. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25775. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25776. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25777. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25778. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25779. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25780. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25781. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25782. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25783. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25784. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25785. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25786. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25787. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25788. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25789. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25790. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25791. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25792. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25793. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25794. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25795. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25796. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25797. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25798. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25799. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25800. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25801. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25802. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25803. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25804. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25805. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25806. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25807. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25808. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25809. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25810. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25811. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25812. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25813. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25814. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25815. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25816. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25817. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25818. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25819. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25820. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25821. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25822. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25823. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25824. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25825. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25826. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25827. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25828. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25829. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25830. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25831. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25832. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25833. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25834. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25835. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25836. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25837. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25838. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25839. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25840. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25841. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25842. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25843. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25844. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25845. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25846. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25847. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25848. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25849. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25850. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25851. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25852. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25853. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25854. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25855. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25856. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25857. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25858. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25859. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25860. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25861. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25862. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25863. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25864. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25865. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25866. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25867. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25868. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25869. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25870. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25871. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25872. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25873. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25874. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25875. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25876. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25877. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25878. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25879. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25880. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25881. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25882. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25883. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25884. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25885. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25886. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25887. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25888. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25889. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25890. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25891. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25892. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25893. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25894. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25895. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25896. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25897. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25898. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25899. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25900. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25901. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25902. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25903. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25904. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25905. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25906. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25907. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25908. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25909. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25910. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25911. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25912. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25913. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25914. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25915. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25916. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25917. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25918. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25919. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25920. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25921. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25922. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25923. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25924. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25925. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25926. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25927. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25928. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25929. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25930. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25931. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25932. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25933. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25934. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25935. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25936. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25937. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25938. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25939. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25940. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25941. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25942. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25943. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25944. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25945. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25946. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25947. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25948. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25949. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25950. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25951. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25952. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25953. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25954. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25955. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25956. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25957. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25958. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25959. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25960. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25961. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25962. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25963. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25964. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25965. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25966. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  25967. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  25968. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25969. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25970. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25971. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25972. {"MM_UL31", NULL, "MultiMedia31 Mixer"},
  25973. {"MM_UL32", NULL, "MultiMedia32 Mixer"},
  25974. {"MM_UL33", NULL, "MultiMedia33 Mixer"},
  25975. {"MM_UL34", NULL, "MultiMedia34 Mixer"},
  25976. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25977. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25978. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25979. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25980. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25981. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25982. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25983. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25984. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25985. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25986. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25987. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25988. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25989. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25990. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25991. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25992. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25993. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25994. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25995. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25996. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25997. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25998. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25999. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26000. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26001. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26002. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26003. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26004. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26005. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26006. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26007. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26008. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26009. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26010. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26011. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26012. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26013. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26014. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26015. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26016. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26017. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26018. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26019. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26020. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26021. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26022. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26023. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26024. {"HDMI", NULL, "HDMI_DL_HL"},
  26025. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26026. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26027. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26028. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26029. {"PROXY_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26030. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  26031. {"PROXY_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26032. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  26033. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26034. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26035. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26036. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26037. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26038. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26039. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26040. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26041. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26042. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26043. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26044. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26045. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26046. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26047. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26048. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26049. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26050. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26051. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26052. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26053. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26054. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26055. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26056. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26057. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26058. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26059. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26060. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26061. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26062. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26063. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26064. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26065. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26066. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26067. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26068. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26069. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26070. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26071. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26072. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26073. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26074. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26075. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26076. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26077. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26078. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26079. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26080. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26081. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26082. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26083. {"VoiceMMode1_Tx Mixer", "PROXY_TX_MMode1", "PROXY_TX"},
  26084. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26085. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26086. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26087. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26088. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26089. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26090. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26091. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26092. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26093. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26094. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26095. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26096. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26097. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26098. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26099. {"VoiceMMode2_Tx Mixer", "PROXY_TX_MMode2", "PROXY_TX"},
  26100. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26101. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26102. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26103. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26104. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26105. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26106. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  26107. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  26108. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  26109. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  26110. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  26111. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  26112. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  26113. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  26114. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  26115. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  26116. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  26117. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  26118. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  26119. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  26120. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  26121. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  26122. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  26123. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  26124. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  26125. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  26126. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  26127. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  26128. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  26129. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  26130. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  26131. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26132. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  26133. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  26134. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26135. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26136. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26137. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  26138. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  26139. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26140. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26141. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26142. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26143. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26144. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26145. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26146. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26147. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26148. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  26149. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26150. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26151. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26152. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26153. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26154. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26155. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26156. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26157. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26158. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  26159. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26160. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26161. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26162. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26163. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26164. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26165. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26166. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26167. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26168. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  26169. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26170. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26171. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26172. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26173. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26174. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26175. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26176. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26177. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26178. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  26179. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26180. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26181. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26182. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26183. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26184. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26185. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26186. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26187. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26188. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  26189. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26190. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26191. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26192. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26193. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26194. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26195. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26196. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26197. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26198. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  26199. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26200. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26201. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26202. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26203. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26204. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26205. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26206. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26207. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26208. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  26209. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26210. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26211. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26212. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26213. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26214. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26215. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26216. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26217. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26218. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26219. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26220. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26221. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26222. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26223. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26224. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26225. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26226. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26227. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26228. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26229. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26230. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26231. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26232. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26233. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26234. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26235. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26236. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26237. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26238. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26239. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26240. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26241. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26242. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26243. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26244. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26245. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26246. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26247. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26248. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  26249. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26250. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26251. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26252. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26253. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26254. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26255. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26256. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26257. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26258. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26259. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26260. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26261. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26262. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26263. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26264. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26265. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  26266. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26267. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  26268. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  26269. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  26270. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  26271. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26272. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26273. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26274. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26275. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26276. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26277. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26278. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26279. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26280. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  26281. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26282. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26283. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26284. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26285. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26286. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26287. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26288. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26289. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26290. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  26291. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26292. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26293. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26294. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26295. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26296. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26297. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26298. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26299. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  26300. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26301. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26302. {"STUB_RX", NULL, "STUB_RX Mixer"},
  26303. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26304. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26305. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  26306. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26307. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26308. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  26309. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26310. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26311. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26312. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26313. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26314. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  26315. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26316. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26317. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26318. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26319. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26320. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  26321. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26322. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26323. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  26324. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26325. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26326. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  26327. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  26328. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  26329. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26330. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  26331. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  26332. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26333. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26334. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26335. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26336. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26337. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26338. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26339. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  26340. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  26341. {"HDMI_RX_MS Port Mixer", "MI2S_TX", "MI2S_TX"},
  26342. {"HDMI_MS", NULL, "HDMI_RX_MS Port Mixer"},
  26343. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  26344. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  26345. /* Backend Enablement */
  26346. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26347. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26348. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26349. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26350. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  26351. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  26352. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  26353. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  26354. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  26355. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  26356. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  26357. {"BE_OUT", NULL, "HDMI"},
  26358. {"BE_OUT", NULL, "HDMI_MS"},
  26359. {"BE_OUT", NULL, "DISPLAY_PORT"},
  26360. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  26361. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  26362. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  26363. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26364. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  26365. {"BE_OUT", NULL, "INT_FM_RX"},
  26366. {"BE_OUT", NULL, "PCM_RX"},
  26367. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26368. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26369. {"BE_OUT", NULL, "INT_FM_RX"},
  26370. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26371. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  26372. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  26373. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  26374. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  26375. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  26376. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  26377. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  26378. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  26379. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  26380. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  26381. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  26382. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  26383. {"BE_OUT", NULL, "PROXY_RX"},
  26384. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  26385. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  26386. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  26387. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  26388. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  26389. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  26390. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  26391. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  26392. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  26393. {"USB_AUDIO_TX", NULL, "BE_IN" },
  26394. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  26395. {"INT_FM_TX", NULL, "BE_IN"},
  26396. {"PCM_TX", NULL, "BE_IN"},
  26397. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26398. {"BE_OUT", NULL, "STUB_RX"},
  26399. {"STUB_TX", NULL, "BE_IN"},
  26400. {"STUB_1_TX", NULL, "BE_IN"},
  26401. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26402. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  26403. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  26404. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26405. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26406. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26407. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26408. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  26409. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  26410. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  26411. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  26412. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  26413. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26414. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26415. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26416. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26417. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26418. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26419. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  26420. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  26421. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  26422. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  26423. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  26424. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  26425. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  26426. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  26427. {"PROXY_TX", NULL, "BE_IN"},
  26428. };
  26429. #ifndef CONFIG_AUXPCM_DISABLE
  26430. static const struct snd_soc_dapm_route intercon_aux_pcm[] = {
  26431. /* incall */
  26432. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26433. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26434. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26435. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26436. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26437. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26438. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26439. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26440. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26441. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26442. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26443. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26444. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26445. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26446. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26447. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26448. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26449. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26450. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26451. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26452. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26453. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26454. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26455. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26456. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26457. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26458. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26459. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26460. {"MultiMedia21 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26461. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26462. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26463. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26464. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26465. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26466. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26467. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26468. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26469. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26470. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26471. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26472. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26473. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26474. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26475. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26476. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26477. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26478. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26479. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26480. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26481. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26482. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26483. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26484. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26485. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26486. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26487. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26488. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26489. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26490. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26491. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26492. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26493. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26494. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26495. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26496. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26497. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26498. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26499. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26500. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26501. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26502. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26503. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26504. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26505. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26506. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26507. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26508. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26509. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26510. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26511. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26512. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26513. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26514. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26515. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26516. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26517. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26518. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26519. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26520. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26521. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26522. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26523. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26524. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26525. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26526. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26527. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26528. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26529. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26530. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26531. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26532. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26533. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26534. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26535. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26536. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26537. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26538. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26539. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26540. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26541. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26542. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26543. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26544. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26545. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26546. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26547. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26548. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26549. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26550. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26551. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26552. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26553. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26554. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26555. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26556. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26557. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26558. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26559. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26560. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26561. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26562. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26563. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26564. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26565. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26566. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26567. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26568. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26569. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26570. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26571. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26572. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26573. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26574. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26575. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26576. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26577. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26578. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26579. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26580. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26581. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26582. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26583. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26584. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26585. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26586. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26587. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26588. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26589. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26590. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26591. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26592. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26593. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26594. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26595. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26596. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26597. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26598. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26599. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26600. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26601. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26602. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26603. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26604. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26605. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26606. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26607. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26608. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26609. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26610. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26611. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26612. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26613. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26614. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26615. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  26616. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  26617. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  26618. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  26619. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  26620. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  26621. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26622. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26623. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26624. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26625. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26626. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26627. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26628. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26629. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26630. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26631. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26632. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26633. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26634. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26635. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26636. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26637. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26638. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26639. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26640. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26641. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26642. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26643. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26644. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26645. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  26646. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26647. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26648. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26649. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26650. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  26651. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26652. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26653. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26654. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  26655. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26656. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26657. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26658. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  26659. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26660. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26661. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26662. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  26663. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26664. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26665. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26666. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26667. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26668. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26669. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26670. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26671. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26672. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26673. /* Backend Enablement */
  26674. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26675. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  26676. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  26677. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  26678. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  26679. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  26680. {"AUX_PCM_TX", NULL, "BE_IN"},
  26681. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  26682. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  26683. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  26684. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  26685. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  26686. };
  26687. #endif
  26688. #ifndef CONFIG_TDM_DISABLE
  26689. static const struct snd_soc_dapm_route intercon_tdm[] = {
  26690. /* incall */
  26691. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26692. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26693. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26694. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26695. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26696. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26697. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26698. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26699. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26700. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26701. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26702. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26703. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26704. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26705. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26706. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26707. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26708. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26709. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26710. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26711. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26712. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26713. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26714. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26715. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26716. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  26717. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26718. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26719. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26720. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26721. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26722. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26723. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26724. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26725. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26726. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26727. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26728. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26729. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26730. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26731. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26732. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26733. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26734. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26735. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26736. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26737. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26738. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26739. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26740. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26741. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26742. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  26743. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26744. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26745. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26746. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26747. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26748. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26749. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26750. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26751. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26752. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26753. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26754. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26755. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26756. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26757. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26758. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26759. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26760. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26761. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26762. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26763. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26764. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26765. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26766. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26767. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26768. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  26769. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26770. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26771. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26772. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26773. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26774. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26775. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26776. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26777. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26778. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26779. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26780. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26781. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26782. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26783. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26784. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26785. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26786. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26787. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26788. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26789. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26790. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26791. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26792. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26793. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26794. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  26795. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26796. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26797. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26798. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26799. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26800. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26801. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26802. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26803. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26804. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26805. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26806. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26807. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26808. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26809. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26810. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26811. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26812. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26813. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26814. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26815. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26816. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26817. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26818. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  26819. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26820. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26821. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26822. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26823. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26824. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26825. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26826. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26827. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26828. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26829. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26830. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26831. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26832. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26833. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26834. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26835. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26836. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26837. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26838. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26839. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26840. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26841. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26842. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26843. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26844. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  26845. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26846. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26847. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26848. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26849. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26850. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26851. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26852. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26853. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26854. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26855. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26856. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26857. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26858. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26859. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26860. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26861. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26862. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26863. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26864. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26865. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26866. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26867. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26868. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26869. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26870. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  26871. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26872. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26873. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26874. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26875. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26876. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26877. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26878. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26879. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26880. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26881. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26882. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26883. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26884. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26885. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26886. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26887. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26888. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26889. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26890. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26891. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26892. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26893. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26894. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26895. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26896. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  26897. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26898. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26899. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26900. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26901. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26902. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26903. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26904. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26905. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26906. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26907. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26908. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26909. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26910. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26911. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26912. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26913. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26914. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26915. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26916. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26917. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26918. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26919. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26920. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26921. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26922. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  26923. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26924. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26925. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26926. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26927. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26928. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26929. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26930. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26931. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26932. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26933. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26934. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26935. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26936. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26937. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26938. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26939. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26940. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26941. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26942. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26943. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26944. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26945. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26946. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  26947. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26948. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26949. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26950. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26951. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26952. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26953. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26954. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26955. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26956. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26957. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26958. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26959. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26960. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26961. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26962. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26963. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26964. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26965. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26966. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26967. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26968. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26969. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26970. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26971. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26972. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  26973. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26974. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26975. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26976. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26977. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26978. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26979. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26980. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26981. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26982. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26983. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26984. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26985. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26986. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26987. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26988. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26989. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26990. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26991. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26992. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26993. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26994. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26995. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26996. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  26997. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26998. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26999. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27000. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27001. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27002. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27003. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27004. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27005. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27006. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27007. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27008. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27009. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27010. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27011. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27012. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27013. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27014. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27015. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27016. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27017. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27018. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27019. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27020. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27021. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27022. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  27023. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27024. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27025. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27026. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27027. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27028. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27029. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27030. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27031. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27032. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27033. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27034. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27035. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27036. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27037. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27038. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27039. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27040. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27041. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27042. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27043. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27044. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27045. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27046. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27047. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27048. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  27049. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27050. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27051. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27052. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27053. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27054. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27055. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27056. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27057. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27058. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27059. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27060. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27061. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27062. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27063. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27064. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27065. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27066. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27067. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27068. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27069. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27070. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27071. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27072. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27073. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27074. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  27075. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27076. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27077. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27078. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27079. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27080. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27081. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27082. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27083. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27084. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27085. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27086. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27087. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27088. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27089. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27090. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27091. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27092. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27093. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27094. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27095. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27096. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27097. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27098. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27099. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27100. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  27101. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27102. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27103. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27104. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27105. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27106. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27107. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27108. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27109. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27110. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27111. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27112. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27113. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27114. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27115. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27116. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27117. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27118. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27119. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27120. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27121. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27122. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27123. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27124. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27125. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27126. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27127. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  27128. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27129. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27130. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27131. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27132. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27133. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27134. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27135. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27136. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27137. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27138. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27139. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27140. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27141. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27142. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27143. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27144. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27145. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27146. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27147. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27148. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27149. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27150. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27151. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  27152. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27153. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27154. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27155. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27156. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27157. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27158. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27159. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27160. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27161. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27162. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27163. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27164. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27165. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27166. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27167. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27168. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27169. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27170. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27171. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27172. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27173. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27174. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27175. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27176. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27177. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27178. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  27179. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27180. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27181. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27182. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27183. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27184. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27185. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27186. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27187. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27188. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27189. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27190. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27191. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27192. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27193. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27194. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27195. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27196. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27197. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27198. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27199. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27200. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27201. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27202. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27203. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27204. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27205. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  27206. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27207. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27208. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27209. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27210. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27211. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27212. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27213. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27214. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27215. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27216. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27217. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27218. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27219. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27220. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27221. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27222. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27223. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27224. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27225. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27226. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27227. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27228. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27229. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27230. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27231. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27232. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  27233. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27234. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27235. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27236. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27237. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27238. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27239. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27240. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27241. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27242. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27243. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27244. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27245. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27246. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27247. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27248. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27249. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27250. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27251. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27252. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27253. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27254. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27255. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27256. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27257. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27258. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27259. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  27260. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27261. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27262. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27263. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27264. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27265. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27266. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27267. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27268. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27269. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27270. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27271. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27272. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27273. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27274. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27275. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27276. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27277. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27278. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27279. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27280. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27281. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27282. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27283. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  27284. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27285. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27286. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27287. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27288. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27289. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27290. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27291. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27292. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27293. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27294. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27295. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27296. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27297. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27298. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27299. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27300. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27301. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27302. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27303. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27304. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27305. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27306. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27307. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27308. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27309. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27310. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  27311. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27312. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27313. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27314. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27315. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27316. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27317. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27318. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27319. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27320. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27321. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27322. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27323. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27324. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27325. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27326. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27327. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27328. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27329. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27330. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27331. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27332. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27333. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27334. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27335. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27336. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27337. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  27338. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27339. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27340. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27341. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27342. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27343. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27344. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27345. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27346. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27347. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27348. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27349. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27350. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27351. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27352. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27353. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27354. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27355. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27356. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27357. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27358. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27359. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27360. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27361. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27362. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27363. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27364. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  27365. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27366. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27367. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27368. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27369. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27370. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27371. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27372. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27373. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27374. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27375. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27376. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27377. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27378. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27379. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27380. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27381. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27382. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27383. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  27384. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27385. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27386. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27387. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27388. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27389. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27390. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27391. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27392. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27393. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27394. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27395. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27396. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27397. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27398. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27399. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27400. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  27401. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27402. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27403. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27404. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27405. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27406. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27407. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27408. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27409. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27410. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27411. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27412. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27413. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27414. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27415. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27416. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27417. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27418. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27419. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  27420. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27421. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27422. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27423. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27424. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27425. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27426. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27427. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27428. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27429. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27430. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27431. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27432. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27433. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27434. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27435. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27436. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27437. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27438. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  27439. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27440. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27441. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27442. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27443. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27444. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27445. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27446. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27447. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27448. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27449. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27450. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27451. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27452. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27453. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27454. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27455. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27456. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27457. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  27458. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27459. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27460. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27461. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27462. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27463. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27464. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27465. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27466. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27467. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27468. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27469. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27470. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27471. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27472. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27473. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27474. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27475. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27476. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27477. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27478. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27479. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27480. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27481. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27482. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27483. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27484. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27485. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27486. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27487. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27488. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27489. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27490. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27491. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27492. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27493. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27494. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27495. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27496. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27497. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27498. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27499. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27500. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27501. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27502. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27503. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27504. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27505. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27506. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27507. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27508. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27509. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27510. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27511. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27512. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27513. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27514. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27515. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27516. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27517. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27518. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27519. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27520. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27521. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27522. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27523. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27524. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27525. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27526. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27527. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27528. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27529. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27530. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27531. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27532. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27533. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27534. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27535. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27536. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27537. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27538. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27539. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27540. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27541. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27542. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27543. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27544. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27545. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27546. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27547. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27548. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27549. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27550. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27551. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27552. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27553. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27554. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27555. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27556. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27557. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27558. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27559. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27560. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27561. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27562. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27563. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27564. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27565. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27566. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27567. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27568. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27569. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27570. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27571. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27572. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27573. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27574. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27575. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27576. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27577. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27578. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27579. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27580. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27581. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27582. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27583. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27584. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27585. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27586. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27587. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27588. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27589. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27590. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27591. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27592. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27593. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27594. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27595. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27596. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27597. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27598. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27599. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27600. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27601. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27602. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27603. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27604. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27605. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27606. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27607. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27608. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27609. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27610. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27611. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27612. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27613. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27614. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27615. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27616. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27617. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27618. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27619. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27620. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27621. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27622. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27623. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27624. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27625. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27626. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27627. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27628. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27629. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27630. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27631. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27632. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27633. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27634. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27635. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27636. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27637. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27638. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27639. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27640. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27641. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27642. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27643. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27644. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27645. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27646. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27647. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27648. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27649. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27650. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27651. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27652. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27653. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27654. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27655. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27656. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27657. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27658. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27659. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27660. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27661. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27662. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27663. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27664. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27665. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27666. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27667. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27668. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27669. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27670. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27671. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27672. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27673. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27674. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27675. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27676. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27677. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27678. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27679. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27680. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27681. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27682. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27683. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27684. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27685. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27686. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27687. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27688. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27689. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27690. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27691. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27692. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27693. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27694. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27695. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27696. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27697. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27698. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27699. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27700. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27701. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27702. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27703. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27704. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27705. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27706. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27707. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27708. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27709. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27710. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27711. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27712. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27713. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27714. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27715. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27716. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27717. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27718. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27719. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27720. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27721. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27722. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27723. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27724. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27725. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27726. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27727. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27728. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27729. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27730. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27731. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27732. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27733. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27734. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27735. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27736. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27737. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27738. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27739. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27740. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27741. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27742. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27743. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27744. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27745. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27746. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27747. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27748. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27749. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27750. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27751. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27752. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27753. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27754. {"MultiMedia31 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27755. {"MultiMedia31 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27756. {"MultiMedia31 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27757. {"MultiMedia31 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27758. {"MultiMedia31 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27759. {"MultiMedia31 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27760. {"MultiMedia31 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27761. {"MultiMedia31 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27762. {"MultiMedia31 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27763. {"MultiMedia31 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27764. {"MultiMedia31 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27765. {"MultiMedia31 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27766. {"MultiMedia31 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27767. {"MultiMedia31 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27768. {"MultiMedia31 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27769. {"MultiMedia31 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27770. {"MultiMedia31 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27771. {"MultiMedia31 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27772. {"MultiMedia31 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27773. {"MultiMedia31 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27774. {"MultiMedia32 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27775. {"MultiMedia32 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27776. {"MultiMedia32 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27777. {"MultiMedia32 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27778. {"MultiMedia32 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27779. {"MultiMedia32 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27780. {"MultiMedia32 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27781. {"MultiMedia32 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27782. {"MultiMedia32 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27783. {"MultiMedia32 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27784. {"MultiMedia32 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27785. {"MultiMedia32 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27786. {"MultiMedia32 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27787. {"MultiMedia32 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27788. {"MultiMedia32 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27789. {"MultiMedia32 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27790. {"MultiMedia32 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27791. {"MultiMedia32 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27792. {"MultiMedia32 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27793. {"MultiMedia32 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27794. {"MultiMedia33 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27795. {"MultiMedia33 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27796. {"MultiMedia33 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27797. {"MultiMedia33 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27798. {"MultiMedia33 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27799. {"MultiMedia33 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27800. {"MultiMedia33 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27801. {"MultiMedia33 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27802. {"MultiMedia33 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27803. {"MultiMedia33 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27804. {"MultiMedia33 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27805. {"MultiMedia33 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27806. {"MultiMedia33 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27807. {"MultiMedia33 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27808. {"MultiMedia33 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27809. {"MultiMedia33 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27810. {"MultiMedia33 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27811. {"MultiMedia33 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27812. {"MultiMedia33 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27813. {"MultiMedia33 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27814. {"MultiMedia34 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27815. {"MultiMedia34 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27816. {"MultiMedia34 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27817. {"MultiMedia34 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27818. {"MultiMedia34 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27819. {"MultiMedia34 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27820. {"MultiMedia34 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27821. {"MultiMedia34 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27822. {"MultiMedia34 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27823. {"MultiMedia34 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27824. {"MultiMedia34 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27825. {"MultiMedia34 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27826. {"MultiMedia34 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27827. {"MultiMedia34 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27828. {"MultiMedia34 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27829. {"MultiMedia34 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27830. {"MultiMedia34 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27831. {"MultiMedia34 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27832. {"MultiMedia34 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27833. {"MultiMedia34 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27834. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27835. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27836. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27837. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27838. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27839. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27840. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27841. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27842. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  27843. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27844. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27845. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27846. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27847. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27848. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27849. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27850. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27851. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  27852. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  27853. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27854. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27855. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27856. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27857. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27858. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27859. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27860. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  27861. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  27862. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27863. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27864. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27865. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27866. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27867. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27868. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27869. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  27870. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27871. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  27872. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27873. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  27874. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27875. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27876. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27877. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  27878. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  27879. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27880. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27881. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27882. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27883. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27884. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27885. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27886. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27887. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27888. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27889. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27890. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27891. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27892. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27893. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27894. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27895. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27896. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27897. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27898. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27899. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27900. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27901. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27902. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27903. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27904. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27905. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27906. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27907. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27908. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27909. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27910. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27911. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27912. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27913. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27914. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27915. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27916. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27917. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27918. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27919. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27920. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27921. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27922. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27923. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27924. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27925. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27926. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27927. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27928. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27929. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27930. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27931. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27932. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27933. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27934. #ifndef CONFIG_MI2S_DISABLE
  27935. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27936. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27937. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27938. #endif
  27939. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27940. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27941. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27942. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27943. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27944. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27945. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27946. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27947. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27948. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27949. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27950. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27951. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27952. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27953. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27954. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27955. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27956. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27957. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27958. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27959. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27960. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27961. #ifndef CONFIG_MI2S_DISABLE
  27962. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27963. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27964. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27965. #endif
  27966. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27967. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27968. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27969. #ifndef CONFIG_AUXPCM_DISABLE
  27970. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27971. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27972. #endif
  27973. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27974. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27975. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27976. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27977. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27978. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27979. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27980. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27981. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27982. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27983. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27984. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27985. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27986. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27987. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27988. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27989. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27990. #ifndef CONFIG_MI2S_DISABLE
  27991. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27992. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27993. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27994. #endif
  27995. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27996. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27997. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27998. #ifndef CONFIG_AUXPCM_DISABLE
  27999. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28000. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28001. #endif
  28002. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  28003. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  28004. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  28005. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  28006. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28007. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28008. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28009. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28010. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28011. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28012. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28013. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28014. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28015. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28016. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28017. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28018. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  28019. #ifndef CONFIG_MI2S_DISABLE
  28020. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28021. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28022. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28023. #endif
  28024. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28025. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28026. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28027. #ifndef CONFIG_AUXPCM_DISABLE
  28028. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28029. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28030. #endif
  28031. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  28032. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  28033. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  28034. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  28035. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28036. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28037. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28038. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28039. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28040. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28041. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28042. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28043. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28044. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28045. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28046. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28047. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  28048. #ifndef CONFIG_MI2S_DISABLE
  28049. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28050. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28051. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28052. #endif
  28053. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28054. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28055. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28056. #ifndef CONFIG_AUXPCM_DISABLE
  28057. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28058. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28059. #endif
  28060. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  28061. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  28062. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  28063. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  28064. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28065. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28066. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28067. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28068. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28069. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28070. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28071. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28072. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28073. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28074. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28075. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28076. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  28077. #ifndef CONFIG_MI2S_DISABLE
  28078. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28079. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28080. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28081. #endif
  28082. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28083. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28084. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28085. #ifndef CONFIG_AUXPCM_DISABLE
  28086. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28087. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28088. #endif
  28089. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  28090. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  28091. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  28092. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  28093. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28094. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28095. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28096. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28097. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28098. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28099. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28100. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28101. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28102. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28103. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28104. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28105. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  28106. #ifndef CONFIG_MI2S_DISABLE
  28107. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28108. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28109. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28110. #endif
  28111. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28112. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28113. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28114. #ifndef CONFIG_AUXPCM_DISABLE
  28115. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28116. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28117. #endif
  28118. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  28119. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  28120. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  28121. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  28122. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28123. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28124. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28125. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28126. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28127. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28128. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28129. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28130. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28131. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28132. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28133. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28134. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  28135. #ifndef CONFIG_MI2S_DISABLE
  28136. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28137. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28138. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28139. #endif
  28140. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28141. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28142. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28143. #ifndef CONFIG_AUXPCM_DISABLE
  28144. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28145. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28146. #endif
  28147. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  28148. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  28149. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  28150. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  28151. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28152. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28153. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28154. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28155. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28156. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28157. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28158. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28159. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28160. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28161. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28162. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28163. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  28164. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  28165. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  28166. #ifndef CONFIG_MI2S_DISABLE
  28167. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28168. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28169. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28170. #endif
  28171. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28172. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28173. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28174. #ifndef CONFIG_AUXPCM_DISABLE
  28175. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28176. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28177. #endif
  28178. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28179. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28180. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28181. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28182. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28183. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28184. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28185. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28186. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28187. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28188. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28189. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28190. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28191. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28192. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28193. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28194. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  28195. #ifndef CONFIG_MI2S_DISABLE
  28196. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28197. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28198. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28199. #endif
  28200. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28201. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28202. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28203. #ifndef CONFIG_AUXPCM_DISABLE
  28204. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28205. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28206. #endif
  28207. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28208. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28209. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28210. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28211. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28212. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28213. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28214. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28215. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28216. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28217. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28218. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28219. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28220. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28221. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28222. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28223. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  28224. #ifndef CONFIG_MI2S_DISABLE
  28225. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28226. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28227. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28228. #endif
  28229. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28230. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28231. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28232. #ifndef CONFIG_AUXPCM_DISABLE
  28233. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28234. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28235. #endif
  28236. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28237. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28238. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28239. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28240. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28241. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28242. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28243. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28244. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28245. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28246. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28247. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28248. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28249. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28250. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28251. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28252. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  28253. #ifndef CONFIG_MI2S_DISABLE
  28254. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28255. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28256. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28257. #endif
  28258. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28259. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28260. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28261. #ifndef CONFIG_AUXPCM_DISABLE
  28262. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28263. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28264. #endif
  28265. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28266. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28267. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28268. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28269. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28270. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28271. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28272. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28273. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28274. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28275. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28276. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28277. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28278. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28279. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28280. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28281. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  28282. #ifndef CONFIG_MI2S_DISABLE
  28283. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28284. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28285. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28286. #endif
  28287. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28288. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28289. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28290. #ifndef CONFIG_AUXPCM_DISABLE
  28291. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28292. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28293. #endif
  28294. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28295. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28296. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28297. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28298. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28299. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28300. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28301. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28302. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28303. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28304. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28305. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28306. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28307. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28308. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28309. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28310. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  28311. #ifndef CONFIG_MI2S_DISABLE
  28312. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28313. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28314. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28315. #endif
  28316. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28317. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28318. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28319. #ifndef CONFIG_AUXPCM_DISABLE
  28320. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28321. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28322. #endif
  28323. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28324. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28325. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28326. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28327. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28328. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28329. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28330. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28331. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28332. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28333. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28334. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28335. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28336. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28337. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28338. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28339. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  28340. #ifndef CONFIG_MI2S_DISABLE
  28341. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28342. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28343. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28344. #endif
  28345. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28346. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28347. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28348. #ifndef CONFIG_AUXPCM_DISABLE
  28349. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28350. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28351. #endif
  28352. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28353. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28354. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28355. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28356. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28357. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28358. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28359. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28360. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28361. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28362. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28363. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28364. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28365. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28366. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28367. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28368. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  28369. #ifndef CONFIG_MI2S_DISABLE
  28370. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28371. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28372. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28373. #endif
  28374. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28375. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28376. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28377. #ifndef CONFIG_AUXPCM_DISABLE
  28378. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28379. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28380. #endif
  28381. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28382. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28383. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28384. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28385. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28386. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28387. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28388. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28389. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28390. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28391. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28392. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28393. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28394. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28395. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28396. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28397. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  28398. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28399. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28400. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  28401. #ifndef CONFIG_MI2S_DISABLE
  28402. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28403. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28404. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28405. #endif
  28406. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28407. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28408. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28409. #ifndef CONFIG_AUXPCM_DISABLE
  28410. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28411. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28412. #endif
  28413. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28414. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28415. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28416. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28417. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28418. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28419. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28420. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28421. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28422. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28423. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28424. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28425. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28426. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28427. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28428. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28429. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  28430. #ifndef CONFIG_MI2S_DISABLE
  28431. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28432. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28433. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28434. #endif
  28435. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28436. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28437. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28438. #ifndef CONFIG_AUXPCM_DISABLE
  28439. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28440. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28441. #endif
  28442. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28443. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28444. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28445. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28446. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28447. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28448. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28449. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28450. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28451. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28452. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28453. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28454. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28455. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28456. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28457. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28458. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  28459. #ifndef CONFIG_MI2S_DISABLE
  28460. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28461. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28462. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28463. #endif
  28464. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28465. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28466. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28467. #ifndef CONFIG_AUXPCM_DISABLE
  28468. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28469. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28470. #endif
  28471. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28472. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28473. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28474. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28475. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28476. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28477. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28478. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28479. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28480. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28481. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28482. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28483. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28484. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28485. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28486. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28487. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  28488. #ifndef CONFIG_MI2S_DISABLE
  28489. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28490. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28491. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28492. #endif
  28493. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28494. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28495. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28496. #ifndef CONFIG_AUXPCM_DISABLE
  28497. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28498. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28499. #endif
  28500. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28501. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28502. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28503. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28504. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28505. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28506. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28507. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28508. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28509. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28510. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28511. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28512. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28513. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28514. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28515. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28516. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  28517. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  28518. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28519. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28520. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  28521. #ifndef CONFIG_MI2S_DISABLE
  28522. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28523. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28524. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28525. #endif
  28526. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28527. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28528. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28529. #ifndef CONFIG_AUXPCM_DISABLE
  28530. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28531. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28532. #endif
  28533. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28534. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28535. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28536. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28537. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28538. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28539. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28540. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28541. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28542. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28543. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28544. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28545. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  28546. #ifndef CONFIG_MI2S_DISABLE
  28547. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28548. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28549. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28550. #endif
  28551. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28552. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28553. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28554. #ifndef CONFIG_AUXPCM_DISABLE
  28555. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28556. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28557. #endif
  28558. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28559. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28560. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28561. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28562. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28563. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28564. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28565. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28566. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28567. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28568. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28569. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28570. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  28571. #ifndef CONFIG_MI2S_DISABLE
  28572. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28573. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28574. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28575. #endif
  28576. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28577. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28578. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28579. #ifndef CONFIG_AUXPCM_DISABLE
  28580. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28581. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28582. #endif
  28583. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28584. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28585. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28586. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28587. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28588. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28589. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28590. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28591. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28592. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28593. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28594. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28595. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  28596. #ifndef CONFIG_MI2S_DISABLE
  28597. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28598. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28599. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28600. #endif
  28601. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28602. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28603. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28604. #ifndef CONFIG_AUXPCM_DISABLE
  28605. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28606. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28607. #endif
  28608. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28609. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28610. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28611. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28612. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28613. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28614. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28615. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28616. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28617. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28618. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28619. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28620. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  28621. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28622. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  28623. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  28624. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  28625. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28626. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  28627. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  28628. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28629. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28630. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  28631. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  28632. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  28633. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28634. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  28635. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  28636. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28637. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28638. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28639. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28640. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28641. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28642. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28643. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28644. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28645. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28646. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28647. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28648. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28649. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28650. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28651. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28652. /* Backend Enablement */
  28653. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28654. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28655. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28656. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28657. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28658. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28659. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28660. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28661. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28662. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28663. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28664. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28665. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28666. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28667. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28668. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28669. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28670. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28671. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28672. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28673. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28674. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28675. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28676. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28677. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28678. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28679. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28680. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28681. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28682. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28683. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28684. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28685. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28686. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28687. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28688. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28689. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28690. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28691. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28692. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28693. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28694. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28695. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28696. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28697. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28698. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28699. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28700. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28701. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28702. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28703. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28704. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28705. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28706. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28707. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28708. };
  28709. #endif
  28710. #ifndef CONFIG_MI2S_DISABLE
  28711. static const struct snd_soc_dapm_route intercon_mi2s[] = {
  28712. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28713. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28714. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28715. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28716. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28717. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28718. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28719. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28720. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28721. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28722. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28723. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28724. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28725. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28726. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28727. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28728. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28729. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  28730. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28731. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28732. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28733. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28734. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28735. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28736. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28737. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28738. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28739. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28740. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28741. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28742. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28743. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28744. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28745. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28746. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28747. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  28748. /* incall */
  28749. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28750. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28751. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28752. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28753. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28754. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28755. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28756. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28757. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28758. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28759. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28760. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28761. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28762. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28763. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28764. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28765. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28766. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28767. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28768. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28769. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28770. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28771. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28772. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28773. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28774. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28775. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28776. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28777. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28778. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28779. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28780. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28781. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28782. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28783. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28784. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28785. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28786. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28787. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28788. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28789. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28790. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28791. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28792. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28793. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  28794. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28795. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28796. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28797. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28798. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28799. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28800. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28801. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28802. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28803. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28804. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28805. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28806. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28807. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28808. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28809. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  28810. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28811. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  28812. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28813. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28814. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28815. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28816. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28817. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28818. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28819. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28820. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28821. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28822. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28823. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28824. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28825. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28826. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28827. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  28828. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28829. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28830. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28831. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28832. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28833. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28834. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28835. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28836. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28837. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28838. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28839. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28840. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28841. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28842. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28843. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  28844. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  28845. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  28846. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28847. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28848. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28849. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28850. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28851. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28852. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28853. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28854. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28855. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28856. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28857. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28858. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28859. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28860. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28861. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28862. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28863. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28864. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28865. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  28866. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  28867. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28868. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28869. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28870. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28871. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28872. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28873. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28874. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28875. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28876. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28877. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28878. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28879. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28880. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28881. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28882. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  28883. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28884. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28885. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28886. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28887. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28888. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28889. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28890. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28891. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28892. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28893. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28894. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28895. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28896. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28897. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28898. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  28899. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28900. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28901. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28902. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28903. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28904. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28905. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28906. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28907. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28908. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28909. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28910. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28911. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28912. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28913. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28914. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28915. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28916. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  28917. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28918. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28919. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28920. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28921. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28922. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28923. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28924. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28925. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28926. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28927. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28928. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28929. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28930. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28931. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28932. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  28933. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28934. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28935. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28936. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28937. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28938. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28939. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28940. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28941. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28942. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28943. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28944. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28945. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28946. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28947. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28948. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28949. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28950. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  28951. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28952. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28953. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28954. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28955. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28956. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28957. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28958. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28959. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28960. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28961. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28962. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28963. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28964. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28965. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28966. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28967. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28968. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  28969. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  28970. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  28971. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  28972. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  28973. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  28974. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  28975. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  28976. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28977. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28978. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28979. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28980. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28981. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28982. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28983. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28984. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28985. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28986. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28987. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28988. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28989. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28990. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28991. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28992. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28993. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28994. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28995. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28996. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28997. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28998. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28999. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  29000. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  29001. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29002. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29003. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29004. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29005. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29006. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29007. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29008. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29009. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29010. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29011. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29012. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29013. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29014. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29015. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29016. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29017. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29018. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29019. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29020. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29021. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29022. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29023. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29024. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29025. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29026. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29027. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29028. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29029. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  29030. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29031. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29032. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29033. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  29034. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29035. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  29036. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29037. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  29038. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29039. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  29040. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  29041. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  29042. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29043. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29044. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29045. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  29046. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29047. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  29048. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  29049. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29050. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29051. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29052. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  29053. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  29054. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29055. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  29056. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  29057. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29058. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  29059. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29060. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29061. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  29062. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29063. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29064. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  29065. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29066. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29067. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  29068. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29069. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29070. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  29071. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29072. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29073. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  29074. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29075. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  29076. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  29077. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29078. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  29079. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29080. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29081. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  29082. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29083. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  29084. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  29085. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29086. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29087. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29088. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  29089. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29090. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  29091. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  29092. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29093. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29094. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29095. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  29096. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  29097. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  29098. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  29099. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  29100. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  29101. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29102. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29103. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29104. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29105. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29106. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29107. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29108. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29109. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29110. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29111. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29112. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29113. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29114. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29115. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29116. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29117. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29118. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29119. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29120. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29121. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29122. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29123. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29124. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29125. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29126. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29127. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29128. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29129. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29130. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29131. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29132. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29133. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29134. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29135. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29136. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29137. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29138. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29139. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29140. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29141. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29142. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29143. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29144. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29145. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29146. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29147. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29148. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29149. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29150. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29151. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29152. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29153. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29154. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29155. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29156. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29157. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29158. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29159. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29160. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29161. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29162. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29163. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29164. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29165. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29166. {"AUDIO_REF_EC_UL30 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29167. {"AUDIO_REF_EC_UL30 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29168. {"AUDIO_REF_EC_UL30 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29169. {"AUDIO_REF_EC_UL30 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29170. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  29171. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  29172. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  29173. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  29174. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  29175. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  29176. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  29177. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  29178. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  29179. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  29180. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  29181. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  29182. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  29183. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  29184. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  29185. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  29186. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  29187. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  29188. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  29189. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  29190. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  29191. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29192. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29193. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29194. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29195. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29196. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29197. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29198. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29199. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29200. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29201. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29202. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29203. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29204. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29205. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29206. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29207. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29208. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29209. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  29210. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  29211. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  29212. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  29213. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  29214. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  29215. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  29216. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  29217. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29218. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29219. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29220. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29221. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29222. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29223. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29224. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29225. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29226. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29227. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  29228. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  29229. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  29230. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  29231. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  29232. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  29233. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  29234. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  29235. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  29236. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  29237. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  29238. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  29239. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  29240. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  29241. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  29242. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  29243. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  29244. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  29245. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  29246. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  29247. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  29248. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  29249. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  29250. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  29251. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  29252. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  29253. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29254. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29255. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29256. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29257. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29258. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29259. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29260. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  29261. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29262. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29263. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  29264. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  29265. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  29266. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29267. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29268. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29269. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29270. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29271. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29272. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29273. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  29274. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29275. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  29276. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29277. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  29278. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  29279. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  29280. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29281. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29282. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29283. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29284. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29285. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29286. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29287. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29288. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29289. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29290. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  29291. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  29292. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29293. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  29294. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29295. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29296. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29297. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29298. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29299. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29300. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29301. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29302. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  29303. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29304. #ifndef CONFIG_AUXPCM_DISABLE
  29305. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  29306. #endif
  29307. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  29308. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29309. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29310. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29311. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29312. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29313. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29314. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29315. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29316. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29317. #ifndef CONFIG_AUXPCM_DISABLE
  29318. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  29319. #endif
  29320. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  29321. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29322. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29323. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29324. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29325. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29326. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29327. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29328. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29329. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  29330. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29331. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29332. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29333. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29334. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29335. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29336. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29337. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29338. #ifndef CONFIG_AUXPCM_DISABLE
  29339. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  29340. #endif
  29341. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29342. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  29343. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29344. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29345. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29346. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29347. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29348. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29349. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29350. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29351. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  29352. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29353. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29354. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29355. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29356. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29357. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29358. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29359. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  29360. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29361. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29362. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29363. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29364. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29365. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29366. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29367. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  29368. /* Backend Enablement */
  29369. {"BE_OUT", NULL, "PRI_I2S_RX"},
  29370. {"BE_OUT", NULL, "SEC_I2S_RX"},
  29371. {"BE_OUT", NULL, "MI2S_RX"},
  29372. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  29373. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  29374. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  29375. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  29376. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  29377. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  29378. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  29379. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  29380. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  29381. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  29382. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  29383. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  29384. {"PRI_I2S_TX", NULL, "BE_IN"},
  29385. {"MI2S_TX", NULL, "BE_IN"},
  29386. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  29387. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  29388. {"PRI_MI2S_TX", NULL, "BE_IN"},
  29389. {"TERT_MI2S_TX", NULL, "BE_IN"},
  29390. {"INT0_MI2S_TX", NULL, "BE_IN"},
  29391. {"INT2_MI2S_TX", NULL, "BE_IN"},
  29392. {"INT3_MI2S_TX", NULL, "BE_IN"},
  29393. {"INT4_MI2S_TX", NULL, "BE_IN"},
  29394. {"INT5_MI2S_TX", NULL, "BE_IN"},
  29395. {"SEC_MI2S_TX", NULL, "BE_IN"},
  29396. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  29397. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  29398. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  29399. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  29400. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  29401. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  29402. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  29403. };
  29404. #endif
  29405. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  29406. struct snd_pcm_hw_params *params)
  29407. {
  29408. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  29409. unsigned int be_id = rtd->dai_link->id;
  29410. if (be_id >= MSM_BACKEND_DAI_MAX) {
  29411. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  29412. return -EINVAL;
  29413. }
  29414. mutex_lock(&routing_lock);
  29415. msm_bedais[be_id].sample_rate = params_rate(params);
  29416. msm_bedais[be_id].channel = params_channels(params);
  29417. msm_bedais[be_id].format = params_format(params);
  29418. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  29419. __func__, msm_bedais[be_id].sample_rate,
  29420. msm_bedais[be_id].format, be_id);
  29421. mutex_unlock(&routing_lock);
  29422. return 0;
  29423. }
  29424. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  29425. {
  29426. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  29427. unsigned int be_id = rtd->dai_link->id;
  29428. int i, session_type, path_type, topology;
  29429. struct msm_pcm_routing_bdai_data *bedai;
  29430. struct msm_pcm_routing_fdai_data *fdai;
  29431. pr_debug("%s: substream->pcm->id:%s\n",
  29432. __func__, substream->pcm->id);
  29433. if (be_id >= MSM_BACKEND_DAI_MAX) {
  29434. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  29435. return -EINVAL;
  29436. }
  29437. bedai = &msm_bedais[be_id];
  29438. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  29439. 0 : 1);
  29440. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  29441. path_type = ADM_PATH_PLAYBACK;
  29442. else
  29443. path_type = ADM_PATH_LIVE_REC;
  29444. mutex_lock(&routing_lock);
  29445. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  29446. if (!is_mm_lsm_fe_id(i))
  29447. continue;
  29448. fdai = &fe_dai_map[i][session_type];
  29449. if (fdai->strm_id != INVALID_SESSION) {
  29450. int idx;
  29451. int port_id;
  29452. unsigned long copp =
  29453. session_copp_map[i][session_type][be_id];
  29454. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  29455. if (test_bit(idx, &copp))
  29456. break;
  29457. if (idx >= MAX_COPPS_PER_PORT) {
  29458. pr_debug("%s: copp idx is invalid, exiting\n",
  29459. __func__);
  29460. continue;
  29461. }
  29462. fdai->be_srate = bedai->sample_rate;
  29463. port_id = get_port_id(bedai->port_id);
  29464. topology = adm_get_topology_for_port_copp_idx(port_id,
  29465. idx);
  29466. msm_routing_unload_topology(topology);
  29467. adm_close(port_id, fdai->perf_mode, idx);
  29468. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  29469. __func__, copp, i, session_type, be_id,
  29470. topology);
  29471. clear_bit(idx,
  29472. &session_copp_map[i][session_type][be_id]);
  29473. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  29474. (fdai->passthr_mode == LEGACY_PCM))
  29475. msm_pcm_routing_deinit_pp(port_id,
  29476. topology);
  29477. }
  29478. }
  29479. bedai->active = 0;
  29480. bedai->sample_rate = 0;
  29481. bedai->channel = 0;
  29482. mutex_unlock(&routing_lock);
  29483. return 0;
  29484. }
  29485. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  29486. {
  29487. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  29488. unsigned int be_id = rtd->dai_link->id;
  29489. int i, path_type, topology;
  29490. int session_type = INVALID_SESSION;
  29491. struct msm_pcm_routing_bdai_data *bedai;
  29492. u32 channels, sample_rate;
  29493. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  29494. struct msm_pcm_routing_fdai_data *fdai;
  29495. u32 session_id;
  29496. struct media_format_info voc_be_media_format;
  29497. bool is_lsm;
  29498. uint32_t copp_token = 0;
  29499. pr_debug("%s: substream->pcm->id:%s\n",
  29500. __func__, substream->pcm->id);
  29501. if (be_id >= MSM_BACKEND_DAI_MAX) {
  29502. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  29503. return -EINVAL;
  29504. }
  29505. bedai = &msm_bedais[be_id];
  29506. mutex_lock(&routing_lock);
  29507. if (bedai->active == 1)
  29508. goto done; /* Ignore prepare if back-end already active */
  29509. /* AFE port is not active at this point. However, still
  29510. * go ahead setting active flag under the notion that
  29511. * QDSP6 is able to handle ADM starting before AFE port
  29512. * is started.
  29513. */
  29514. bedai->active = 1;
  29515. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  29516. if (!(is_mm_lsm_fe_id(i) &&
  29517. route_check_fe_id_adm_support(i)))
  29518. continue;
  29519. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  29520. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29521. fdai = &fe_dai_map[i][session_type];
  29522. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  29523. if (fdai->passthr_mode != LEGACY_PCM)
  29524. path_type = ADM_PATH_COMPRESSED_RX;
  29525. else
  29526. path_type = ADM_PATH_PLAYBACK;
  29527. } else {
  29528. if ((fdai->passthr_mode != LEGACY_PCM) &&
  29529. (fdai->passthr_mode != LISTEN))
  29530. path_type = ADM_PATH_COMPRESSED_TX;
  29531. else
  29532. path_type = ADM_PATH_LIVE_REC;
  29533. }
  29534. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  29535. (i <= MSM_FRONTEND_DAI_LSM8);
  29536. if (fdai->strm_id != INVALID_SESSION) {
  29537. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  29538. int port_id = get_port_id(bedai->port_id);
  29539. if (session_type == SESSION_TYPE_TX &&
  29540. fdai->be_srate &&
  29541. (fdai->be_srate != bedai->sample_rate)) {
  29542. pr_debug("%s: flush strm %d diff BE rates\n",
  29543. __func__,
  29544. fdai->strm_id);
  29545. if (fdai->event_info.event_func)
  29546. fdai->event_info.event_func(
  29547. MSM_PCM_RT_EVT_BUF_RECFG,
  29548. fdai->event_info.priv_data);
  29549. fdai->be_srate = 0; /* might not need it */
  29550. }
  29551. bits_per_sample = msm_routing_get_bit_width(
  29552. bedai->format);
  29553. app_type =
  29554. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  29555. if (app_type && is_lsm) {
  29556. app_type_idx =
  29557. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  29558. sample_rate =
  29559. fe_dai_app_type_cfg[i][session_type][be_id]
  29560. .sample_rate;
  29561. bits_per_sample =
  29562. lsm_app_type_cfg[app_type_idx].bit_width;
  29563. } else if (app_type) {
  29564. app_type_idx =
  29565. msm_pcm_routing_get_app_type_idx(app_type);
  29566. sample_rate =
  29567. fe_dai_app_type_cfg[i][session_type]
  29568. [be_id].sample_rate;
  29569. bits_per_sample =
  29570. app_type_cfg[app_type_idx].bit_width;
  29571. copp_token =
  29572. fe_dai_app_type_cfg[i][session_type]
  29573. [be_id].copp_token;
  29574. } else
  29575. sample_rate = bedai->sample_rate;
  29576. /*
  29577. * check if ADM needs to be configured with different
  29578. * channel mapping than backend
  29579. */
  29580. if (!bedai->adm_override_ch)
  29581. channels = bedai->channel;
  29582. else
  29583. channels = bedai->adm_override_ch;
  29584. acdb_dev_id =
  29585. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  29586. topology = msm_routing_get_adm_topology(i, session_type,
  29587. be_id);
  29588. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  29589. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  29590. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  29591. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  29592. be_bit_width = msm_routing_get_bit_width(
  29593. bedai->format);
  29594. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  29595. || bedai->sample_rate == 352800) &&
  29596. be_bit_width == 32)
  29597. bits_per_sample = msm_routing_get_bit_width(
  29598. SNDRV_PCM_FORMAT_S32_LE);
  29599. copp_idx = adm_open(port_id, path_type,
  29600. sample_rate, channels, topology,
  29601. fdai->perf_mode, bits_per_sample,
  29602. app_type, acdb_dev_id,
  29603. session_type, fdai->passthr_mode, copp_token);
  29604. if ((copp_idx < 0) ||
  29605. (copp_idx >= MAX_COPPS_PER_PORT)) {
  29606. pr_err("%s: adm open failed\n", __func__);
  29607. mutex_unlock(&routing_lock);
  29608. return -EINVAL;
  29609. }
  29610. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  29611. __func__, i, session_type, be_id);
  29612. set_bit(copp_idx,
  29613. &session_copp_map[i][session_type][be_id]);
  29614. if (msm_is_resample_needed(
  29615. sample_rate,
  29616. bedai->sample_rate))
  29617. adm_copp_mfc_cfg(port_id, copp_idx,
  29618. bedai->sample_rate);
  29619. msm_pcm_routing_build_matrix(i, session_type, path_type,
  29620. fdai->perf_mode, fdai->passthr_mode);
  29621. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  29622. (fdai->passthr_mode == LEGACY_PCM))
  29623. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  29624. topology, channels);
  29625. }
  29626. }
  29627. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  29628. session_id = msm_pcm_routing_get_voc_sessionid(i);
  29629. if (session_id) {
  29630. pr_debug("%s voice session_id: 0x%x\n", __func__,
  29631. session_id);
  29632. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  29633. voc_path_type = RX_PATH;
  29634. else
  29635. voc_path_type = TX_PATH;
  29636. voc_set_route_flag(session_id, voc_path_type, 1);
  29637. memset(&voc_be_media_format, 0,
  29638. sizeof(struct media_format_info));
  29639. voc_be_media_format.port_id = bedai->port_id;
  29640. voc_be_media_format.num_channels = bedai->channel;
  29641. voc_be_media_format.sample_rate = bedai->sample_rate;
  29642. voc_be_media_format.bits_per_sample = bedai->format;
  29643. /* Defaulting this to 1 for voice call usecases */
  29644. voc_be_media_format.channel_mapping[0] = 1;
  29645. voc_set_device_config(session_id, voc_path_type,
  29646. &voc_be_media_format);
  29647. if (voc_get_route_flag(session_id, RX_PATH) &&
  29648. voc_get_route_flag(session_id, TX_PATH))
  29649. voc_enable_device(session_id);
  29650. }
  29651. }
  29652. /* Check if backend is an external ec ref port and set as needed */
  29653. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  29654. memset(&voc_be_media_format, 0,
  29655. sizeof(struct media_format_info));
  29656. /* Get format info for ec ref port from msm_bedais[] */
  29657. voc_be_media_format.port_id = bedai->port_id;
  29658. voc_be_media_format.num_channels = bedai->channel;
  29659. voc_be_media_format.bits_per_sample = bedai->format;
  29660. voc_be_media_format.sample_rate = bedai->sample_rate;
  29661. /* Defaulting this to 1 for voice call usecases */
  29662. voc_be_media_format.channel_mapping[0] = 1;
  29663. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  29664. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  29665. __func__, voc_be_media_format.port_id,
  29666. voc_be_media_format.num_channels,
  29667. voc_be_media_format.bits_per_sample,
  29668. voc_be_media_format.sample_rate);
  29669. }
  29670. done:
  29671. mutex_unlock(&routing_lock);
  29672. return 0;
  29673. }
  29674. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  29675. int fe_id)
  29676. {
  29677. int index, topo_id, be_idx;
  29678. unsigned long pp_config = 0;
  29679. bool mute_on;
  29680. int latency, session_type;
  29681. bool compr_passthr_mode = true;
  29682. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  29683. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX
  29684. && port_id != HDMI_RX_MS) {
  29685. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  29686. __func__, port_id, copp_idx, fe_id);
  29687. return -EINVAL;
  29688. }
  29689. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29690. if (port_id == msm_bedais[be_idx].port_id)
  29691. break;
  29692. }
  29693. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29694. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29695. return -EINVAL;
  29696. }
  29697. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29698. if (msm_bedais_pp_params[index].port_id == port_id)
  29699. break;
  29700. }
  29701. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29702. pr_err("%s: Invalid backend pp params index %d\n",
  29703. __func__, index);
  29704. return -EINVAL;
  29705. }
  29706. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  29707. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  29708. pr_err("%s: Invalid passthrough topology 0x%x\n",
  29709. __func__, topo_id);
  29710. return -EINVAL;
  29711. }
  29712. session_type =
  29713. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29714. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29715. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  29716. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  29717. compr_passthr_mode = false;
  29718. pp_config = msm_bedais_pp_params[index].pp_params_config;
  29719. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  29720. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29721. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  29722. mute_on = msm_bedais_pp_params[index].mute_on;
  29723. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29724. adm_send_compressed_device_mute(port_id,
  29725. copp_idx,
  29726. mute_on);
  29727. }
  29728. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  29729. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29730. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  29731. &pp_config);
  29732. latency = msm_bedais_pp_params[index].latency;
  29733. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29734. adm_send_compressed_device_latency(port_id,
  29735. copp_idx,
  29736. latency);
  29737. }
  29738. return 0;
  29739. }
  29740. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  29741. {
  29742. uint32_t topology = NULL_COPP_TOPOLOGY;
  29743. void *cal_info = NULL;
  29744. uint32_t size = 0;
  29745. /* Retrieve cal_info size from cal data*/
  29746. if (data_size < sizeof(struct audio_cal_type_basic) +
  29747. sizeof(struct audio_cal_info_adm_top)) {
  29748. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  29749. goto done;
  29750. }
  29751. size = data_size - sizeof(struct audio_cal_type_basic);
  29752. cal_info = kzalloc(size, GFP_KERNEL);
  29753. if (!cal_info)
  29754. goto done;
  29755. memcpy(cal_info,
  29756. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  29757. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  29758. kfree(cal_info);
  29759. cal_info = NULL;
  29760. done:
  29761. pr_debug("%s: Using topology %d\n", __func__, topology);
  29762. return topology;
  29763. }
  29764. static void msm_routing_load_topology(size_t data_size, void *data)
  29765. {
  29766. uint32_t topology_id;
  29767. int ret = -EINVAL;
  29768. topology_id = msm_routing_get_topology(data_size, data);
  29769. if (topology_id != NULL_COPP_TOPOLOGY)
  29770. ret = q6core_load_unload_topo_modules(topology_id,
  29771. CORE_LOAD_TOPOLOGY);
  29772. if (ret < 0)
  29773. pr_debug("%s %d load topology failed\n",
  29774. __func__, topology_id);
  29775. }
  29776. static void msm_routing_unload_topology(uint32_t topology_id)
  29777. {
  29778. int ret = -EINVAL;
  29779. if (topology_id != NULL_COPP_TOPOLOGY)
  29780. ret = q6core_load_unload_topo_modules(topology_id,
  29781. CORE_UNLOAD_TOPOLOGY);
  29782. if (ret < 0)
  29783. pr_debug("%s %d unload topology failed\n",
  29784. __func__, topology_id);
  29785. }
  29786. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29787. struct snd_ctl_elem_value *ucontrol)
  29788. {
  29789. int pp_id = ucontrol->value.integer.value[0];
  29790. int port_id = 0;
  29791. int index, be_idx, i, topo_id, idx;
  29792. bool mute;
  29793. int latency, session_type;
  29794. bool compr_passthr_mode = true;
  29795. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  29796. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29797. port_id = msm_bedais[be_idx].port_id;
  29798. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX
  29799. || port_id == HDMI_RX_MS)
  29800. break;
  29801. }
  29802. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29803. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29804. return -EINVAL;
  29805. }
  29806. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29807. if (msm_bedais_pp_params[index].port_id == port_id)
  29808. break;
  29809. }
  29810. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29811. pr_err("%s: Invalid pp params backend index %d\n",
  29812. __func__, index);
  29813. return -EINVAL;
  29814. }
  29815. session_type =
  29816. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29817. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29818. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  29819. MSM_FRONTEND_DAI_MM_SIZE) {
  29820. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  29821. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  29822. compr_passthr_mode = false;
  29823. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29824. unsigned long copp =
  29825. session_copp_map[i]
  29826. [SESSION_TYPE_RX][be_idx];
  29827. if (!test_bit(idx, &copp))
  29828. continue;
  29829. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  29830. idx);
  29831. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  29832. continue;
  29833. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  29834. __func__, port_id, copp, msm_bedais[be_idx].active,
  29835. fe_dai_map[i][session_type].passthr_mode);
  29836. switch (pp_id) {
  29837. case ADM_PP_PARAM_MUTE_ID:
  29838. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29839. mute = ucontrol->value.integer.value[1] ? true : false;
  29840. msm_bedais_pp_params[index].mute_on = mute;
  29841. set_bit(ADM_PP_PARAM_MUTE_BIT,
  29842. &msm_bedais_pp_params[index].pp_params_config);
  29843. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29844. adm_send_compressed_device_mute(port_id,
  29845. idx, mute);
  29846. break;
  29847. case ADM_PP_PARAM_LATENCY_ID:
  29848. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29849. msm_bedais_pp_params[index].latency =
  29850. ucontrol->value.integer.value[1];
  29851. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  29852. &msm_bedais_pp_params[index].pp_params_config);
  29853. latency = msm_bedais_pp_params[index].latency =
  29854. ucontrol->value.integer.value[1];
  29855. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29856. adm_send_compressed_device_latency(port_id,
  29857. idx, latency);
  29858. break;
  29859. default:
  29860. pr_info("%s, device pp param %d not supported\n",
  29861. __func__, pp_id);
  29862. break;
  29863. }
  29864. }
  29865. }
  29866. return 0;
  29867. }
  29868. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29869. struct snd_ctl_elem_value *ucontrol)
  29870. {
  29871. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  29872. return 0;
  29873. }
  29874. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  29875. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29876. 0, 3, msm_routing_get_device_pp_params_mixer,
  29877. msm_routing_put_device_pp_params_mixer),
  29878. };
  29879. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  29880. struct snd_ctl_elem_value *ucontrol)
  29881. {
  29882. ucontrol->value.integer.value[0] =
  29883. core_get_license_status(ASM_MEDIA_FMT_APTX);
  29884. pr_debug("%s: status %ld\n", __func__,
  29885. ucontrol->value.integer.value[0]);
  29886. return 0;
  29887. }
  29888. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  29889. struct snd_ctl_elem_value *ucontrol)
  29890. {
  29891. int32_t status = 0;
  29892. status = core_set_license(ucontrol->value.integer.value[0],
  29893. APTX_CLASSIC_DEC_LICENSE_ID);
  29894. pr_debug("%s: status %d\n", __func__, status);
  29895. return status;
  29896. }
  29897. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  29898. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  29899. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  29900. msm_aptx_dec_license_control_put),
  29901. };
  29902. static int msm_routing_get_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29903. struct snd_ctl_elem_value *ucontrol)
  29904. {
  29905. return 0;
  29906. }
  29907. static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29908. struct snd_ctl_elem_value *ucontrol)
  29909. {
  29910. u16 port_id = 0;
  29911. int32_t clk_drift = 0;
  29912. uint32_t clk_reset = 0;
  29913. int be_idx, ret = -EINVAL;
  29914. be_idx = ucontrol->value.integer.value[0];
  29915. clk_drift = ucontrol->value.integer.value[1];
  29916. clk_reset = ucontrol->value.integer.value[2];
  29917. if (be_idx < 0 || be_idx >= MSM_BACKEND_DAI_MAX) {
  29918. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  29919. return -EINVAL;
  29920. }
  29921. if (!msm_bedais[be_idx].active && !clk_reset) {
  29922. pr_err("%s:BE is not active %d, cannot set clock drift\n",
  29923. __func__, be_idx);
  29924. return -EINVAL;
  29925. }
  29926. port_id = msm_bedais[be_idx].port_id;
  29927. pr_debug("%s: clk drift %d be idx %d clk reset %d port id 0x%x\n",
  29928. __func__, clk_drift, be_idx, clk_reset, port_id);
  29929. ret = afe_set_pll_clk_drift(port_id, clk_drift, clk_reset);
  29930. if (ret < 0)
  29931. pr_err("%s: failed to set pll clk drift\n", __func__);
  29932. return ret;
  29933. }
  29934. static const struct snd_kcontrol_new pll_clk_drift_controls[] = {
  29935. SOC_SINGLE_MULTI_EXT("PLL config data", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29936. 0, 128, msm_routing_get_pll_clk_drift, msm_routing_put_pll_clk_drift),
  29937. };
  29938. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  29939. struct snd_ctl_elem_value *ucontrol)
  29940. {
  29941. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  29942. uint32_t be_idx = ucontrol->value.integer.value[0];
  29943. int i;
  29944. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29945. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  29946. return -EINVAL;
  29947. }
  29948. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  29949. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  29950. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  29951. pr_err("%s: Invalid channel map %d\n",
  29952. __func__, channel_map[i]);
  29953. return -EINVAL;
  29954. }
  29955. }
  29956. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  29957. return 0;
  29958. }
  29959. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  29960. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  29961. MSM_BACKEND_DAI_MAX, 0,
  29962. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  29963. msm_routing_put_port_chmap_mixer),
  29964. };
  29965. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  29966. struct snd_ctl_elem_info *uinfo)
  29967. {
  29968. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  29969. uinfo->count = sizeof(be_dai_name_table);
  29970. return 0;
  29971. }
  29972. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  29973. unsigned int __user *bytes,
  29974. unsigned int size)
  29975. {
  29976. int i;
  29977. int ret = 0;
  29978. if (size < sizeof(be_dai_name_table)) {
  29979. pr_err("%s: invalid size %d requested, returning\n",
  29980. __func__, size);
  29981. ret = -EINVAL;
  29982. goto done;
  29983. }
  29984. /*
  29985. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  29986. * needed when adding new backends
  29987. */
  29988. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29989. be_dai_name_table[i].be_id = i;
  29990. strlcpy(be_dai_name_table[i].be_name,
  29991. msm_bedais[i].name,
  29992. LPASS_BE_NAME_MAX_LENGTH);
  29993. }
  29994. ret = copy_to_user(bytes, &be_dai_name_table,
  29995. sizeof(be_dai_name_table));
  29996. if (ret) {
  29997. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  29998. ret = -EFAULT;
  29999. }
  30000. done:
  30001. return ret;
  30002. }
  30003. static const struct snd_kcontrol_new
  30004. msm_routing_be_dai_name_table_mixer_controls[] = {
  30005. {
  30006. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  30007. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  30008. .info = msm_routing_be_dai_name_table_info,
  30009. .name = "Backend DAI Name Table",
  30010. .tlv.c = snd_soc_bytes_tlv_callback,
  30011. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  30012. .max = sizeof(be_dai_name_table),
  30013. .get = msm_routing_be_dai_name_table_tlv_get,
  30014. }
  30015. },
  30016. };
  30017. static int msm_routing_put_mclk_src_cfg(struct snd_kcontrol *kcontrol,
  30018. struct snd_ctl_elem_value *ucontrol)
  30019. {
  30020. u16 port_id = 0;
  30021. int32_t mclk_src_id = 0;
  30022. uint32_t mclk_freq = 0;
  30023. int be_idx, ret = -EINVAL;
  30024. be_idx = ucontrol->value.integer.value[0];
  30025. mclk_src_id = ucontrol->value.integer.value[1];
  30026. mclk_freq = ucontrol->value.integer.value[2];
  30027. if (be_idx < 0 && be_idx >= MSM_BACKEND_DAI_MAX) {
  30028. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  30029. return -EINVAL;
  30030. }
  30031. if (mclk_src_id < MCLK_SRC_INT && mclk_src_id >= MCLK_SRC_MAX) {
  30032. pr_err("%s: Invalid MCLK src %d\n", __func__, mclk_src_id);
  30033. return -EINVAL;
  30034. }
  30035. if (msm_bedais[be_idx].active) {
  30036. pr_err("%s:BE is active %d, cannot set mclk clock src\n",
  30037. __func__, be_idx);
  30038. return -EINVAL;
  30039. }
  30040. port_id = msm_bedais[be_idx].port_id;
  30041. pr_debug("%s: be idx %d mclk_src id %d mclk_freq %d port id 0x%x\n",
  30042. __func__, be_idx, mclk_src_id, mclk_freq, port_id);
  30043. ret = afe_set_mclk_src_cfg(port_id, mclk_src_id, mclk_freq);
  30044. if (ret < 0)
  30045. pr_err("%s: failed to set mclk src cfg\n", __func__);
  30046. return ret;
  30047. }
  30048. static const struct snd_kcontrol_new mclk_src_controls[] = {
  30049. SOC_SINGLE_MULTI_EXT("MCLK_SRC CFG", SND_SOC_NOPM, 0, 24576000, 0, 3,
  30050. NULL, msm_routing_put_mclk_src_cfg),
  30051. };
  30052. static int msm_routing_stereo_channel_reverse_control_get(
  30053. struct snd_kcontrol *kcontrol,
  30054. struct snd_ctl_elem_value *ucontrol)
  30055. {
  30056. ucontrol->value.integer.value[0] = swap_ch;
  30057. pr_debug("%s: Swap channel value: %ld\n", __func__,
  30058. ucontrol->value.integer.value[0]);
  30059. return 0;
  30060. }
  30061. static int msm_routing_stereo_channel_reverse_control_put(
  30062. struct snd_kcontrol *kcontrol,
  30063. struct snd_ctl_elem_value *ucontrol)
  30064. {
  30065. int i, idx, be_index, port_id;
  30066. int ret = 0;
  30067. unsigned long copp;
  30068. pr_debug("%s Swap channel value:%ld\n", __func__,
  30069. ucontrol->value.integer.value[0]);
  30070. swap_ch = ucontrol->value.integer.value[0];
  30071. mutex_lock(&routing_lock);
  30072. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  30073. port_id = msm_bedais[be_index].port_id;
  30074. if (!msm_bedais[be_index].active)
  30075. continue;
  30076. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  30077. MSM_FRONTEND_DAI_MM_SIZE) {
  30078. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  30079. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  30080. if (!test_bit(idx, &copp))
  30081. continue;
  30082. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  30083. __func__, port_id, idx);
  30084. ret = adm_swap_speaker_channels(
  30085. port_id, idx,
  30086. msm_bedais[be_index].sample_rate,
  30087. swap_ch);
  30088. if (ret) {
  30089. pr_err("%s:Swap_channel failed, err=%d\n",
  30090. __func__, ret);
  30091. goto done;
  30092. }
  30093. }
  30094. }
  30095. }
  30096. done:
  30097. mutex_unlock(&routing_lock);
  30098. return ret;
  30099. }
  30100. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  30101. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  30102. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  30103. msm_routing_stereo_channel_reverse_control_put),
  30104. };
  30105. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  30106. struct snd_ctl_elem_info *uinfo)
  30107. {
  30108. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  30109. uinfo->count = 1;
  30110. return 0;
  30111. }
  30112. static int msm_routing_instance_id_support_put(
  30113. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  30114. {
  30115. bool supported = ucontrol->value.integer.value[0] ? true : false;
  30116. q6common_update_instance_id_support(supported);
  30117. return 0;
  30118. }
  30119. static int msm_routing_instance_id_support_get(
  30120. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  30121. {
  30122. bool supported = false;
  30123. supported = q6common_is_instance_id_supported();
  30124. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  30125. return 0;
  30126. }
  30127. static const struct snd_kcontrol_new
  30128. msm_routing_feature_support_mixer_controls[] = {
  30129. {
  30130. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  30131. SNDRV_CTL_ELEM_ACCESS_WRITE,
  30132. .info = msm_routing_instance_id_support_info,
  30133. .name = "Instance ID Support",
  30134. .put = msm_routing_instance_id_support_put,
  30135. .get = msm_routing_instance_id_support_get,
  30136. },
  30137. };
  30138. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  30139. .hw_params = msm_pcm_routing_hw_params,
  30140. .close = msm_pcm_routing_close,
  30141. .prepare = msm_pcm_routing_prepare,
  30142. };
  30143. #ifndef CONFIG_TDM_DISABLE
  30144. static void snd_soc_dapm_new_controls_tdm(struct snd_soc_component *component)
  30145. {
  30146. snd_soc_dapm_new_controls(&component->dapm,
  30147. msm_qdsp6_widgets_tdm,
  30148. ARRAY_SIZE(msm_qdsp6_widgets_tdm));
  30149. }
  30150. static void snd_soc_dapm_add_routes_tdm(struct snd_soc_component *component)
  30151. {
  30152. snd_soc_dapm_add_routes(&component->dapm, intercon_tdm,
  30153. ARRAY_SIZE(intercon_tdm));
  30154. }
  30155. #else
  30156. static void snd_soc_dapm_new_controls_tdm(struct snd_soc_component *component)
  30157. {
  30158. return;
  30159. }
  30160. static void snd_soc_dapm_add_routes_tdm(struct snd_soc_component *component)
  30161. {
  30162. return;
  30163. }
  30164. #endif
  30165. #ifndef CONFIG_MI2S_DISABLE
  30166. static void snd_soc_dapm_new_controls_mi2s(struct snd_soc_component *component)
  30167. {
  30168. snd_soc_dapm_new_controls(&component->dapm,
  30169. msm_qdsp6_widgets_mi2s,
  30170. ARRAY_SIZE(msm_qdsp6_widgets_mi2s));
  30171. }
  30172. static void snd_soc_dapm_add_routes_mi2s(struct snd_soc_component *component)
  30173. {
  30174. snd_soc_dapm_add_routes(&component->dapm, intercon_mi2s,
  30175. ARRAY_SIZE(intercon_mi2s));
  30176. }
  30177. #else
  30178. static void snd_soc_dapm_new_controls_mi2s(struct snd_soc_component *component)
  30179. {
  30180. return;
  30181. }
  30182. static void snd_soc_dapm_add_routes_mi2s(struct snd_soc_component *component)
  30183. {
  30184. return;
  30185. }
  30186. #endif
  30187. #ifndef CONFIG_AUXPCM_DISABLE
  30188. static void snd_soc_dapm_new_controls_aux_pcm(struct snd_soc_component *component)
  30189. {
  30190. snd_soc_dapm_new_controls(&component->dapm,
  30191. msm_qdsp6_widgets_aux_pcm,
  30192. ARRAY_SIZE(msm_qdsp6_widgets_aux_pcm));
  30193. }
  30194. static void snd_soc_dapm_add_routes_aux_pcm(struct snd_soc_component *component)
  30195. {
  30196. snd_soc_dapm_add_routes(&component->dapm, intercon_aux_pcm,
  30197. ARRAY_SIZE(intercon_aux_pcm));
  30198. }
  30199. #else
  30200. static void snd_soc_dapm_new_controls_aux_pcm(struct snd_soc_component *component)
  30201. {
  30202. return;
  30203. }
  30204. static void snd_soc_dapm_add_routes_aux_pcm(struct snd_soc_component *component)
  30205. {
  30206. return;
  30207. }
  30208. #endif
  30209. #ifdef CONFIG_DOA_PARAMS_ENABLED
  30210. void msm_routing_add_doa_control(struct snd_soc_component *component)
  30211. {
  30212. snd_soc_add_component_controls(component,
  30213. msm_source_doa_tracking_controls,
  30214. ARRAY_SIZE(msm_source_doa_tracking_controls));
  30215. }
  30216. #else
  30217. void msm_routing_add_doa_control(struct snd_soc_component *component)
  30218. {
  30219. return;
  30220. }
  30221. #endif
  30222. /* Not used but frame seems to require it */
  30223. static int msm_routing_probe(struct snd_soc_component *component)
  30224. {
  30225. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  30226. ARRAY_SIZE(msm_qdsp6_widgets));
  30227. snd_soc_dapm_new_controls_tdm(component);
  30228. snd_soc_dapm_new_controls_mi2s(component);
  30229. snd_soc_dapm_new_controls_aux_pcm(component);
  30230. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  30231. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  30232. snd_soc_dapm_add_routes(&component->dapm, intercon,
  30233. ARRAY_SIZE(intercon));
  30234. snd_soc_dapm_add_routes_tdm(component);
  30235. snd_soc_dapm_add_routes_mi2s(component);
  30236. snd_soc_dapm_add_routes_aux_pcm(component);
  30237. snd_soc_dapm_new_widgets(component->dapm.card);
  30238. snd_soc_add_component_controls(component, lsm_controls,
  30239. ARRAY_SIZE(lsm_controls));
  30240. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  30241. ARRAY_SIZE(aanc_slim_0_rx_mux));
  30242. snd_soc_add_component_controls(component, aanc_noise_level,
  30243. ARRAY_SIZE(aanc_noise_level));
  30244. snd_soc_add_component_controls(component, msm_voc_session_controls,
  30245. ARRAY_SIZE(msm_voc_session_controls));
  30246. snd_soc_add_component_controls(component, app_type_cfg_controls,
  30247. ARRAY_SIZE(app_type_cfg_controls));
  30248. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  30249. ARRAY_SIZE(lsm_app_type_cfg_controls));
  30250. snd_soc_add_component_controls(component, module_cfg_controls,
  30251. ARRAY_SIZE(module_cfg_controls));
  30252. snd_soc_add_component_controls(component,
  30253. stereo_to_custom_stereo_controls,
  30254. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  30255. snd_soc_add_component_controls(component, ec_ref_param_controls,
  30256. ARRAY_SIZE(ec_ref_param_controls));
  30257. snd_soc_add_component_controls(component, channel_mixer_controls,
  30258. ARRAY_SIZE(channel_mixer_controls));
  30259. msm_qti_pp_add_controls(component);
  30260. msm_dts_srs_tm_add_controls(component);
  30261. msm_dolby_dap_add_controls(component);
  30262. snd_soc_add_component_controls(component,
  30263. use_ds1_or_ds2_controls,
  30264. ARRAY_SIZE(use_ds1_or_ds2_controls));
  30265. snd_soc_add_component_controls(component,
  30266. hifi_filter_controls,
  30267. ARRAY_SIZE(hifi_filter_controls));
  30268. snd_soc_add_component_controls(component,
  30269. use_ffecns_freeze_event_controls,
  30270. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  30271. snd_soc_add_component_controls(component,
  30272. device_pp_params_mixer_controls,
  30273. ARRAY_SIZE(device_pp_params_mixer_controls));
  30274. snd_soc_add_component_controls(component,
  30275. msm_routing_be_dai_name_table_mixer_controls,
  30276. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  30277. /* Add doa control based on config */
  30278. msm_routing_add_doa_control(component);
  30279. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  30280. ARRAY_SIZE(msm_source_tracking_controls));
  30281. snd_soc_add_component_controls(component, adm_channel_config_controls,
  30282. ARRAY_SIZE(adm_channel_config_controls));
  30283. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  30284. ARRAY_SIZE(aptx_dec_license_controls));
  30285. snd_soc_add_component_controls(component,
  30286. stereo_channel_reverse_control,
  30287. ARRAY_SIZE(stereo_channel_reverse_control));
  30288. snd_soc_add_component_controls(
  30289. component, msm_routing_feature_support_mixer_controls,
  30290. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  30291. snd_soc_add_component_controls(component,
  30292. port_multi_channel_map_mixer_controls,
  30293. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  30294. snd_soc_add_component_controls(component, pll_clk_drift_controls,
  30295. ARRAY_SIZE(pll_clk_drift_controls));
  30296. snd_soc_add_component_controls(component, mclk_src_controls,
  30297. ARRAY_SIZE(mclk_src_controls));
  30298. return 0;
  30299. }
  30300. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  30301. {
  30302. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  30303. }
  30304. void msm_routing_pcm_free(struct snd_pcm *pcm)
  30305. {
  30306. msm_pcm_routing_hwdep_free(pcm);
  30307. }
  30308. static struct snd_soc_component_driver msm_soc_routing_component = {
  30309. .name = DRV_NAME,
  30310. .ops = &msm_routing_pcm_ops,
  30311. .probe = msm_routing_probe,
  30312. .pcm_new = msm_routing_pcm_new,
  30313. .pcm_free = msm_routing_pcm_free,
  30314. };
  30315. static int msm_routing_pcm_probe(struct platform_device *pdev)
  30316. {
  30317. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  30318. return snd_soc_register_component(&pdev->dev,
  30319. &msm_soc_routing_component,
  30320. NULL, 0);
  30321. }
  30322. static int msm_routing_pcm_remove(struct platform_device *pdev)
  30323. {
  30324. snd_soc_unregister_component(&pdev->dev);
  30325. return 0;
  30326. }
  30327. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  30328. {.compatible = "qcom,msm-pcm-routing"},
  30329. {}
  30330. };
  30331. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  30332. static struct platform_driver msm_routing_pcm_driver = {
  30333. .driver = {
  30334. .name = "msm-pcm-routing",
  30335. .owner = THIS_MODULE,
  30336. .of_match_table = msm_pcm_routing_dt_match,
  30337. .suppress_bind_attrs = true,
  30338. },
  30339. .probe = msm_routing_pcm_probe,
  30340. .remove = msm_routing_pcm_remove,
  30341. };
  30342. int msm_routing_check_backend_enabled(int fedai_id)
  30343. {
  30344. int i;
  30345. if (fedai_id >= MSM_FRONTEND_DAI_MM_MAX_ID) {
  30346. /* bad ID assigned in machine driver */
  30347. pr_err("%s: bad MM ID\n", __func__);
  30348. return 0;
  30349. }
  30350. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  30351. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  30352. return msm_bedais[i].active;
  30353. }
  30354. return 0;
  30355. }
  30356. static int get_cal_type_index(int32_t cal_type)
  30357. {
  30358. int ret = -EINVAL;
  30359. switch (cal_type) {
  30360. case ADM_TOPOLOGY_CAL_TYPE:
  30361. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  30362. break;
  30363. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  30364. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  30365. break;
  30366. default:
  30367. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  30368. }
  30369. return ret;
  30370. }
  30371. static int msm_routing_set_cal(int32_t cal_type,
  30372. size_t data_size, void *data)
  30373. {
  30374. int ret = 0;
  30375. int cal_index;
  30376. pr_debug("%s\n", __func__);
  30377. cal_index = get_cal_type_index(cal_type);
  30378. if (cal_index < 0) {
  30379. pr_err("%s: Could not get cal index %d\n",
  30380. __func__, cal_index);
  30381. ret = -EINVAL;
  30382. goto done;
  30383. }
  30384. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  30385. if (ret < 0) {
  30386. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  30387. __func__, ret, cal_type);
  30388. ret = -EINVAL;
  30389. goto done;
  30390. }
  30391. /* Pre-load if it is ADM topology */
  30392. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  30393. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  30394. msm_routing_load_topology(data_size, data);
  30395. }
  30396. done:
  30397. return ret;
  30398. }
  30399. static void msm_routing_delete_cal_data(void)
  30400. {
  30401. pr_debug("%s\n", __func__);
  30402. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  30403. }
  30404. static int msm_routing_init_cal_data(void)
  30405. {
  30406. int ret = 0;
  30407. struct cal_type_info cal_type_info[] = {
  30408. {{ADM_TOPOLOGY_CAL_TYPE,
  30409. {NULL, NULL, NULL,
  30410. msm_routing_set_cal, NULL, NULL} },
  30411. {NULL, NULL, cal_utils_match_buf_num} },
  30412. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  30413. {NULL, NULL, NULL,
  30414. msm_routing_set_cal, NULL, NULL} },
  30415. {NULL, NULL, cal_utils_match_buf_num} },
  30416. };
  30417. pr_debug("%s\n", __func__);
  30418. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  30419. &cal_type_info[0]);
  30420. if (ret < 0) {
  30421. pr_err("%s: could not create cal type!\n",
  30422. __func__);
  30423. ret = -EINVAL;
  30424. goto err;
  30425. }
  30426. return ret;
  30427. err:
  30428. msm_routing_delete_cal_data();
  30429. return ret;
  30430. }
  30431. int __init msm_soc_routing_platform_init(void)
  30432. {
  30433. mutex_init(&routing_lock);
  30434. if (msm_routing_init_cal_data())
  30435. pr_err("%s: could not init cal data!\n", __func__);
  30436. afe_set_routing_callback(
  30437. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  30438. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  30439. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  30440. return platform_driver_register(&msm_routing_pcm_driver);
  30441. }
  30442. void msm_soc_routing_platform_exit(void)
  30443. {
  30444. msm_routing_delete_cal_data();
  30445. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  30446. mutex_destroy(&routing_lock);
  30447. platform_driver_unregister(&msm_routing_pcm_driver);
  30448. }
  30449. MODULE_DESCRIPTION("MSM routing platform driver");
  30450. MODULE_LICENSE("GPL v2");