msm-pcm-routing-v2.c 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740
  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. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26796. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26797. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26798. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26799. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26800. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26801. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26802. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26803. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26804. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26805. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26806. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26807. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26808. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26809. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26810. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26811. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26812. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26813. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26814. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26815. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26816. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26817. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26818. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26819. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26820. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  26821. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26822. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26823. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26824. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26825. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26826. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26827. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26828. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26829. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26830. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26831. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26832. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26833. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26834. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26835. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26836. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26837. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26838. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26839. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26840. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26841. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26842. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26843. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26844. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26845. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26846. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  26847. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26848. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26849. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26850. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26851. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26852. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26853. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26854. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26855. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26856. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26857. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26858. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26859. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26860. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26861. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26862. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26863. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26864. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26865. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26866. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26867. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26868. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26869. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26870. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26871. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26872. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  26873. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26874. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26875. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26876. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26877. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26878. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26879. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26880. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26881. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26882. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26883. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26884. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26885. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26886. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26887. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26888. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26889. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26890. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26891. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26892. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26893. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26894. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26895. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26896. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26897. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26898. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  26899. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26900. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26901. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26902. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26903. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26904. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26905. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26906. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26907. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26908. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26909. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26910. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26911. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26912. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26913. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26914. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26915. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26916. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26917. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26918. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26919. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26920. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26921. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26922. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26923. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26924. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  26925. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26926. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26927. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26928. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26929. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26930. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26931. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26932. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26933. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26934. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26935. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26936. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26937. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26938. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26939. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26940. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26941. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26942. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26943. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26944. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26945. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26946. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26947. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26948. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26949. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26950. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  26951. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26952. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26953. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26954. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26955. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26956. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26957. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26958. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26959. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26960. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26961. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26962. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26963. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26964. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26965. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26966. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26967. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26968. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26969. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26970. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26971. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26972. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26973. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  26974. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia33", "MM_DL33"},
  26975. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia34", "MM_DL34"},
  26976. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  26977. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26978. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26979. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26980. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26981. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26982. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26983. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26984. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26985. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26986. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26987. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26988. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26989. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26990. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26991. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26992. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26993. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26994. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26995. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26996. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26997. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26998. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  26999. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27000. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27001. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27002. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  27003. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27004. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27005. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27006. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27007. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27008. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27009. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27010. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27011. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27012. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27013. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27014. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27015. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27016. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27017. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27018. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27019. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27020. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27021. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27022. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27023. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27024. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27025. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27026. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27027. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27028. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  27029. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27030. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27031. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27032. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27033. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27034. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27035. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27036. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27037. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27038. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27039. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27040. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27041. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27042. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27043. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27044. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27045. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27046. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27047. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27048. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27049. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27050. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27051. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27052. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27053. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27054. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27055. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  27056. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27057. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27058. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27059. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27060. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27061. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27062. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27063. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27064. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27065. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27066. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27067. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27068. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27069. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27070. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27071. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27072. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27073. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27074. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27075. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27076. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27077. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27078. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27079. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27080. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27081. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27082. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  27083. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27084. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27085. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27086. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27087. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27088. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27089. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27090. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27091. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27092. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27093. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27094. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27095. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27096. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27097. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27098. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27099. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27100. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27101. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27102. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27103. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27104. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27105. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27106. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27107. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27108. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27109. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  27110. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27111. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27112. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27113. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27114. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27115. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27116. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27117. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27118. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27119. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27120. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27121. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27122. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27123. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27124. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27125. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27126. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27127. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27128. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27129. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27130. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27131. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27132. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27133. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27134. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27135. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27136. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  27137. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27138. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27139. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27140. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27141. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27142. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27143. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27144. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27145. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27146. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27147. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27148. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27149. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27150. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27151. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27152. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27153. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27154. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27155. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27156. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27157. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27158. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27159. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27160. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27161. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27162. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27163. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  27164. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27165. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27166. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27167. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27168. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27169. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27170. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27171. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27172. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27173. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27174. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27175. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27176. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27177. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27178. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27179. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27180. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27181. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27182. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27183. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27184. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27185. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27186. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27187. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27188. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27189. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27190. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  27191. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27192. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27193. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27194. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27195. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27196. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27197. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27198. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27199. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27200. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27201. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27202. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27203. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27204. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27205. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27206. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27207. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27208. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27209. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27210. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27211. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27212. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27213. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27214. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27215. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27216. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27217. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  27218. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27219. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27220. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27221. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27222. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27223. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27224. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27225. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27226. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27227. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27228. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27229. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27230. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27231. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27232. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27233. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27234. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27235. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27236. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  27237. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  27238. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  27239. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  27240. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  27241. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  27242. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia33", "MM_DL33"},
  27243. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia34", "MM_DL34"},
  27244. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  27245. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27246. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27247. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27248. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27249. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27250. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27251. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27252. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27253. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27254. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27255. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27256. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27257. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27258. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27259. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27260. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27261. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27262. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27263. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  27264. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27265. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27266. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27267. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27268. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27269. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27270. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27271. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27272. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27273. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27274. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27275. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27276. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27277. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27278. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27279. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27280. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27281. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27282. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  27283. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27284. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27285. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27286. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27287. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27288. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27289. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27290. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27291. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27292. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27293. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27294. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27295. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27296. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27297. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27298. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27299. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27300. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27301. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  27302. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  27303. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  27304. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  27305. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  27306. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  27307. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  27308. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  27309. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  27310. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  27311. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  27312. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  27313. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  27314. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  27315. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  27316. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  27317. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  27318. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  27319. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  27320. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  27321. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27322. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27323. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27324. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27325. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27326. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27327. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27328. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27329. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27330. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27331. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27332. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27333. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27334. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27335. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27336. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27337. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27338. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27339. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27340. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27341. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27342. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27343. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27344. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27345. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27346. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27347. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27348. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27349. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27350. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27351. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27352. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27353. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27354. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27355. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27356. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27357. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27358. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27359. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27360. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27361. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27362. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27363. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27364. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27365. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27366. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27367. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27368. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27369. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27370. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27371. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27372. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27373. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27374. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27375. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27376. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27377. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27378. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27379. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27380. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27381. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27382. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27383. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27384. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27385. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27386. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27387. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27388. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27389. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27390. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27391. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27392. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27393. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27394. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27395. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27396. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27397. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27398. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27399. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27400. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27401. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27402. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27403. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27404. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27405. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27406. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27407. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27408. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27409. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27410. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27411. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27412. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27413. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27414. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27415. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27416. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27417. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27418. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27419. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27420. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27421. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27422. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27423. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27424. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27425. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27426. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27427. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27428. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27429. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27430. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27431. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27432. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27433. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27434. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27435. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27436. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27437. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27438. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27439. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27440. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27441. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27442. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27443. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27444. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27445. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27446. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27447. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27448. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27449. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27450. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27451. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27452. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27453. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27454. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27455. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27456. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27457. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27458. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27459. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27460. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27461. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27462. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27463. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27464. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27465. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27466. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27467. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27468. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27469. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27470. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27471. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27472. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27473. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27474. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27475. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27476. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27477. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27478. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27479. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27480. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27481. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27482. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27483. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27484. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27485. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27486. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27487. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27488. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27489. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27490. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27491. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27492. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27493. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27494. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27495. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27496. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27497. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27498. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27499. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27500. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27501. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27502. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27503. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27504. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27505. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27506. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27507. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27508. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27509. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27510. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27511. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27512. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27513. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27514. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27515. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27516. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27517. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27518. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27519. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27520. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27521. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27522. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27523. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27524. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27525. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27526. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27527. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27528. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27529. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27530. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27531. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27532. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27533. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27534. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27535. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27536. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27537. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27538. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27539. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27540. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27541. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27542. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27543. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27544. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27545. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27546. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27547. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27548. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27549. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27550. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27551. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27552. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27553. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27554. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27555. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27556. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27557. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27558. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27559. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27560. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27561. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27562. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27563. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27564. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27565. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27566. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27567. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27568. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27569. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27570. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27571. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27572. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27573. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27574. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27575. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27576. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27577. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27578. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27579. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27580. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27581. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27582. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27583. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27584. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27585. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27586. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27587. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27588. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27589. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27590. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27591. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27592. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27593. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27594. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27595. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27596. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27597. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27598. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27599. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27600. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27601. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27602. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27603. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27604. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27605. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27606. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27607. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27608. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27609. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27610. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27611. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27612. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27613. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27614. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27615. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27616. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27617. {"MultiMedia31 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27618. {"MultiMedia31 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27619. {"MultiMedia31 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27620. {"MultiMedia31 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27621. {"MultiMedia31 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27622. {"MultiMedia31 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27623. {"MultiMedia31 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27624. {"MultiMedia31 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27625. {"MultiMedia31 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27626. {"MultiMedia31 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27627. {"MultiMedia31 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27628. {"MultiMedia31 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27629. {"MultiMedia31 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27630. {"MultiMedia31 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27631. {"MultiMedia31 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27632. {"MultiMedia31 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27633. {"MultiMedia31 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27634. {"MultiMedia31 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27635. {"MultiMedia31 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27636. {"MultiMedia31 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27637. {"MultiMedia32 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27638. {"MultiMedia32 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27639. {"MultiMedia32 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27640. {"MultiMedia32 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27641. {"MultiMedia32 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27642. {"MultiMedia32 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27643. {"MultiMedia32 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27644. {"MultiMedia32 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27645. {"MultiMedia32 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27646. {"MultiMedia32 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27647. {"MultiMedia32 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27648. {"MultiMedia32 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27649. {"MultiMedia32 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27650. {"MultiMedia32 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27651. {"MultiMedia32 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27652. {"MultiMedia32 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27653. {"MultiMedia32 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27654. {"MultiMedia32 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27655. {"MultiMedia32 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27656. {"MultiMedia32 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27657. {"MultiMedia33 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27658. {"MultiMedia33 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27659. {"MultiMedia33 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27660. {"MultiMedia33 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27661. {"MultiMedia33 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27662. {"MultiMedia33 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27663. {"MultiMedia33 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27664. {"MultiMedia33 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27665. {"MultiMedia33 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27666. {"MultiMedia33 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27667. {"MultiMedia33 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27668. {"MultiMedia33 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27669. {"MultiMedia33 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27670. {"MultiMedia33 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27671. {"MultiMedia33 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27672. {"MultiMedia33 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27673. {"MultiMedia33 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27674. {"MultiMedia33 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27675. {"MultiMedia33 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27676. {"MultiMedia33 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27677. {"MultiMedia34 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27678. {"MultiMedia34 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27679. {"MultiMedia34 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27680. {"MultiMedia34 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27681. {"MultiMedia34 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27682. {"MultiMedia34 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27683. {"MultiMedia34 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27684. {"MultiMedia34 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27685. {"MultiMedia34 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27686. {"MultiMedia34 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27687. {"MultiMedia34 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27688. {"MultiMedia34 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27689. {"MultiMedia34 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27690. {"MultiMedia34 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27691. {"MultiMedia34 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27692. {"MultiMedia34 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27693. {"MultiMedia34 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27694. {"MultiMedia34 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27695. {"MultiMedia34 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27696. {"MultiMedia34 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27697. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27698. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27699. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27700. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27701. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27702. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27703. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27704. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27705. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  27706. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27707. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27708. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27709. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27710. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27711. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27712. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27713. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27714. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  27715. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  27716. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27717. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27718. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27719. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27720. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27721. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27722. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27723. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  27724. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  27725. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27726. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27727. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27728. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27729. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27730. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27731. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27732. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  27733. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27734. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  27735. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27736. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  27737. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27738. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27739. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27740. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  27741. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  27742. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27743. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27744. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27745. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27746. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27747. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27748. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27749. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27750. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27751. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27752. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27753. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27754. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27755. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27756. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27757. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27758. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27759. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27760. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27761. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27762. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27763. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27764. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27765. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27766. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27767. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27768. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27769. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27770. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27771. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27772. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27773. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27774. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27775. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27776. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27777. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27778. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27779. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27780. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27781. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27782. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27783. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27784. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27785. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27786. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27787. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27788. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27789. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27790. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27791. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27792. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27793. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27794. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27795. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27796. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27797. #ifndef CONFIG_MI2S_DISABLE
  27798. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27799. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27800. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27801. #endif
  27802. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27803. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27804. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27805. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27806. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27807. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27808. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27809. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27810. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27811. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27812. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27813. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27814. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27815. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27816. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27817. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27818. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27819. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27820. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27821. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27822. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27823. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27824. #ifndef CONFIG_MI2S_DISABLE
  27825. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27826. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27827. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27828. #endif
  27829. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27830. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27831. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27832. #ifndef CONFIG_AUXPCM_DISABLE
  27833. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27834. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27835. #endif
  27836. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27837. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27838. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27839. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27840. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27841. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27842. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27843. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27844. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27845. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27846. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27847. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27848. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27849. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27850. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27851. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27852. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27853. #ifndef CONFIG_MI2S_DISABLE
  27854. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27855. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27856. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27857. #endif
  27858. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27859. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27860. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27861. #ifndef CONFIG_AUXPCM_DISABLE
  27862. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27863. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27864. #endif
  27865. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27866. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27867. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27868. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27869. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27870. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27871. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27872. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27873. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27874. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27875. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27876. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27877. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27878. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27879. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27880. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27881. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27882. #ifndef CONFIG_MI2S_DISABLE
  27883. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27884. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27885. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27886. #endif
  27887. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27888. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27889. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27890. #ifndef CONFIG_AUXPCM_DISABLE
  27891. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27892. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27893. #endif
  27894. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27895. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27896. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27897. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27898. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27899. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27900. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27901. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27902. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27903. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27904. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27905. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27906. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27907. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27908. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27909. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27910. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27911. #ifndef CONFIG_MI2S_DISABLE
  27912. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27913. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27914. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27915. #endif
  27916. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27917. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27918. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27919. #ifndef CONFIG_AUXPCM_DISABLE
  27920. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27921. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27922. #endif
  27923. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27924. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27925. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27926. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27927. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27928. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27929. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27930. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27931. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27932. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27933. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27934. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27935. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27936. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27937. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27938. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27939. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27940. #ifndef CONFIG_MI2S_DISABLE
  27941. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27942. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27943. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27944. #endif
  27945. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27946. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27947. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27948. #ifndef CONFIG_AUXPCM_DISABLE
  27949. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27950. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27951. #endif
  27952. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27953. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27954. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27955. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27956. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27957. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27958. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27959. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27960. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27961. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27962. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27963. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27964. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27965. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27966. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27967. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27968. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27969. #ifndef CONFIG_MI2S_DISABLE
  27970. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27971. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27972. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27973. #endif
  27974. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27975. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27976. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27977. #ifndef CONFIG_AUXPCM_DISABLE
  27978. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27979. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27980. #endif
  27981. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27982. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27983. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27984. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27985. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27986. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27987. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27988. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27989. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27990. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27991. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27992. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27993. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27994. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27995. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27996. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27997. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27998. #ifndef CONFIG_MI2S_DISABLE
  27999. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28000. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28001. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28002. #endif
  28003. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28004. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28005. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28006. #ifndef CONFIG_AUXPCM_DISABLE
  28007. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28008. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28009. #endif
  28010. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  28011. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  28012. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  28013. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  28014. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28015. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28016. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28017. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28018. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28019. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28020. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28021. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28022. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28023. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28024. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28025. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28026. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  28027. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  28028. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  28029. #ifndef CONFIG_MI2S_DISABLE
  28030. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28031. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28032. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28033. #endif
  28034. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28035. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28036. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28037. #ifndef CONFIG_AUXPCM_DISABLE
  28038. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28039. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28040. #endif
  28041. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28042. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28043. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28044. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28045. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28046. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28047. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28048. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28049. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28050. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28051. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28052. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28053. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28054. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28055. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28056. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28057. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  28058. #ifndef CONFIG_MI2S_DISABLE
  28059. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28060. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28061. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28062. #endif
  28063. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28064. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28065. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28066. #ifndef CONFIG_AUXPCM_DISABLE
  28067. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28068. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28069. #endif
  28070. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28071. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28072. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28073. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28074. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28075. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28076. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28077. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28078. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28079. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28080. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28081. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28082. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28083. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28084. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28085. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28086. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  28087. #ifndef CONFIG_MI2S_DISABLE
  28088. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28089. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28090. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28091. #endif
  28092. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28093. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28094. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28095. #ifndef CONFIG_AUXPCM_DISABLE
  28096. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28097. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28098. #endif
  28099. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28100. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28101. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28102. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28103. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28104. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28105. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28106. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28107. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28108. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28109. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28110. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28111. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28112. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28113. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28114. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28115. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  28116. #ifndef CONFIG_MI2S_DISABLE
  28117. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28118. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28119. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28120. #endif
  28121. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28122. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28123. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28124. #ifndef CONFIG_AUXPCM_DISABLE
  28125. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28126. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28127. #endif
  28128. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28129. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28130. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28131. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28132. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28133. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28134. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28135. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28136. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28137. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28138. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28139. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28140. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28141. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28142. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28143. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28144. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  28145. #ifndef CONFIG_MI2S_DISABLE
  28146. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28147. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28148. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28149. #endif
  28150. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28151. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28152. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28153. #ifndef CONFIG_AUXPCM_DISABLE
  28154. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28155. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28156. #endif
  28157. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28158. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28159. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28160. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28161. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28162. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28163. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28164. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28165. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28166. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28167. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28168. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28169. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28170. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28171. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28172. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28173. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  28174. #ifndef CONFIG_MI2S_DISABLE
  28175. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28176. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28177. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28178. #endif
  28179. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28180. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28181. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28182. #ifndef CONFIG_AUXPCM_DISABLE
  28183. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28184. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28185. #endif
  28186. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28187. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28188. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28189. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28190. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28191. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28192. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28193. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28194. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28195. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28196. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28197. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28198. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28199. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28200. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28201. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28202. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  28203. #ifndef CONFIG_MI2S_DISABLE
  28204. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28205. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28206. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28207. #endif
  28208. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28209. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28210. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28211. #ifndef CONFIG_AUXPCM_DISABLE
  28212. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28213. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28214. #endif
  28215. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28216. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28217. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28218. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28219. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28220. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28221. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28222. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28223. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28224. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28225. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28226. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28227. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28228. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28229. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28230. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28231. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  28232. #ifndef CONFIG_MI2S_DISABLE
  28233. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28234. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28235. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28236. #endif
  28237. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28238. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28239. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28240. #ifndef CONFIG_AUXPCM_DISABLE
  28241. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28242. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28243. #endif
  28244. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28245. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28246. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28247. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28248. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28249. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28250. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28251. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28252. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28253. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28254. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28255. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28256. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28257. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28258. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28259. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28260. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  28261. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28262. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28263. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  28264. #ifndef CONFIG_MI2S_DISABLE
  28265. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28266. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28267. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28268. #endif
  28269. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28270. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28271. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28272. #ifndef CONFIG_AUXPCM_DISABLE
  28273. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28274. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28275. #endif
  28276. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28277. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28278. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28279. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28280. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28281. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28282. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28283. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28284. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28285. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28286. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28287. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28288. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28289. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28290. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28291. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28292. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  28293. #ifndef CONFIG_MI2S_DISABLE
  28294. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28295. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28296. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28297. #endif
  28298. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28299. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28300. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28301. #ifndef CONFIG_AUXPCM_DISABLE
  28302. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28303. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28304. #endif
  28305. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28306. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28307. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28308. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28309. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28310. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28311. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28312. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28313. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28314. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28315. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28316. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28317. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28318. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28319. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28320. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28321. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  28322. #ifndef CONFIG_MI2S_DISABLE
  28323. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28324. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28325. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28326. #endif
  28327. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28328. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28329. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28330. #ifndef CONFIG_AUXPCM_DISABLE
  28331. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28332. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28333. #endif
  28334. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28335. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28336. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28337. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28338. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28339. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28340. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28341. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28342. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28343. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28344. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28345. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28346. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28347. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28348. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28349. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28350. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  28351. #ifndef CONFIG_MI2S_DISABLE
  28352. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28353. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28354. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28355. #endif
  28356. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28357. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28358. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28359. #ifndef CONFIG_AUXPCM_DISABLE
  28360. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28361. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28362. #endif
  28363. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28364. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28365. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28366. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28367. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28368. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28369. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28370. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28371. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28372. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28373. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28374. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28375. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28376. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28377. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28378. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28379. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  28380. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  28381. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28382. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28383. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  28384. #ifndef CONFIG_MI2S_DISABLE
  28385. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28386. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28387. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28388. #endif
  28389. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28390. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28391. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28392. #ifndef CONFIG_AUXPCM_DISABLE
  28393. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28394. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28395. #endif
  28396. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28397. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28398. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28399. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28400. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28401. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28402. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28403. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28404. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28405. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28406. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28407. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28408. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  28409. #ifndef CONFIG_MI2S_DISABLE
  28410. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28411. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28412. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28413. #endif
  28414. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28415. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28416. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28417. #ifndef CONFIG_AUXPCM_DISABLE
  28418. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28419. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28420. #endif
  28421. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28422. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28423. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28424. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28425. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28426. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28427. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28428. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28429. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28430. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28431. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28432. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28433. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  28434. #ifndef CONFIG_MI2S_DISABLE
  28435. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28436. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28437. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28438. #endif
  28439. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28440. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28441. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28442. #ifndef CONFIG_AUXPCM_DISABLE
  28443. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28444. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28445. #endif
  28446. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28447. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28448. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28449. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28450. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28451. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28452. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28453. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28454. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28455. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28456. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28457. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28458. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  28459. #ifndef CONFIG_MI2S_DISABLE
  28460. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28461. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28462. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28463. #endif
  28464. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28465. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28466. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28467. #ifndef CONFIG_AUXPCM_DISABLE
  28468. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28469. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28470. #endif
  28471. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28472. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28473. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28474. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28475. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28476. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28477. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28478. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28479. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28480. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28481. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28482. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28483. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  28484. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28485. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  28486. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  28487. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  28488. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28489. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  28490. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  28491. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28492. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28493. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  28494. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  28495. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  28496. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28497. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  28498. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  28499. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28500. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28501. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28502. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28503. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28504. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28505. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28506. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28507. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28508. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28509. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28510. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28511. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28512. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28513. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28514. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28515. /* Backend Enablement */
  28516. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28517. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28518. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28519. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28520. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28521. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28522. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28523. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28524. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28525. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28526. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28527. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28528. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28529. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28530. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28531. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28532. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28533. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28534. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28535. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28536. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28537. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28538. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28539. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28540. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28541. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28542. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28543. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28544. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28545. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28546. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28547. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28548. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28549. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28550. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28551. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28552. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28553. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28554. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28555. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28556. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28557. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28558. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28559. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28560. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28561. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28562. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28563. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28564. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28565. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28566. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28567. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28568. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28569. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28570. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28571. };
  28572. #endif
  28573. #ifndef CONFIG_MI2S_DISABLE
  28574. static const struct snd_soc_dapm_route intercon_mi2s[] = {
  28575. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28576. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28577. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28578. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28579. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28580. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28581. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28582. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28583. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28584. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28585. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28586. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28587. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28588. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28589. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28590. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28591. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28592. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  28593. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28594. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28595. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28596. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28597. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28598. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28599. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28600. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28601. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28602. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28603. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28604. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28605. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28606. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28607. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28608. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28609. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28610. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  28611. /* incall */
  28612. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28613. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28614. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28615. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28616. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28617. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28618. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28619. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28620. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28621. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28622. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28623. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28624. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28625. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28626. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28627. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28628. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28629. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28630. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28631. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28632. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28633. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28634. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28635. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28636. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28637. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28638. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28639. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28640. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28641. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28642. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28643. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28644. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28645. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28646. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28647. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28648. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28649. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28650. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28651. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28652. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28653. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28654. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28655. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28656. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  28657. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28658. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28659. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28660. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28661. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28662. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28663. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28664. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28665. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28666. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28667. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28668. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28669. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28670. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28671. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28672. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  28673. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28674. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  28675. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28676. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28677. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28678. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28679. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28680. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28681. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28682. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28683. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28684. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28685. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28686. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28687. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28688. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28689. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28690. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  28691. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28692. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28693. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28694. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28695. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28696. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28697. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28698. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28699. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28700. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28701. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28702. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28703. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28704. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28705. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28706. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  28707. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  28708. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  28709. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28710. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28711. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28712. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28713. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28714. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28715. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28716. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28717. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28718. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28719. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28720. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28721. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28722. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28723. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28724. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28725. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28726. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28727. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28728. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  28729. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  28730. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28731. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28732. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28733. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28734. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28735. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28736. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28737. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28738. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28739. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28740. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28741. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28742. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28743. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28744. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28745. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  28746. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28747. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28748. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28749. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28750. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28751. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28752. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28753. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28754. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28755. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28756. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28757. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28758. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28759. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28760. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28761. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  28762. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28763. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28764. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28765. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28766. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28767. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28768. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28769. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28770. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28771. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28772. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28773. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28774. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28775. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28776. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28777. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28778. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28779. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  28780. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28781. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28782. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28783. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28784. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28785. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28786. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28787. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28788. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28789. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28790. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28791. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28792. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28793. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28794. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28795. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  28796. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28797. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28798. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28799. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28800. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28801. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28802. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28803. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28804. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28805. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28806. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28807. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28808. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28809. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28810. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28811. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28812. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28813. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  28814. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  28815. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  28816. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  28817. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  28818. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  28819. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  28820. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  28821. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  28822. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  28823. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  28824. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  28825. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  28826. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  28827. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  28828. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  28829. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  28830. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  28831. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  28832. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  28833. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  28834. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  28835. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  28836. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  28837. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  28838. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  28839. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28840. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28841. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28842. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28843. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28844. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28845. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28846. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28847. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28848. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28849. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28850. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28851. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28852. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28853. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28854. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28855. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28856. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28857. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28858. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28859. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28860. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28861. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28862. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28863. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  28864. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28865. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28866. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28867. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28868. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28869. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28870. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28871. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28872. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28873. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28874. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28875. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28876. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28877. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28878. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28879. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28880. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28881. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28882. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28883. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28884. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28885. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28886. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28887. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28888. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28889. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28890. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28891. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28892. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28893. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28894. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28895. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28896. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  28897. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28898. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28899. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28900. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  28901. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28902. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  28903. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  28904. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28905. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28906. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28907. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28908. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  28909. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28910. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  28911. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  28912. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28913. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28914. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28915. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28916. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  28917. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28918. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  28919. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  28920. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28921. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28922. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28923. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28924. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  28925. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28926. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28927. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28928. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28929. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28930. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  28931. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28932. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28933. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28934. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28935. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28936. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  28937. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28938. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  28939. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  28940. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28941. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28942. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28943. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28944. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  28945. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28946. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  28947. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  28948. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28949. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28950. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28951. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  28952. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28953. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  28954. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  28955. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28956. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28957. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28958. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  28959. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28960. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28961. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28962. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28963. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  28964. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28965. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28966. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28967. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28968. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28969. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28970. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28971. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28972. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28973. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28974. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28975. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28976. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28977. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28978. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28979. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28980. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28981. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28982. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28983. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28984. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28985. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28986. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28987. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28988. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28989. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28990. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28991. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28992. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28993. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28994. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28995. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28996. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28997. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28998. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28999. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29000. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29001. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29002. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29003. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29004. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29005. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29006. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29007. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29008. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29009. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29010. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29011. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29012. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29013. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29014. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29015. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29016. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29017. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29018. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29019. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29020. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29021. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29022. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29023. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29024. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29025. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29026. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29027. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29028. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29029. {"AUDIO_REF_EC_UL30 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29030. {"AUDIO_REF_EC_UL30 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29031. {"AUDIO_REF_EC_UL30 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29032. {"AUDIO_REF_EC_UL30 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29033. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  29034. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  29035. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  29036. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  29037. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  29038. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  29039. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  29040. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  29041. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  29042. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  29043. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  29044. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  29045. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  29046. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  29047. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  29048. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  29049. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  29050. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  29051. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  29052. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  29053. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  29054. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29055. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29056. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29057. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29058. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29059. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29060. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29061. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29062. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29063. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29064. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29065. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29066. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29067. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29068. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29069. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29070. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29071. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29072. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  29073. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  29074. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  29075. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  29076. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  29077. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  29078. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  29079. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  29080. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29081. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29082. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29083. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29084. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29085. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29086. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29087. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29088. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29089. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29090. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  29091. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  29092. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  29093. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  29094. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  29095. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  29096. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  29097. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  29098. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  29099. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  29100. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  29101. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  29102. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  29103. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  29104. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  29105. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  29106. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  29107. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  29108. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  29109. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  29110. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  29111. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  29112. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  29113. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  29114. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  29115. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  29116. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29117. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29118. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29119. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29120. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29121. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29122. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29123. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  29124. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29125. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29126. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  29127. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  29128. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  29129. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29130. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29131. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29132. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29133. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29134. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29135. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29136. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  29137. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29138. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  29139. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29140. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  29141. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  29142. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  29143. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29144. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29145. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  29146. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29147. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29148. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29149. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29150. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29151. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29152. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29153. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  29154. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  29155. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29156. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  29157. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29158. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29159. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29160. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29161. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29162. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29163. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29164. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29165. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  29166. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29167. #ifndef CONFIG_AUXPCM_DISABLE
  29168. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  29169. #endif
  29170. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  29171. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29172. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29173. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29174. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29175. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29176. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29177. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29178. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29179. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29180. #ifndef CONFIG_AUXPCM_DISABLE
  29181. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  29182. #endif
  29183. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  29184. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29185. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29186. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29187. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29188. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29189. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29190. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29191. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29192. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  29193. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29194. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29195. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29196. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29197. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29198. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29199. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29200. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  29201. #ifndef CONFIG_AUXPCM_DISABLE
  29202. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  29203. #endif
  29204. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29205. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  29206. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29207. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29208. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29209. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29210. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29211. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  29212. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29213. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29214. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  29215. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29216. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  29217. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29218. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29219. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  29220. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  29221. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  29222. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  29223. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29224. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29225. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  29226. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  29227. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  29228. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29229. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  29230. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  29231. /* Backend Enablement */
  29232. {"BE_OUT", NULL, "PRI_I2S_RX"},
  29233. {"BE_OUT", NULL, "SEC_I2S_RX"},
  29234. {"BE_OUT", NULL, "MI2S_RX"},
  29235. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  29236. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  29237. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  29238. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  29239. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  29240. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  29241. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  29242. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  29243. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  29244. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  29245. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  29246. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  29247. {"PRI_I2S_TX", NULL, "BE_IN"},
  29248. {"MI2S_TX", NULL, "BE_IN"},
  29249. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  29250. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  29251. {"PRI_MI2S_TX", NULL, "BE_IN"},
  29252. {"TERT_MI2S_TX", NULL, "BE_IN"},
  29253. {"INT0_MI2S_TX", NULL, "BE_IN"},
  29254. {"INT2_MI2S_TX", NULL, "BE_IN"},
  29255. {"INT3_MI2S_TX", NULL, "BE_IN"},
  29256. {"INT4_MI2S_TX", NULL, "BE_IN"},
  29257. {"INT5_MI2S_TX", NULL, "BE_IN"},
  29258. {"SEC_MI2S_TX", NULL, "BE_IN"},
  29259. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  29260. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  29261. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  29262. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  29263. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  29264. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  29265. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  29266. };
  29267. #endif
  29268. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  29269. struct snd_pcm_hw_params *params)
  29270. {
  29271. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  29272. unsigned int be_id = rtd->dai_link->id;
  29273. if (be_id >= MSM_BACKEND_DAI_MAX) {
  29274. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  29275. return -EINVAL;
  29276. }
  29277. mutex_lock(&routing_lock);
  29278. msm_bedais[be_id].sample_rate = params_rate(params);
  29279. msm_bedais[be_id].channel = params_channels(params);
  29280. msm_bedais[be_id].format = params_format(params);
  29281. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  29282. __func__, msm_bedais[be_id].sample_rate,
  29283. msm_bedais[be_id].format, be_id);
  29284. mutex_unlock(&routing_lock);
  29285. return 0;
  29286. }
  29287. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  29288. {
  29289. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  29290. unsigned int be_id = rtd->dai_link->id;
  29291. int i, session_type, path_type, topology;
  29292. struct msm_pcm_routing_bdai_data *bedai;
  29293. struct msm_pcm_routing_fdai_data *fdai;
  29294. pr_debug("%s: substream->pcm->id:%s\n",
  29295. __func__, substream->pcm->id);
  29296. if (be_id >= MSM_BACKEND_DAI_MAX) {
  29297. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  29298. return -EINVAL;
  29299. }
  29300. bedai = &msm_bedais[be_id];
  29301. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  29302. 0 : 1);
  29303. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  29304. path_type = ADM_PATH_PLAYBACK;
  29305. else
  29306. path_type = ADM_PATH_LIVE_REC;
  29307. mutex_lock(&routing_lock);
  29308. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  29309. if (!is_mm_lsm_fe_id(i))
  29310. continue;
  29311. fdai = &fe_dai_map[i][session_type];
  29312. if (fdai->strm_id != INVALID_SESSION) {
  29313. int idx;
  29314. int port_id;
  29315. unsigned long copp =
  29316. session_copp_map[i][session_type][be_id];
  29317. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  29318. if (test_bit(idx, &copp))
  29319. break;
  29320. if (idx >= MAX_COPPS_PER_PORT) {
  29321. pr_debug("%s: copp idx is invalid, exiting\n",
  29322. __func__);
  29323. continue;
  29324. }
  29325. fdai->be_srate = bedai->sample_rate;
  29326. port_id = get_port_id(bedai->port_id);
  29327. topology = adm_get_topology_for_port_copp_idx(port_id,
  29328. idx);
  29329. msm_routing_unload_topology(topology);
  29330. adm_close(port_id, fdai->perf_mode, idx);
  29331. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  29332. __func__, copp, i, session_type, be_id,
  29333. topology);
  29334. clear_bit(idx,
  29335. &session_copp_map[i][session_type][be_id]);
  29336. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  29337. (fdai->passthr_mode == LEGACY_PCM))
  29338. msm_pcm_routing_deinit_pp(port_id,
  29339. topology);
  29340. }
  29341. }
  29342. bedai->active = 0;
  29343. bedai->sample_rate = 0;
  29344. bedai->channel = 0;
  29345. mutex_unlock(&routing_lock);
  29346. return 0;
  29347. }
  29348. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  29349. {
  29350. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  29351. unsigned int be_id = rtd->dai_link->id;
  29352. int i, path_type, topology;
  29353. int session_type = INVALID_SESSION;
  29354. struct msm_pcm_routing_bdai_data *bedai;
  29355. u32 channels, sample_rate;
  29356. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  29357. struct msm_pcm_routing_fdai_data *fdai;
  29358. u32 session_id;
  29359. struct media_format_info voc_be_media_format;
  29360. bool is_lsm;
  29361. uint32_t copp_token = 0;
  29362. pr_debug("%s: substream->pcm->id:%s\n",
  29363. __func__, substream->pcm->id);
  29364. if (be_id >= MSM_BACKEND_DAI_MAX) {
  29365. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  29366. return -EINVAL;
  29367. }
  29368. bedai = &msm_bedais[be_id];
  29369. mutex_lock(&routing_lock);
  29370. if (bedai->active == 1)
  29371. goto done; /* Ignore prepare if back-end already active */
  29372. /* AFE port is not active at this point. However, still
  29373. * go ahead setting active flag under the notion that
  29374. * QDSP6 is able to handle ADM starting before AFE port
  29375. * is started.
  29376. */
  29377. bedai->active = 1;
  29378. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  29379. if (!(is_mm_lsm_fe_id(i) &&
  29380. route_check_fe_id_adm_support(i)))
  29381. continue;
  29382. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  29383. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29384. fdai = &fe_dai_map[i][session_type];
  29385. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  29386. if (fdai->passthr_mode != LEGACY_PCM)
  29387. path_type = ADM_PATH_COMPRESSED_RX;
  29388. else
  29389. path_type = ADM_PATH_PLAYBACK;
  29390. } else {
  29391. if ((fdai->passthr_mode != LEGACY_PCM) &&
  29392. (fdai->passthr_mode != LISTEN))
  29393. path_type = ADM_PATH_COMPRESSED_TX;
  29394. else
  29395. path_type = ADM_PATH_LIVE_REC;
  29396. }
  29397. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  29398. (i <= MSM_FRONTEND_DAI_LSM8);
  29399. if (fdai->strm_id != INVALID_SESSION) {
  29400. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  29401. int port_id = get_port_id(bedai->port_id);
  29402. if (session_type == SESSION_TYPE_TX &&
  29403. fdai->be_srate &&
  29404. (fdai->be_srate != bedai->sample_rate)) {
  29405. pr_debug("%s: flush strm %d diff BE rates\n",
  29406. __func__,
  29407. fdai->strm_id);
  29408. if (fdai->event_info.event_func)
  29409. fdai->event_info.event_func(
  29410. MSM_PCM_RT_EVT_BUF_RECFG,
  29411. fdai->event_info.priv_data);
  29412. fdai->be_srate = 0; /* might not need it */
  29413. }
  29414. bits_per_sample = msm_routing_get_bit_width(
  29415. bedai->format);
  29416. app_type =
  29417. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  29418. if (app_type && is_lsm) {
  29419. app_type_idx =
  29420. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  29421. sample_rate =
  29422. fe_dai_app_type_cfg[i][session_type][be_id]
  29423. .sample_rate;
  29424. bits_per_sample =
  29425. lsm_app_type_cfg[app_type_idx].bit_width;
  29426. } else if (app_type) {
  29427. app_type_idx =
  29428. msm_pcm_routing_get_app_type_idx(app_type);
  29429. sample_rate =
  29430. fe_dai_app_type_cfg[i][session_type]
  29431. [be_id].sample_rate;
  29432. bits_per_sample =
  29433. app_type_cfg[app_type_idx].bit_width;
  29434. copp_token =
  29435. fe_dai_app_type_cfg[i][session_type]
  29436. [be_id].copp_token;
  29437. } else
  29438. sample_rate = bedai->sample_rate;
  29439. /*
  29440. * check if ADM needs to be configured with different
  29441. * channel mapping than backend
  29442. */
  29443. if (!bedai->adm_override_ch)
  29444. channels = bedai->channel;
  29445. else
  29446. channels = bedai->adm_override_ch;
  29447. acdb_dev_id =
  29448. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  29449. topology = msm_routing_get_adm_topology(i, session_type,
  29450. be_id);
  29451. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  29452. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  29453. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  29454. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  29455. be_bit_width = msm_routing_get_bit_width(
  29456. bedai->format);
  29457. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  29458. || bedai->sample_rate == 352800) &&
  29459. be_bit_width == 32)
  29460. bits_per_sample = msm_routing_get_bit_width(
  29461. SNDRV_PCM_FORMAT_S32_LE);
  29462. copp_idx = adm_open(port_id, path_type,
  29463. sample_rate, channels, topology,
  29464. fdai->perf_mode, bits_per_sample,
  29465. app_type, acdb_dev_id,
  29466. session_type, fdai->passthr_mode, copp_token);
  29467. if ((copp_idx < 0) ||
  29468. (copp_idx >= MAX_COPPS_PER_PORT)) {
  29469. pr_err("%s: adm open failed\n", __func__);
  29470. mutex_unlock(&routing_lock);
  29471. return -EINVAL;
  29472. }
  29473. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  29474. __func__, i, session_type, be_id);
  29475. set_bit(copp_idx,
  29476. &session_copp_map[i][session_type][be_id]);
  29477. if (msm_is_resample_needed(
  29478. sample_rate,
  29479. bedai->sample_rate))
  29480. adm_copp_mfc_cfg(port_id, copp_idx,
  29481. bedai->sample_rate);
  29482. msm_pcm_routing_build_matrix(i, session_type, path_type,
  29483. fdai->perf_mode, fdai->passthr_mode);
  29484. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  29485. (fdai->passthr_mode == LEGACY_PCM))
  29486. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  29487. topology, channels);
  29488. }
  29489. }
  29490. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  29491. session_id = msm_pcm_routing_get_voc_sessionid(i);
  29492. if (session_id) {
  29493. pr_debug("%s voice session_id: 0x%x\n", __func__,
  29494. session_id);
  29495. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  29496. voc_path_type = RX_PATH;
  29497. else
  29498. voc_path_type = TX_PATH;
  29499. voc_set_route_flag(session_id, voc_path_type, 1);
  29500. memset(&voc_be_media_format, 0,
  29501. sizeof(struct media_format_info));
  29502. voc_be_media_format.port_id = bedai->port_id;
  29503. voc_be_media_format.num_channels = bedai->channel;
  29504. voc_be_media_format.sample_rate = bedai->sample_rate;
  29505. voc_be_media_format.bits_per_sample = bedai->format;
  29506. /* Defaulting this to 1 for voice call usecases */
  29507. voc_be_media_format.channel_mapping[0] = 1;
  29508. voc_set_device_config(session_id, voc_path_type,
  29509. &voc_be_media_format);
  29510. if (voc_get_route_flag(session_id, RX_PATH) &&
  29511. voc_get_route_flag(session_id, TX_PATH))
  29512. voc_enable_device(session_id);
  29513. }
  29514. }
  29515. /* Check if backend is an external ec ref port and set as needed */
  29516. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  29517. memset(&voc_be_media_format, 0,
  29518. sizeof(struct media_format_info));
  29519. /* Get format info for ec ref port from msm_bedais[] */
  29520. voc_be_media_format.port_id = bedai->port_id;
  29521. voc_be_media_format.num_channels = bedai->channel;
  29522. voc_be_media_format.bits_per_sample = bedai->format;
  29523. voc_be_media_format.sample_rate = bedai->sample_rate;
  29524. /* Defaulting this to 1 for voice call usecases */
  29525. voc_be_media_format.channel_mapping[0] = 1;
  29526. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  29527. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  29528. __func__, voc_be_media_format.port_id,
  29529. voc_be_media_format.num_channels,
  29530. voc_be_media_format.bits_per_sample,
  29531. voc_be_media_format.sample_rate);
  29532. }
  29533. done:
  29534. mutex_unlock(&routing_lock);
  29535. return 0;
  29536. }
  29537. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  29538. int fe_id)
  29539. {
  29540. int index, topo_id, be_idx;
  29541. unsigned long pp_config = 0;
  29542. bool mute_on;
  29543. int latency, session_type;
  29544. bool compr_passthr_mode = true;
  29545. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  29546. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX
  29547. && port_id != HDMI_RX_MS) {
  29548. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  29549. __func__, port_id, copp_idx, fe_id);
  29550. return -EINVAL;
  29551. }
  29552. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29553. if (port_id == msm_bedais[be_idx].port_id)
  29554. break;
  29555. }
  29556. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29557. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29558. return -EINVAL;
  29559. }
  29560. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29561. if (msm_bedais_pp_params[index].port_id == port_id)
  29562. break;
  29563. }
  29564. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29565. pr_err("%s: Invalid backend pp params index %d\n",
  29566. __func__, index);
  29567. return -EINVAL;
  29568. }
  29569. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  29570. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  29571. pr_err("%s: Invalid passthrough topology 0x%x\n",
  29572. __func__, topo_id);
  29573. return -EINVAL;
  29574. }
  29575. session_type =
  29576. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29577. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29578. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  29579. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  29580. compr_passthr_mode = false;
  29581. pp_config = msm_bedais_pp_params[index].pp_params_config;
  29582. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  29583. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29584. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  29585. mute_on = msm_bedais_pp_params[index].mute_on;
  29586. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29587. adm_send_compressed_device_mute(port_id,
  29588. copp_idx,
  29589. mute_on);
  29590. }
  29591. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  29592. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29593. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  29594. &pp_config);
  29595. latency = msm_bedais_pp_params[index].latency;
  29596. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29597. adm_send_compressed_device_latency(port_id,
  29598. copp_idx,
  29599. latency);
  29600. }
  29601. return 0;
  29602. }
  29603. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  29604. {
  29605. uint32_t topology = NULL_COPP_TOPOLOGY;
  29606. void *cal_info = NULL;
  29607. uint32_t size = 0;
  29608. /* Retrieve cal_info size from cal data*/
  29609. if (data_size < sizeof(struct audio_cal_type_basic) +
  29610. sizeof(struct audio_cal_info_adm_top)) {
  29611. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  29612. goto done;
  29613. }
  29614. size = data_size - sizeof(struct audio_cal_type_basic);
  29615. cal_info = kzalloc(size, GFP_KERNEL);
  29616. if (!cal_info)
  29617. goto done;
  29618. memcpy(cal_info,
  29619. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  29620. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  29621. kfree(cal_info);
  29622. cal_info = NULL;
  29623. done:
  29624. pr_debug("%s: Using topology %d\n", __func__, topology);
  29625. return topology;
  29626. }
  29627. static void msm_routing_load_topology(size_t data_size, void *data)
  29628. {
  29629. uint32_t topology_id;
  29630. int ret = -EINVAL;
  29631. topology_id = msm_routing_get_topology(data_size, data);
  29632. if (topology_id != NULL_COPP_TOPOLOGY)
  29633. ret = q6core_load_unload_topo_modules(topology_id,
  29634. CORE_LOAD_TOPOLOGY);
  29635. if (ret < 0)
  29636. pr_debug("%s %d load topology failed\n",
  29637. __func__, topology_id);
  29638. }
  29639. static void msm_routing_unload_topology(uint32_t topology_id)
  29640. {
  29641. int ret = -EINVAL;
  29642. if (topology_id != NULL_COPP_TOPOLOGY)
  29643. ret = q6core_load_unload_topo_modules(topology_id,
  29644. CORE_UNLOAD_TOPOLOGY);
  29645. if (ret < 0)
  29646. pr_debug("%s %d unload topology failed\n",
  29647. __func__, topology_id);
  29648. }
  29649. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29650. struct snd_ctl_elem_value *ucontrol)
  29651. {
  29652. int pp_id = ucontrol->value.integer.value[0];
  29653. int port_id = 0;
  29654. int index, be_idx, i, topo_id, idx;
  29655. bool mute;
  29656. int latency, session_type;
  29657. bool compr_passthr_mode = true;
  29658. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  29659. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29660. port_id = msm_bedais[be_idx].port_id;
  29661. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX
  29662. || port_id == HDMI_RX_MS)
  29663. break;
  29664. }
  29665. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29666. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29667. return -EINVAL;
  29668. }
  29669. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29670. if (msm_bedais_pp_params[index].port_id == port_id)
  29671. break;
  29672. }
  29673. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29674. pr_err("%s: Invalid pp params backend index %d\n",
  29675. __func__, index);
  29676. return -EINVAL;
  29677. }
  29678. session_type =
  29679. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29680. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29681. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  29682. MSM_FRONTEND_DAI_MM_SIZE) {
  29683. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  29684. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  29685. compr_passthr_mode = false;
  29686. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29687. unsigned long copp =
  29688. session_copp_map[i]
  29689. [SESSION_TYPE_RX][be_idx];
  29690. if (!test_bit(idx, &copp))
  29691. continue;
  29692. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  29693. idx);
  29694. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  29695. continue;
  29696. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  29697. __func__, port_id, copp, msm_bedais[be_idx].active,
  29698. fe_dai_map[i][session_type].passthr_mode);
  29699. switch (pp_id) {
  29700. case ADM_PP_PARAM_MUTE_ID:
  29701. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29702. mute = ucontrol->value.integer.value[1] ? true : false;
  29703. msm_bedais_pp_params[index].mute_on = mute;
  29704. set_bit(ADM_PP_PARAM_MUTE_BIT,
  29705. &msm_bedais_pp_params[index].pp_params_config);
  29706. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29707. adm_send_compressed_device_mute(port_id,
  29708. idx, mute);
  29709. break;
  29710. case ADM_PP_PARAM_LATENCY_ID:
  29711. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29712. msm_bedais_pp_params[index].latency =
  29713. ucontrol->value.integer.value[1];
  29714. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  29715. &msm_bedais_pp_params[index].pp_params_config);
  29716. latency = msm_bedais_pp_params[index].latency =
  29717. ucontrol->value.integer.value[1];
  29718. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29719. adm_send_compressed_device_latency(port_id,
  29720. idx, latency);
  29721. break;
  29722. default:
  29723. pr_info("%s, device pp param %d not supported\n",
  29724. __func__, pp_id);
  29725. break;
  29726. }
  29727. }
  29728. }
  29729. return 0;
  29730. }
  29731. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29732. struct snd_ctl_elem_value *ucontrol)
  29733. {
  29734. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  29735. return 0;
  29736. }
  29737. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  29738. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29739. 0, 3, msm_routing_get_device_pp_params_mixer,
  29740. msm_routing_put_device_pp_params_mixer),
  29741. };
  29742. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  29743. struct snd_ctl_elem_value *ucontrol)
  29744. {
  29745. ucontrol->value.integer.value[0] =
  29746. core_get_license_status(ASM_MEDIA_FMT_APTX);
  29747. pr_debug("%s: status %ld\n", __func__,
  29748. ucontrol->value.integer.value[0]);
  29749. return 0;
  29750. }
  29751. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  29752. struct snd_ctl_elem_value *ucontrol)
  29753. {
  29754. int32_t status = 0;
  29755. status = core_set_license(ucontrol->value.integer.value[0],
  29756. APTX_CLASSIC_DEC_LICENSE_ID);
  29757. pr_debug("%s: status %d\n", __func__, status);
  29758. return status;
  29759. }
  29760. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  29761. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  29762. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  29763. msm_aptx_dec_license_control_put),
  29764. };
  29765. static int msm_routing_get_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29766. struct snd_ctl_elem_value *ucontrol)
  29767. {
  29768. return 0;
  29769. }
  29770. static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29771. struct snd_ctl_elem_value *ucontrol)
  29772. {
  29773. u16 port_id = 0;
  29774. int32_t clk_drift = 0;
  29775. uint32_t clk_reset = 0;
  29776. int be_idx, ret = -EINVAL;
  29777. be_idx = ucontrol->value.integer.value[0];
  29778. clk_drift = ucontrol->value.integer.value[1];
  29779. clk_reset = ucontrol->value.integer.value[2];
  29780. if (be_idx < 0 || be_idx >= MSM_BACKEND_DAI_MAX) {
  29781. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  29782. return -EINVAL;
  29783. }
  29784. if (!msm_bedais[be_idx].active && !clk_reset) {
  29785. pr_err("%s:BE is not active %d, cannot set clock drift\n",
  29786. __func__, be_idx);
  29787. return -EINVAL;
  29788. }
  29789. port_id = msm_bedais[be_idx].port_id;
  29790. pr_debug("%s: clk drift %d be idx %d clk reset %d port id 0x%x\n",
  29791. __func__, clk_drift, be_idx, clk_reset, port_id);
  29792. ret = afe_set_pll_clk_drift(port_id, clk_drift, clk_reset);
  29793. if (ret < 0)
  29794. pr_err("%s: failed to set pll clk drift\n", __func__);
  29795. return ret;
  29796. }
  29797. static const struct snd_kcontrol_new pll_clk_drift_controls[] = {
  29798. SOC_SINGLE_MULTI_EXT("PLL config data", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29799. 0, 128, msm_routing_get_pll_clk_drift, msm_routing_put_pll_clk_drift),
  29800. };
  29801. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  29802. struct snd_ctl_elem_value *ucontrol)
  29803. {
  29804. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  29805. uint32_t be_idx = ucontrol->value.integer.value[0];
  29806. int i;
  29807. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29808. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  29809. return -EINVAL;
  29810. }
  29811. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  29812. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  29813. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  29814. pr_err("%s: Invalid channel map %d\n",
  29815. __func__, channel_map[i]);
  29816. return -EINVAL;
  29817. }
  29818. }
  29819. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  29820. return 0;
  29821. }
  29822. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  29823. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  29824. MSM_BACKEND_DAI_MAX, 0,
  29825. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  29826. msm_routing_put_port_chmap_mixer),
  29827. };
  29828. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  29829. struct snd_ctl_elem_info *uinfo)
  29830. {
  29831. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  29832. uinfo->count = sizeof(be_dai_name_table);
  29833. return 0;
  29834. }
  29835. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  29836. unsigned int __user *bytes,
  29837. unsigned int size)
  29838. {
  29839. int i;
  29840. int ret = 0;
  29841. if (size < sizeof(be_dai_name_table)) {
  29842. pr_err("%s: invalid size %d requested, returning\n",
  29843. __func__, size);
  29844. ret = -EINVAL;
  29845. goto done;
  29846. }
  29847. /*
  29848. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  29849. * needed when adding new backends
  29850. */
  29851. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29852. be_dai_name_table[i].be_id = i;
  29853. strlcpy(be_dai_name_table[i].be_name,
  29854. msm_bedais[i].name,
  29855. LPASS_BE_NAME_MAX_LENGTH);
  29856. }
  29857. ret = copy_to_user(bytes, &be_dai_name_table,
  29858. sizeof(be_dai_name_table));
  29859. if (ret) {
  29860. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  29861. ret = -EFAULT;
  29862. }
  29863. done:
  29864. return ret;
  29865. }
  29866. static const struct snd_kcontrol_new
  29867. msm_routing_be_dai_name_table_mixer_controls[] = {
  29868. {
  29869. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  29870. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  29871. .info = msm_routing_be_dai_name_table_info,
  29872. .name = "Backend DAI Name Table",
  29873. .tlv.c = snd_soc_bytes_tlv_callback,
  29874. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  29875. .max = sizeof(be_dai_name_table),
  29876. .get = msm_routing_be_dai_name_table_tlv_get,
  29877. }
  29878. },
  29879. };
  29880. static int msm_routing_put_mclk_src_cfg(struct snd_kcontrol *kcontrol,
  29881. struct snd_ctl_elem_value *ucontrol)
  29882. {
  29883. u16 port_id = 0;
  29884. int32_t mclk_src_id = 0;
  29885. uint32_t mclk_freq = 0;
  29886. int be_idx, ret = -EINVAL;
  29887. be_idx = ucontrol->value.integer.value[0];
  29888. mclk_src_id = ucontrol->value.integer.value[1];
  29889. mclk_freq = ucontrol->value.integer.value[2];
  29890. if (be_idx < 0 && be_idx >= MSM_BACKEND_DAI_MAX) {
  29891. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  29892. return -EINVAL;
  29893. }
  29894. if (mclk_src_id < MCLK_SRC_INT && mclk_src_id >= MCLK_SRC_MAX) {
  29895. pr_err("%s: Invalid MCLK src %d\n", __func__, mclk_src_id);
  29896. return -EINVAL;
  29897. }
  29898. if (msm_bedais[be_idx].active) {
  29899. pr_err("%s:BE is active %d, cannot set mclk clock src\n",
  29900. __func__, be_idx);
  29901. return -EINVAL;
  29902. }
  29903. port_id = msm_bedais[be_idx].port_id;
  29904. pr_debug("%s: be idx %d mclk_src id %d mclk_freq %d port id 0x%x\n",
  29905. __func__, be_idx, mclk_src_id, mclk_freq, port_id);
  29906. ret = afe_set_mclk_src_cfg(port_id, mclk_src_id, mclk_freq);
  29907. if (ret < 0)
  29908. pr_err("%s: failed to set mclk src cfg\n", __func__);
  29909. return ret;
  29910. }
  29911. static const struct snd_kcontrol_new mclk_src_controls[] = {
  29912. SOC_SINGLE_MULTI_EXT("MCLK_SRC CFG", SND_SOC_NOPM, 0, 24576000, 0, 3,
  29913. NULL, msm_routing_put_mclk_src_cfg),
  29914. };
  29915. static int msm_routing_stereo_channel_reverse_control_get(
  29916. struct snd_kcontrol *kcontrol,
  29917. struct snd_ctl_elem_value *ucontrol)
  29918. {
  29919. ucontrol->value.integer.value[0] = swap_ch;
  29920. pr_debug("%s: Swap channel value: %ld\n", __func__,
  29921. ucontrol->value.integer.value[0]);
  29922. return 0;
  29923. }
  29924. static int msm_routing_stereo_channel_reverse_control_put(
  29925. struct snd_kcontrol *kcontrol,
  29926. struct snd_ctl_elem_value *ucontrol)
  29927. {
  29928. int i, idx, be_index, port_id;
  29929. int ret = 0;
  29930. unsigned long copp;
  29931. pr_debug("%s Swap channel value:%ld\n", __func__,
  29932. ucontrol->value.integer.value[0]);
  29933. swap_ch = ucontrol->value.integer.value[0];
  29934. mutex_lock(&routing_lock);
  29935. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29936. port_id = msm_bedais[be_index].port_id;
  29937. if (!msm_bedais[be_index].active)
  29938. continue;
  29939. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29940. MSM_FRONTEND_DAI_MM_SIZE) {
  29941. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29942. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29943. if (!test_bit(idx, &copp))
  29944. continue;
  29945. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29946. __func__, port_id, idx);
  29947. ret = adm_swap_speaker_channels(
  29948. port_id, idx,
  29949. msm_bedais[be_index].sample_rate,
  29950. swap_ch);
  29951. if (ret) {
  29952. pr_err("%s:Swap_channel failed, err=%d\n",
  29953. __func__, ret);
  29954. goto done;
  29955. }
  29956. }
  29957. }
  29958. }
  29959. done:
  29960. mutex_unlock(&routing_lock);
  29961. return ret;
  29962. }
  29963. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29964. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29965. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29966. msm_routing_stereo_channel_reverse_control_put),
  29967. };
  29968. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29969. struct snd_ctl_elem_info *uinfo)
  29970. {
  29971. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29972. uinfo->count = 1;
  29973. return 0;
  29974. }
  29975. static int msm_routing_instance_id_support_put(
  29976. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29977. {
  29978. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29979. q6common_update_instance_id_support(supported);
  29980. return 0;
  29981. }
  29982. static int msm_routing_instance_id_support_get(
  29983. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29984. {
  29985. bool supported = false;
  29986. supported = q6common_is_instance_id_supported();
  29987. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29988. return 0;
  29989. }
  29990. static const struct snd_kcontrol_new
  29991. msm_routing_feature_support_mixer_controls[] = {
  29992. {
  29993. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29994. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29995. .info = msm_routing_instance_id_support_info,
  29996. .name = "Instance ID Support",
  29997. .put = msm_routing_instance_id_support_put,
  29998. .get = msm_routing_instance_id_support_get,
  29999. },
  30000. };
  30001. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  30002. .hw_params = msm_pcm_routing_hw_params,
  30003. .close = msm_pcm_routing_close,
  30004. .prepare = msm_pcm_routing_prepare,
  30005. };
  30006. #ifndef CONFIG_TDM_DISABLE
  30007. static void snd_soc_dapm_new_controls_tdm(struct snd_soc_component *component)
  30008. {
  30009. snd_soc_dapm_new_controls(&component->dapm,
  30010. msm_qdsp6_widgets_tdm,
  30011. ARRAY_SIZE(msm_qdsp6_widgets_tdm));
  30012. }
  30013. static void snd_soc_dapm_add_routes_tdm(struct snd_soc_component *component)
  30014. {
  30015. snd_soc_dapm_add_routes(&component->dapm, intercon_tdm,
  30016. ARRAY_SIZE(intercon_tdm));
  30017. }
  30018. #else
  30019. static void snd_soc_dapm_new_controls_tdm(struct snd_soc_component *component)
  30020. {
  30021. return;
  30022. }
  30023. static void snd_soc_dapm_add_routes_tdm(struct snd_soc_component *component)
  30024. {
  30025. return;
  30026. }
  30027. #endif
  30028. #ifndef CONFIG_MI2S_DISABLE
  30029. static void snd_soc_dapm_new_controls_mi2s(struct snd_soc_component *component)
  30030. {
  30031. snd_soc_dapm_new_controls(&component->dapm,
  30032. msm_qdsp6_widgets_mi2s,
  30033. ARRAY_SIZE(msm_qdsp6_widgets_mi2s));
  30034. }
  30035. static void snd_soc_dapm_add_routes_mi2s(struct snd_soc_component *component)
  30036. {
  30037. snd_soc_dapm_add_routes(&component->dapm, intercon_mi2s,
  30038. ARRAY_SIZE(intercon_mi2s));
  30039. }
  30040. #else
  30041. static void snd_soc_dapm_new_controls_mi2s(struct snd_soc_component *component)
  30042. {
  30043. return;
  30044. }
  30045. static void snd_soc_dapm_add_routes_mi2s(struct snd_soc_component *component)
  30046. {
  30047. return;
  30048. }
  30049. #endif
  30050. #ifndef CONFIG_AUXPCM_DISABLE
  30051. static void snd_soc_dapm_new_controls_aux_pcm(struct snd_soc_component *component)
  30052. {
  30053. snd_soc_dapm_new_controls(&component->dapm,
  30054. msm_qdsp6_widgets_aux_pcm,
  30055. ARRAY_SIZE(msm_qdsp6_widgets_aux_pcm));
  30056. }
  30057. static void snd_soc_dapm_add_routes_aux_pcm(struct snd_soc_component *component)
  30058. {
  30059. snd_soc_dapm_add_routes(&component->dapm, intercon_aux_pcm,
  30060. ARRAY_SIZE(intercon_aux_pcm));
  30061. }
  30062. #else
  30063. static void snd_soc_dapm_new_controls_aux_pcm(struct snd_soc_component *component)
  30064. {
  30065. return;
  30066. }
  30067. static void snd_soc_dapm_add_routes_aux_pcm(struct snd_soc_component *component)
  30068. {
  30069. return;
  30070. }
  30071. #endif
  30072. #ifdef CONFIG_DOA_PARAMS_ENABLED
  30073. void msm_routing_add_doa_control(struct snd_soc_component *component)
  30074. {
  30075. snd_soc_add_component_controls(component,
  30076. msm_source_doa_tracking_controls,
  30077. ARRAY_SIZE(msm_source_doa_tracking_controls));
  30078. }
  30079. #else
  30080. void msm_routing_add_doa_control(struct snd_soc_component *component)
  30081. {
  30082. return;
  30083. }
  30084. #endif
  30085. /* Not used but frame seems to require it */
  30086. static int msm_routing_probe(struct snd_soc_component *component)
  30087. {
  30088. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  30089. ARRAY_SIZE(msm_qdsp6_widgets));
  30090. snd_soc_dapm_new_controls_tdm(component);
  30091. snd_soc_dapm_new_controls_mi2s(component);
  30092. snd_soc_dapm_new_controls_aux_pcm(component);
  30093. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  30094. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  30095. snd_soc_dapm_add_routes(&component->dapm, intercon,
  30096. ARRAY_SIZE(intercon));
  30097. snd_soc_dapm_add_routes_tdm(component);
  30098. snd_soc_dapm_add_routes_mi2s(component);
  30099. snd_soc_dapm_add_routes_aux_pcm(component);
  30100. snd_soc_dapm_new_widgets(component->dapm.card);
  30101. snd_soc_add_component_controls(component, lsm_controls,
  30102. ARRAY_SIZE(lsm_controls));
  30103. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  30104. ARRAY_SIZE(aanc_slim_0_rx_mux));
  30105. snd_soc_add_component_controls(component, aanc_noise_level,
  30106. ARRAY_SIZE(aanc_noise_level));
  30107. snd_soc_add_component_controls(component, msm_voc_session_controls,
  30108. ARRAY_SIZE(msm_voc_session_controls));
  30109. snd_soc_add_component_controls(component, app_type_cfg_controls,
  30110. ARRAY_SIZE(app_type_cfg_controls));
  30111. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  30112. ARRAY_SIZE(lsm_app_type_cfg_controls));
  30113. snd_soc_add_component_controls(component, module_cfg_controls,
  30114. ARRAY_SIZE(module_cfg_controls));
  30115. snd_soc_add_component_controls(component,
  30116. stereo_to_custom_stereo_controls,
  30117. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  30118. snd_soc_add_component_controls(component, ec_ref_param_controls,
  30119. ARRAY_SIZE(ec_ref_param_controls));
  30120. snd_soc_add_component_controls(component, channel_mixer_controls,
  30121. ARRAY_SIZE(channel_mixer_controls));
  30122. msm_qti_pp_add_controls(component);
  30123. msm_dts_srs_tm_add_controls(component);
  30124. msm_dolby_dap_add_controls(component);
  30125. snd_soc_add_component_controls(component,
  30126. use_ds1_or_ds2_controls,
  30127. ARRAY_SIZE(use_ds1_or_ds2_controls));
  30128. snd_soc_add_component_controls(component,
  30129. hifi_filter_controls,
  30130. ARRAY_SIZE(hifi_filter_controls));
  30131. snd_soc_add_component_controls(component,
  30132. use_ffecns_freeze_event_controls,
  30133. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  30134. snd_soc_add_component_controls(component,
  30135. device_pp_params_mixer_controls,
  30136. ARRAY_SIZE(device_pp_params_mixer_controls));
  30137. snd_soc_add_component_controls(component,
  30138. msm_routing_be_dai_name_table_mixer_controls,
  30139. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  30140. /* Add doa control based on config */
  30141. msm_routing_add_doa_control(component);
  30142. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  30143. ARRAY_SIZE(msm_source_tracking_controls));
  30144. snd_soc_add_component_controls(component, adm_channel_config_controls,
  30145. ARRAY_SIZE(adm_channel_config_controls));
  30146. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  30147. ARRAY_SIZE(aptx_dec_license_controls));
  30148. snd_soc_add_component_controls(component,
  30149. stereo_channel_reverse_control,
  30150. ARRAY_SIZE(stereo_channel_reverse_control));
  30151. snd_soc_add_component_controls(
  30152. component, msm_routing_feature_support_mixer_controls,
  30153. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  30154. snd_soc_add_component_controls(component,
  30155. port_multi_channel_map_mixer_controls,
  30156. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  30157. snd_soc_add_component_controls(component, pll_clk_drift_controls,
  30158. ARRAY_SIZE(pll_clk_drift_controls));
  30159. snd_soc_add_component_controls(component, mclk_src_controls,
  30160. ARRAY_SIZE(mclk_src_controls));
  30161. return 0;
  30162. }
  30163. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  30164. {
  30165. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  30166. }
  30167. void msm_routing_pcm_free(struct snd_pcm *pcm)
  30168. {
  30169. msm_pcm_routing_hwdep_free(pcm);
  30170. }
  30171. static struct snd_soc_component_driver msm_soc_routing_component = {
  30172. .name = DRV_NAME,
  30173. .ops = &msm_routing_pcm_ops,
  30174. .probe = msm_routing_probe,
  30175. .pcm_new = msm_routing_pcm_new,
  30176. .pcm_free = msm_routing_pcm_free,
  30177. };
  30178. static int msm_routing_pcm_probe(struct platform_device *pdev)
  30179. {
  30180. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  30181. return snd_soc_register_component(&pdev->dev,
  30182. &msm_soc_routing_component,
  30183. NULL, 0);
  30184. }
  30185. static int msm_routing_pcm_remove(struct platform_device *pdev)
  30186. {
  30187. snd_soc_unregister_component(&pdev->dev);
  30188. return 0;
  30189. }
  30190. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  30191. {.compatible = "qcom,msm-pcm-routing"},
  30192. {}
  30193. };
  30194. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  30195. static struct platform_driver msm_routing_pcm_driver = {
  30196. .driver = {
  30197. .name = "msm-pcm-routing",
  30198. .owner = THIS_MODULE,
  30199. .of_match_table = msm_pcm_routing_dt_match,
  30200. .suppress_bind_attrs = true,
  30201. },
  30202. .probe = msm_routing_pcm_probe,
  30203. .remove = msm_routing_pcm_remove,
  30204. };
  30205. int msm_routing_check_backend_enabled(int fedai_id)
  30206. {
  30207. int i;
  30208. if (fedai_id >= MSM_FRONTEND_DAI_MM_MAX_ID) {
  30209. /* bad ID assigned in machine driver */
  30210. pr_err("%s: bad MM ID\n", __func__);
  30211. return 0;
  30212. }
  30213. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  30214. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  30215. return msm_bedais[i].active;
  30216. }
  30217. return 0;
  30218. }
  30219. static int get_cal_type_index(int32_t cal_type)
  30220. {
  30221. int ret = -EINVAL;
  30222. switch (cal_type) {
  30223. case ADM_TOPOLOGY_CAL_TYPE:
  30224. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  30225. break;
  30226. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  30227. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  30228. break;
  30229. default:
  30230. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  30231. }
  30232. return ret;
  30233. }
  30234. static int msm_routing_set_cal(int32_t cal_type,
  30235. size_t data_size, void *data)
  30236. {
  30237. int ret = 0;
  30238. int cal_index;
  30239. pr_debug("%s\n", __func__);
  30240. cal_index = get_cal_type_index(cal_type);
  30241. if (cal_index < 0) {
  30242. pr_err("%s: Could not get cal index %d\n",
  30243. __func__, cal_index);
  30244. ret = -EINVAL;
  30245. goto done;
  30246. }
  30247. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  30248. if (ret < 0) {
  30249. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  30250. __func__, ret, cal_type);
  30251. ret = -EINVAL;
  30252. goto done;
  30253. }
  30254. /* Pre-load if it is ADM topology */
  30255. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  30256. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  30257. msm_routing_load_topology(data_size, data);
  30258. }
  30259. done:
  30260. return ret;
  30261. }
  30262. static void msm_routing_delete_cal_data(void)
  30263. {
  30264. pr_debug("%s\n", __func__);
  30265. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  30266. }
  30267. static int msm_routing_init_cal_data(void)
  30268. {
  30269. int ret = 0;
  30270. struct cal_type_info cal_type_info[] = {
  30271. {{ADM_TOPOLOGY_CAL_TYPE,
  30272. {NULL, NULL, NULL,
  30273. msm_routing_set_cal, NULL, NULL} },
  30274. {NULL, NULL, cal_utils_match_buf_num} },
  30275. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  30276. {NULL, NULL, NULL,
  30277. msm_routing_set_cal, NULL, NULL} },
  30278. {NULL, NULL, cal_utils_match_buf_num} },
  30279. };
  30280. pr_debug("%s\n", __func__);
  30281. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  30282. &cal_type_info[0]);
  30283. if (ret < 0) {
  30284. pr_err("%s: could not create cal type!\n",
  30285. __func__);
  30286. ret = -EINVAL;
  30287. goto err;
  30288. }
  30289. return ret;
  30290. err:
  30291. msm_routing_delete_cal_data();
  30292. return ret;
  30293. }
  30294. int __init msm_soc_routing_platform_init(void)
  30295. {
  30296. mutex_init(&routing_lock);
  30297. if (msm_routing_init_cal_data())
  30298. pr_err("%s: could not init cal data!\n", __func__);
  30299. afe_set_routing_callback(
  30300. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  30301. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  30302. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  30303. return platform_driver_register(&msm_routing_pcm_driver);
  30304. }
  30305. void msm_soc_routing_platform_exit(void)
  30306. {
  30307. msm_routing_delete_cal_data();
  30308. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  30309. mutex_destroy(&routing_lock);
  30310. platform_driver_unregister(&msm_routing_pcm_driver);
  30311. }
  30312. MODULE_DESCRIPTION("MSM routing platform driver");
  30313. MODULE_LICENSE("GPL v2");