msm-pcm-routing-v2.c 656 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765
  1. /* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <asoc/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/audio_cal_utils.h>
  40. #include "msm-pcm-routing-v2.h"
  41. #include "msm-pcm-routing-devdep.h"
  42. #include "msm-qti-pp-config.h"
  43. #include "msm-dolby-dap-config.h"
  44. #include "msm-ds2-dap-config.h"
  45. #ifndef CONFIG_DOLBY_DAP
  46. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  47. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  48. #endif
  49. #ifndef CONFIG_DOLBY_DS2
  50. #undef DS2_ADM_COPP_TOPOLOGY_ID
  51. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  52. #endif
  53. static struct mutex routing_lock;
  54. static struct cal_type_data *cal_data;
  55. static int fm_switch_enable;
  56. static int hfp_switch_enable;
  57. static int int0_mi2s_switch_enable;
  58. static int int4_mi2s_switch_enable;
  59. static int pri_mi2s_switch_enable;
  60. static int sec_mi2s_switch_enable;
  61. static int tert_mi2s_switch_enable;
  62. static int quat_mi2s_switch_enable;
  63. static int fm_pcmrx_switch_enable;
  64. static int usb_switch_enable;
  65. static int lsm_port_index;
  66. static int slim0_rx_aanc_fb_port;
  67. static int msm_route_ec_ref_rx;
  68. static int msm_ec_ref_ch = 4;
  69. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  70. static int msm_ec_ref_sampling_rate = 48000;
  71. static uint32_t voc_session_id = ALL_SESSION_VSID;
  72. static int msm_route_ext_ec_ref;
  73. static bool is_custom_stereo_on;
  74. static bool is_ds2_on;
  75. static bool swap_ch;
  76. #define WEIGHT_0_DB 0x4000
  77. /* all the FEs which can support channel mixer */
  78. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  79. /* input BE for each FE */
  80. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  81. enum {
  82. MADNONE,
  83. MADAUDIO,
  84. MADBEACON,
  85. MADULTRASOUND,
  86. MADSWAUDIO,
  87. };
  88. #define ADM_LSM_PORT_INDEX 9
  89. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  90. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  91. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  92. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  93. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  94. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  95. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  96. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  97. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  98. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  99. #define LSM_FUNCTION_TEXT "LSM Function"
  100. static const char * const lsm_port_text[] = {
  101. "None",
  102. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  103. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  104. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  105. INT3_MI2S_TX_TEXT
  106. };
  107. struct msm_pcm_route_bdai_pp_params {
  108. u16 port_id; /* AFE port ID */
  109. unsigned long pp_params_config;
  110. bool mute_on;
  111. int latency;
  112. };
  113. static struct msm_pcm_route_bdai_pp_params
  114. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  115. {HDMI_RX, 0, 0, 0},
  116. {DISPLAY_PORT_RX, 0, 0, 0},
  117. };
  118. /*
  119. * The be_dai_name_table is passed to HAL so that it can specify the
  120. * BE ID for the BE it wants to enable based on the name. Thus there
  121. * is a matching table and structure in HAL that need to be updated
  122. * if any changes to these are made.
  123. */
  124. struct msm_pcm_route_bdai_name {
  125. unsigned int be_id;
  126. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  127. };
  128. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  129. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  130. int fe_id);
  131. static int msm_routing_get_bit_width(unsigned int format)
  132. {
  133. int bit_width;
  134. switch (format) {
  135. case SNDRV_PCM_FORMAT_S32_LE:
  136. bit_width = 32;
  137. break;
  138. case SNDRV_PCM_FORMAT_S24_LE:
  139. case SNDRV_PCM_FORMAT_S24_3LE:
  140. bit_width = 24;
  141. break;
  142. case SNDRV_PCM_FORMAT_S16_LE:
  143. default:
  144. bit_width = 16;
  145. }
  146. return bit_width;
  147. }
  148. static bool msm_is_resample_needed(int input_sr, int output_sr)
  149. {
  150. bool rc = false;
  151. if (input_sr != output_sr)
  152. rc = true;
  153. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  154. (rc ? "oh yes" : "not really"),
  155. input_sr, output_sr);
  156. return rc;
  157. }
  158. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  159. int channels)
  160. {
  161. int rc = 0;
  162. switch (topology) {
  163. case SRS_TRUMEDIA_TOPOLOGY_ID:
  164. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  165. msm_dts_srs_tm_init(port_id, copp_idx);
  166. break;
  167. case DS2_ADM_COPP_TOPOLOGY_ID:
  168. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  169. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  170. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  171. is_custom_stereo_on);
  172. if (rc < 0)
  173. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  174. __func__, topology, port_id,
  175. is_custom_stereo_on, rc);
  176. break;
  177. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  178. if (is_ds2_on) {
  179. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  180. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  181. is_custom_stereo_on);
  182. if (rc < 0)
  183. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  184. __func__, topology, port_id, rc);
  185. } else {
  186. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  187. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  188. is_custom_stereo_on);
  189. if (rc < 0)
  190. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  191. __func__, topology, port_id, rc);
  192. }
  193. break;
  194. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  195. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  196. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  197. if (rc < 0)
  198. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  199. __func__, topology, port_id, copp_idx, rc);
  200. break;
  201. default:
  202. /* custom topology specific feature param handlers */
  203. break;
  204. }
  205. }
  206. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  207. {
  208. switch (topology) {
  209. case SRS_TRUMEDIA_TOPOLOGY_ID:
  210. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  211. msm_dts_srs_tm_deinit(port_id);
  212. break;
  213. case DS2_ADM_COPP_TOPOLOGY_ID:
  214. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  215. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  216. msm_ds2_dap_deinit(port_id);
  217. break;
  218. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  219. if (is_ds2_on) {
  220. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  221. msm_ds2_dap_deinit(port_id);
  222. } else {
  223. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  224. msm_dolby_dap_deinit(port_id);
  225. }
  226. break;
  227. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  228. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  229. msm_qti_pp_asphere_deinit(port_id);
  230. break;
  231. default:
  232. /* custom topology specific feature deinit handlers */
  233. break;
  234. }
  235. }
  236. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  237. int path_type, int perf_mode)
  238. {
  239. int itr = 0, rc = 0;
  240. if ((path_type == ADM_PATH_PLAYBACK) &&
  241. (perf_mode == LEGACY_PCM_MODE) &&
  242. is_custom_stereo_on) {
  243. for (itr = 0; itr < payload.num_copps; itr++) {
  244. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  245. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  246. continue;
  247. }
  248. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  249. payload.port_id[itr],
  250. payload.copp_idx[itr],
  251. payload.session_id,
  252. Q14_GAIN_ZERO_POINT_FIVE,
  253. Q14_GAIN_ZERO_POINT_FIVE,
  254. Q14_GAIN_ZERO_POINT_FIVE,
  255. Q14_GAIN_ZERO_POINT_FIVE);
  256. if (rc < 0)
  257. pr_err("%s: err setting custom stereo\n",
  258. __func__);
  259. }
  260. }
  261. }
  262. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  263. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  264. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  265. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  266. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  267. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  268. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  269. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  270. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  271. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  272. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  273. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  274. LPASS_BE_AFE_PCM_RX},
  275. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  276. LPASS_BE_AFE_PCM_TX},
  277. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  278. LPASS_BE_AUXPCM_RX},
  279. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  280. LPASS_BE_AUXPCM_TX},
  281. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  282. LPASS_BE_VOICE_PLAYBACK_TX},
  283. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  284. LPASS_BE_VOICE2_PLAYBACK_TX},
  285. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  286. LPASS_BE_INCALL_RECORD_RX},
  287. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  288. LPASS_BE_INCALL_RECORD_TX},
  289. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  290. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  291. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  292. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  293. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  294. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  295. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  296. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  297. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  298. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  299. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  300. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  301. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  302. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  303. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  304. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  305. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  306. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  307. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  308. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  309. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  310. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  311. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  312. LPASS_BE_QUAT_MI2S_RX},
  313. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  314. LPASS_BE_QUAT_MI2S_TX},
  315. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  316. LPASS_BE_SEC_MI2S_RX},
  317. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  318. LPASS_BE_SEC_MI2S_TX},
  319. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  320. LPASS_BE_PRI_MI2S_RX},
  321. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  322. LPASS_BE_PRI_MI2S_TX},
  323. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  324. LPASS_BE_TERT_MI2S_RX},
  325. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  326. LPASS_BE_TERT_MI2S_TX},
  327. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  328. LPASS_BE_AUDIO_I2S_RX},
  329. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  330. LPASS_BE_SEC_AUXPCM_RX},
  331. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  332. LPASS_BE_SEC_AUXPCM_TX},
  333. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  334. LPASS_BE_SPDIF_RX},
  335. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  336. LPASS_BE_SEC_MI2S_RX_SD1},
  337. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  338. LPASS_BE_QUIN_MI2S_RX},
  339. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  340. LPASS_BE_QUIN_MI2S_TX},
  341. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  342. LPASS_BE_SENARY_MI2S_TX},
  343. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  344. LPASS_BE_PRI_TDM_RX_0},
  345. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  346. LPASS_BE_PRI_TDM_TX_0},
  347. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  348. LPASS_BE_PRI_TDM_RX_1},
  349. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  350. LPASS_BE_PRI_TDM_TX_1},
  351. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  352. LPASS_BE_PRI_TDM_RX_2},
  353. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  354. LPASS_BE_PRI_TDM_TX_2},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  356. LPASS_BE_PRI_TDM_RX_3},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  358. LPASS_BE_PRI_TDM_TX_3},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  360. LPASS_BE_PRI_TDM_RX_4},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  362. LPASS_BE_PRI_TDM_TX_4},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  364. LPASS_BE_PRI_TDM_RX_5},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  366. LPASS_BE_PRI_TDM_TX_5},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  368. LPASS_BE_PRI_TDM_RX_6},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  370. LPASS_BE_PRI_TDM_TX_6},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  372. LPASS_BE_PRI_TDM_RX_7},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  374. LPASS_BE_PRI_TDM_TX_7},
  375. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  376. LPASS_BE_SEC_TDM_RX_0},
  377. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  378. LPASS_BE_SEC_TDM_TX_0},
  379. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  380. LPASS_BE_SEC_TDM_RX_1},
  381. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  382. LPASS_BE_SEC_TDM_TX_1},
  383. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  384. LPASS_BE_SEC_TDM_RX_2},
  385. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  386. LPASS_BE_SEC_TDM_TX_2},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  388. LPASS_BE_SEC_TDM_RX_3},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  390. LPASS_BE_SEC_TDM_TX_3},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  392. LPASS_BE_SEC_TDM_RX_4},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  394. LPASS_BE_SEC_TDM_TX_4},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  396. LPASS_BE_SEC_TDM_RX_5},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  398. LPASS_BE_SEC_TDM_TX_5},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  400. LPASS_BE_SEC_TDM_RX_6},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  402. LPASS_BE_SEC_TDM_TX_6},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  404. LPASS_BE_SEC_TDM_RX_7},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  406. LPASS_BE_SEC_TDM_TX_7},
  407. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  408. LPASS_BE_TERT_TDM_RX_0},
  409. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  410. LPASS_BE_TERT_TDM_TX_0},
  411. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  412. LPASS_BE_TERT_TDM_RX_1},
  413. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  414. LPASS_BE_TERT_TDM_TX_1},
  415. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  416. LPASS_BE_TERT_TDM_RX_2},
  417. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  418. LPASS_BE_TERT_TDM_TX_2},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  420. LPASS_BE_TERT_TDM_RX_3},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  422. LPASS_BE_TERT_TDM_TX_3},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  424. LPASS_BE_TERT_TDM_RX_4},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  426. LPASS_BE_TERT_TDM_TX_4},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  428. LPASS_BE_TERT_TDM_RX_5},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  430. LPASS_BE_TERT_TDM_TX_5},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  432. LPASS_BE_TERT_TDM_RX_6},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  434. LPASS_BE_TERT_TDM_TX_6},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  436. LPASS_BE_TERT_TDM_RX_7},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  438. LPASS_BE_TERT_TDM_TX_7},
  439. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  440. LPASS_BE_QUAT_TDM_RX_0},
  441. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  442. LPASS_BE_QUAT_TDM_TX_0},
  443. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  444. LPASS_BE_QUAT_TDM_RX_1},
  445. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  446. LPASS_BE_QUAT_TDM_TX_1},
  447. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  448. LPASS_BE_QUAT_TDM_RX_2},
  449. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  450. LPASS_BE_QUAT_TDM_TX_2},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  452. LPASS_BE_QUAT_TDM_RX_3},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  454. LPASS_BE_QUAT_TDM_TX_3},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  456. LPASS_BE_QUAT_TDM_RX_4},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  458. LPASS_BE_QUAT_TDM_TX_4},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  460. LPASS_BE_QUAT_TDM_RX_5},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  462. LPASS_BE_QUAT_TDM_TX_5},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  464. LPASS_BE_QUAT_TDM_RX_6},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  466. LPASS_BE_QUAT_TDM_TX_6},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  468. LPASS_BE_QUAT_TDM_RX_7},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  470. LPASS_BE_QUAT_TDM_TX_7},
  471. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  472. LPASS_BE_INT_BT_A2DP_RX},
  473. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  474. LPASS_BE_USB_AUDIO_RX},
  475. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  476. LPASS_BE_USB_AUDIO_TX},
  477. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  478. LPASS_BE_DISPLAY_PORT},
  479. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  480. LPASS_BE_TERT_AUXPCM_RX},
  481. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  482. LPASS_BE_TERT_AUXPCM_TX},
  483. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  484. LPASS_BE_QUAT_AUXPCM_RX},
  485. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  486. LPASS_BE_QUAT_AUXPCM_TX},
  487. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  488. LPASS_BE_INT0_MI2S_RX},
  489. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  490. LPASS_BE_INT0_MI2S_TX},
  491. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  492. LPASS_BE_INT1_MI2S_RX},
  493. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  494. LPASS_BE_INT1_MI2S_TX},
  495. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  496. LPASS_BE_INT2_MI2S_RX},
  497. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  498. LPASS_BE_INT2_MI2S_TX},
  499. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  500. LPASS_BE_INT3_MI2S_RX},
  501. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  502. LPASS_BE_INT3_MI2S_TX},
  503. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  504. LPASS_BE_INT4_MI2S_RX},
  505. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  506. LPASS_BE_INT4_MI2S_TX},
  507. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  508. LPASS_BE_INT5_MI2S_RX},
  509. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  510. LPASS_BE_INT5_MI2S_TX},
  511. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  512. LPASS_BE_INT6_MI2S_RX},
  513. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  514. LPASS_BE_INT6_MI2S_TX},
  515. };
  516. /* Track ASM playback & capture sessions of DAI
  517. * Track LSM listen sessions
  518. */
  519. static struct msm_pcm_routing_fdai_data
  520. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  521. /* MULTIMEDIA1 */
  522. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  523. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  524. /* MULTIMEDIA2 */
  525. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  526. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  527. /* MULTIMEDIA3 */
  528. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  529. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  530. /* MULTIMEDIA4 */
  531. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  532. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  533. /* MULTIMEDIA5 */
  534. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  535. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  536. /* MULTIMEDIA6 */
  537. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  538. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  539. /* MULTIMEDIA7*/
  540. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  541. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  542. /* MULTIMEDIA8 */
  543. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  544. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  545. /* MULTIMEDIA9 */
  546. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  547. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  548. /* MULTIMEDIA10 */
  549. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  550. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  551. /* MULTIMEDIA11 */
  552. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  553. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  554. /* MULTIMEDIA12 */
  555. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  556. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  557. /* MULTIMEDIA13 */
  558. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  559. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  560. /* MULTIMEDIA14 */
  561. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  562. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  563. /* MULTIMEDIA15 */
  564. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  565. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  566. /* MULTIMEDIA16 */
  567. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  568. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  569. /* MULTIMEDIA17 */
  570. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  571. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  572. /* MULTIMEDIA18 */
  573. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  574. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  575. /* MULTIMEDIA19 */
  576. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  577. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  578. /* MULTIMEDIA20 */
  579. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  580. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  581. /* CS_VOICE */
  582. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  583. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  584. /* VOIP */
  585. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  586. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  587. /* AFE_RX */
  588. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  589. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  590. /* AFE_TX */
  591. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  592. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  593. /* VOICE_STUB */
  594. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  595. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  596. /* VOLTE */
  597. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  598. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  599. /* DTMF_RX */
  600. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  601. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  602. /* VOICE2 */
  603. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  604. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  605. /* QCHAT */
  606. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  607. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  608. /* VOLTE_STUB */
  609. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  610. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  611. /* LSM1 */
  612. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  613. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  614. /* LSM2 */
  615. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  616. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  617. /* LSM3 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* LSM4 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* LSM5 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* LSM6 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* LSM7 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* LSM8 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* VOICE2_STUB */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* VOWLAN */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* VOICEMMODE1 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* VOICEMMODE2 */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. };
  648. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  649. [MSM_BACKEND_DAI_MAX];
  650. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  651. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  652. static struct msm_pcm_stream_app_type_cfg
  653. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  654. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  655. /* The caller of this should aqcuire routing lock */
  656. void msm_pcm_routing_get_bedai_info(int be_idx,
  657. struct msm_pcm_routing_bdai_data *be_dai)
  658. {
  659. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  660. memcpy(be_dai, &msm_bedais[be_idx],
  661. sizeof(struct msm_pcm_routing_bdai_data));
  662. }
  663. /* The caller of this should aqcuire routing lock */
  664. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  665. struct msm_pcm_routing_fdai_data *fe_dai)
  666. {
  667. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  668. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  669. sizeof(struct msm_pcm_routing_fdai_data));
  670. }
  671. void msm_pcm_routing_acquire_lock(void)
  672. {
  673. mutex_lock(&routing_lock);
  674. }
  675. void msm_pcm_routing_release_lock(void)
  676. {
  677. mutex_unlock(&routing_lock);
  678. }
  679. static int msm_pcm_routing_get_app_type_idx(int app_type)
  680. {
  681. int idx;
  682. pr_debug("%s: app_type: %d\n", __func__, app_type);
  683. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  684. if (app_type_cfg[idx].app_type == app_type)
  685. return idx;
  686. }
  687. pr_info("%s: App type not available, fallback to default\n", __func__);
  688. return 0;
  689. }
  690. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  691. {
  692. int idx;
  693. pr_debug("%s: app_type: %d\n", __func__, app_type);
  694. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  695. if (lsm_app_type_cfg[idx].app_type == app_type)
  696. return idx;
  697. }
  698. pr_debug("%s: App type not available, fallback to default\n", __func__);
  699. return 0;
  700. }
  701. static bool is_mm_lsm_fe_id(int fe_id)
  702. {
  703. bool rc = true;
  704. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  705. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  706. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  707. rc = false;
  708. }
  709. return rc;
  710. }
  711. int msm_pcm_routing_reg_stream_app_type_cfg(
  712. int fedai_id, int session_type, int be_id,
  713. struct msm_pcm_stream_app_type_cfg *cfg_data)
  714. {
  715. int ret = 0;
  716. if (cfg_data == NULL) {
  717. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  718. ret = -EINVAL;
  719. goto done;
  720. }
  721. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  722. __func__, fedai_id, session_type, be_id,
  723. cfg_data->app_type, cfg_data->acdb_dev_id,
  724. cfg_data->sample_rate);
  725. if (!is_mm_lsm_fe_id(fedai_id)) {
  726. pr_err("%s: Invalid machine driver ID %d\n",
  727. __func__, fedai_id);
  728. ret = -EINVAL;
  729. goto done;
  730. }
  731. if (session_type != SESSION_TYPE_RX &&
  732. session_type != SESSION_TYPE_TX) {
  733. pr_err("%s: Invalid session type %d\n",
  734. __func__, session_type);
  735. ret = -EINVAL;
  736. goto done;
  737. }
  738. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  739. pr_err("%s: Received out of bounds be_id %d\n",
  740. __func__, be_id);
  741. ret = -EINVAL;
  742. goto done;
  743. }
  744. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  745. /*
  746. * Store the BE ID of the configuration information set as the latest so
  747. * the get mixer control knows what to return.
  748. */
  749. last_be_id_configured[fedai_id][session_type] = be_id;
  750. done:
  751. return ret;
  752. }
  753. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  754. /**
  755. * msm_pcm_routing_get_stream_app_type_cfg
  756. *
  757. * Receives fedai_id, session_type, be_id, and populates app_type,
  758. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  759. * -EINVAL and does not alter passed values.
  760. *
  761. * fedai_id - Passed value, front end ID for which app type config is wanted
  762. * session_type - Passed value, session type for which app type config
  763. * is wanted
  764. * be_id - Returned value, back end device id the app type config data is for
  765. * cfg_data - Returned value, configuration data used by app type config
  766. */
  767. int msm_pcm_routing_get_stream_app_type_cfg(
  768. int fedai_id, int session_type, int *bedai_id,
  769. struct msm_pcm_stream_app_type_cfg *cfg_data)
  770. {
  771. int be_id;
  772. int ret = 0;
  773. if (bedai_id == NULL) {
  774. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  775. ret = -EINVAL;
  776. goto done;
  777. } else if (cfg_data == NULL) {
  778. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  779. ret = -EINVAL;
  780. goto done;
  781. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  782. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  783. ret = -EINVAL;
  784. goto done;
  785. } else if (session_type != SESSION_TYPE_RX &&
  786. session_type != SESSION_TYPE_TX) {
  787. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  788. ret = -EINVAL;
  789. goto done;
  790. }
  791. be_id = last_be_id_configured[fedai_id][session_type];
  792. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  793. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  794. ret = -EINVAL;
  795. goto done;
  796. }
  797. *bedai_id = be_id;
  798. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  799. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  800. __func__, fedai_id, session_type, *bedai_id,
  801. cfg_data->app_type, cfg_data->acdb_dev_id,
  802. cfg_data->sample_rate);
  803. done:
  804. return ret;
  805. }
  806. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  807. static struct cal_block_data *msm_routing_find_topology_by_path(int path)
  808. {
  809. struct list_head *ptr, *next;
  810. struct cal_block_data *cal_block = NULL;
  811. pr_debug("%s\n", __func__);
  812. list_for_each_safe(ptr, next,
  813. &cal_data->cal_blocks) {
  814. cal_block = list_entry(ptr,
  815. struct cal_block_data, list);
  816. if (((struct audio_cal_info_adm_top *)cal_block->cal_info)
  817. ->path == path) {
  818. return cal_block;
  819. }
  820. }
  821. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  822. return NULL;
  823. }
  824. static struct cal_block_data *msm_routing_find_topology(int path,
  825. int app_type,
  826. int acdb_id)
  827. {
  828. struct list_head *ptr, *next;
  829. struct cal_block_data *cal_block = NULL;
  830. struct audio_cal_info_adm_top *cal_info;
  831. pr_debug("%s\n", __func__);
  832. list_for_each_safe(ptr, next,
  833. &cal_data->cal_blocks) {
  834. cal_block = list_entry(ptr,
  835. struct cal_block_data, list);
  836. cal_info = (struct audio_cal_info_adm_top *)
  837. cal_block->cal_info;
  838. if ((cal_info->path == path) &&
  839. (cal_info->app_type == app_type) &&
  840. (cal_info->acdb_id == acdb_id)) {
  841. return cal_block;
  842. }
  843. }
  844. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  845. __func__, path, app_type, acdb_id);
  846. return msm_routing_find_topology_by_path(path);
  847. }
  848. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  849. int be_id)
  850. {
  851. int topology = NULL_COPP_TOPOLOGY;
  852. struct cal_block_data *cal_block = NULL;
  853. int app_type = 0, acdb_dev_id = 0;
  854. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  855. __func__, fedai_id, session_type, be_id);
  856. if (cal_data == NULL)
  857. goto done;
  858. mutex_lock(&cal_data->lock);
  859. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  860. acdb_dev_id =
  861. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  862. cal_block = msm_routing_find_topology(session_type, app_type,
  863. acdb_dev_id);
  864. if (cal_block == NULL)
  865. goto unlock;
  866. topology = ((struct audio_cal_info_adm_top *)
  867. cal_block->cal_info)->topology;
  868. unlock:
  869. mutex_unlock(&cal_data->lock);
  870. done:
  871. pr_debug("%s: Using topology %d\n", __func__, topology);
  872. return topology;
  873. }
  874. static uint8_t is_be_dai_extproc(int be_dai)
  875. {
  876. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  877. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  878. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  879. return 1;
  880. else
  881. return 0;
  882. }
  883. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  884. int path_type, int perf_mode,
  885. uint32_t passthr_mode)
  886. {
  887. int i, port_type, j, num_copps = 0;
  888. struct route_payload payload;
  889. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  890. path_type == ADM_PATH_COMPRESSED_RX) ?
  891. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  892. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  893. if (!is_be_dai_extproc(i) &&
  894. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  895. (msm_bedais[i].active) &&
  896. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  897. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  898. unsigned long copp =
  899. session_copp_map[fedai_id][sess_type][i];
  900. if (test_bit(j, &copp)) {
  901. payload.port_id[num_copps] =
  902. msm_bedais[i].port_id;
  903. payload.copp_idx[num_copps] = j;
  904. payload.app_type[num_copps] =
  905. fe_dai_app_type_cfg
  906. [fedai_id][sess_type][i]
  907. .app_type;
  908. payload.acdb_dev_id[num_copps] =
  909. fe_dai_app_type_cfg
  910. [fedai_id][sess_type][i]
  911. .acdb_dev_id;
  912. payload.sample_rate[num_copps] =
  913. fe_dai_app_type_cfg
  914. [fedai_id][sess_type][i]
  915. .sample_rate;
  916. num_copps++;
  917. }
  918. }
  919. }
  920. }
  921. if (num_copps) {
  922. payload.num_copps = num_copps;
  923. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  924. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  925. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  926. }
  927. }
  928. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  929. int stream_type)
  930. {
  931. int i, session_type, path_type, port_type;
  932. u32 mode = 0;
  933. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  934. /* bad ID assigned in machine driver */
  935. pr_err("%s: bad MM ID\n", __func__);
  936. return;
  937. }
  938. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  939. session_type = SESSION_TYPE_RX;
  940. path_type = ADM_PATH_PLAYBACK;
  941. port_type = MSM_AFE_PORT_TYPE_RX;
  942. } else {
  943. session_type = SESSION_TYPE_TX;
  944. path_type = ADM_PATH_LIVE_REC;
  945. port_type = MSM_AFE_PORT_TYPE_TX;
  946. }
  947. mutex_lock(&routing_lock);
  948. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  949. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  950. if (!is_be_dai_extproc(i) &&
  951. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  952. (msm_bedais[i].active) &&
  953. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  954. mode = afe_get_port_type(msm_bedais[i].port_id);
  955. adm_connect_afe_port(mode, dspst_id,
  956. msm_bedais[i].port_id);
  957. break;
  958. }
  959. }
  960. mutex_unlock(&routing_lock);
  961. }
  962. static bool route_check_fe_id_adm_support(int fe_id)
  963. {
  964. bool rc = true;
  965. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  966. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  967. /* fe id is listen while port is set to afe */
  968. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  969. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  970. __func__, fe_id, lsm_port_index);
  971. rc = false;
  972. }
  973. }
  974. return rc;
  975. }
  976. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  977. int dspst_id, int stream_type,
  978. uint32_t passthr_mode)
  979. {
  980. int i, j, session_type, path_type, port_type, topology;
  981. int num_copps = 0;
  982. struct route_payload payload;
  983. u32 channels, sample_rate;
  984. u16 bit_width = 16;
  985. bool is_lsm;
  986. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  987. __func__, fe_id, perf_mode, dspst_id,
  988. stream_type, passthr_mode);
  989. if (!is_mm_lsm_fe_id(fe_id)) {
  990. /* bad ID assigned in machine driver */
  991. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  992. return -EINVAL;
  993. }
  994. if (!route_check_fe_id_adm_support(fe_id)) {
  995. /* ignore adm open if not supported for fe_id */
  996. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  997. return 0;
  998. }
  999. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1000. session_type = SESSION_TYPE_RX;
  1001. if (passthr_mode != LEGACY_PCM)
  1002. path_type = ADM_PATH_COMPRESSED_RX;
  1003. else
  1004. path_type = ADM_PATH_PLAYBACK;
  1005. port_type = MSM_AFE_PORT_TYPE_RX;
  1006. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1007. session_type = SESSION_TYPE_TX;
  1008. if (passthr_mode != LEGACY_PCM)
  1009. path_type = ADM_PATH_COMPRESSED_TX;
  1010. else
  1011. path_type = ADM_PATH_LIVE_REC;
  1012. port_type = MSM_AFE_PORT_TYPE_TX;
  1013. } else {
  1014. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1015. return -EINVAL;
  1016. }
  1017. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1018. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1019. mutex_lock(&routing_lock);
  1020. payload.num_copps = 0; /* only RX needs to use payload */
  1021. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1022. /* re-enable EQ if active */
  1023. msm_qti_pp_send_eq_values(fe_id);
  1024. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1025. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1026. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1027. if (!is_be_dai_extproc(i) &&
  1028. (afe_get_port_type(msm_bedais[i].port_id) ==
  1029. port_type) &&
  1030. (msm_bedais[i].active) &&
  1031. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1032. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1033. /*
  1034. * check if ADM needs to be configured with different
  1035. * channel mapping than backend
  1036. */
  1037. if (!msm_bedais[i].adm_override_ch)
  1038. channels = msm_bedais[i].channel;
  1039. else
  1040. channels = msm_bedais[i].adm_override_ch;
  1041. bit_width = msm_routing_get_bit_width(
  1042. msm_bedais[i].format);
  1043. app_type =
  1044. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1045. if (app_type && is_lsm) {
  1046. app_type_idx =
  1047. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1048. sample_rate =
  1049. fe_dai_app_type_cfg[fe_id][session_type][i]
  1050. .sample_rate;
  1051. bit_width =
  1052. lsm_app_type_cfg[app_type_idx].bit_width;
  1053. } else if (app_type) {
  1054. app_type_idx =
  1055. msm_pcm_routing_get_app_type_idx(
  1056. app_type);
  1057. sample_rate =
  1058. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1059. bit_width =
  1060. app_type_cfg[app_type_idx].bit_width;
  1061. } else {
  1062. sample_rate = msm_bedais[i].sample_rate;
  1063. }
  1064. acdb_dev_id =
  1065. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1066. topology = msm_routing_get_adm_topology(fe_id,
  1067. session_type,
  1068. i);
  1069. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1070. || (passthr_mode ==
  1071. COMPRESSED_PASSTHROUGH_GEN))
  1072. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1073. pr_debug("%s: Before adm open topology %d\n", __func__,
  1074. topology);
  1075. copp_idx =
  1076. adm_open(msm_bedais[i].port_id,
  1077. path_type, sample_rate, channels,
  1078. topology, perf_mode, bit_width,
  1079. app_type, acdb_dev_id);
  1080. if ((copp_idx < 0) ||
  1081. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1082. pr_err("%s:adm open failed coppid:%d\n",
  1083. __func__, copp_idx);
  1084. mutex_unlock(&routing_lock);
  1085. return -EINVAL;
  1086. }
  1087. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1088. __func__, fe_id, session_type, i);
  1089. set_bit(copp_idx,
  1090. &session_copp_map[fe_id][session_type][i]);
  1091. if (msm_is_resample_needed(
  1092. sample_rate,
  1093. msm_bedais[i].sample_rate))
  1094. adm_copp_mfc_cfg(
  1095. msm_bedais[i].port_id, copp_idx,
  1096. msm_bedais[i].sample_rate);
  1097. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1098. unsigned long copp =
  1099. session_copp_map[fe_id][session_type][i];
  1100. if (test_bit(j, &copp)) {
  1101. payload.port_id[num_copps] =
  1102. msm_bedais[i].port_id;
  1103. payload.copp_idx[num_copps] = j;
  1104. payload.app_type[num_copps] =
  1105. fe_dai_app_type_cfg
  1106. [fe_id][session_type][i]
  1107. .app_type;
  1108. payload.acdb_dev_id[num_copps] =
  1109. fe_dai_app_type_cfg
  1110. [fe_id][session_type][i]
  1111. .acdb_dev_id;
  1112. payload.sample_rate[num_copps] =
  1113. fe_dai_app_type_cfg
  1114. [fe_id][session_type][i]
  1115. .sample_rate;
  1116. num_copps++;
  1117. }
  1118. }
  1119. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1120. && passthr_mode !=
  1121. COMPRESSED_PASSTHROUGH_GEN) {
  1122. msm_routing_send_device_pp_params(
  1123. msm_bedais[i].port_id,
  1124. copp_idx, fe_id);
  1125. }
  1126. }
  1127. }
  1128. if (num_copps) {
  1129. payload.num_copps = num_copps;
  1130. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1131. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1132. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1133. }
  1134. mutex_unlock(&routing_lock);
  1135. return 0;
  1136. }
  1137. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1138. {
  1139. u32 session_id;
  1140. switch (val) {
  1141. case MSM_FRONTEND_DAI_CS_VOICE:
  1142. session_id = voc_get_session_id(VOICE_SESSION_NAME);
  1143. break;
  1144. case MSM_FRONTEND_DAI_VOLTE:
  1145. session_id = voc_get_session_id(VOLTE_SESSION_NAME);
  1146. break;
  1147. case MSM_FRONTEND_DAI_VOWLAN:
  1148. session_id = voc_get_session_id(VOWLAN_SESSION_NAME);
  1149. break;
  1150. case MSM_FRONTEND_DAI_VOICE2:
  1151. session_id = voc_get_session_id(VOICE2_SESSION_NAME);
  1152. break;
  1153. case MSM_FRONTEND_DAI_QCHAT:
  1154. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1155. break;
  1156. case MSM_FRONTEND_DAI_VOIP:
  1157. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1158. break;
  1159. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1160. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1161. break;
  1162. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1163. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1164. break;
  1165. default:
  1166. session_id = 0;
  1167. }
  1168. pr_debug("%s session_id 0x%x", __func__, session_id);
  1169. return session_id;
  1170. }
  1171. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1172. int dspst_id, int stream_type)
  1173. {
  1174. int copp_idx = 0;
  1175. int sess_type = 0;
  1176. int i = 0, j = 0, be_id;
  1177. int ret = 0;
  1178. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1179. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1180. return 0;
  1181. }
  1182. if (!(channel_mixer[fe_id].enable)) {
  1183. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1184. __func__, fe_id);
  1185. return 0;
  1186. }
  1187. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1188. sess_type = SESSION_TYPE_RX;
  1189. else
  1190. sess_type = SESSION_TYPE_TX;
  1191. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1192. ++i) {
  1193. be_id = channel_input[fe_id][i] - 1;
  1194. channel_mixer[fe_id].input_channels[i] =
  1195. msm_bedais[be_id].channel;
  1196. if ((msm_bedais[be_id].active) &&
  1197. test_bit(fe_id,
  1198. &msm_bedais[be_id].fe_sessions[0])) {
  1199. unsigned long copp =
  1200. session_copp_map[fe_id][sess_type][be_id];
  1201. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1202. if (test_bit(j, &copp)) {
  1203. copp_idx = j;
  1204. break;
  1205. }
  1206. }
  1207. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1208. __func__,
  1209. fe_id, be_id, msm_bedais[be_id].channel,
  1210. copp_idx);
  1211. ret = adm_programable_channel_mixer(
  1212. msm_bedais[be_id].port_id,
  1213. copp_idx, dspst_id, sess_type,
  1214. channel_mixer + fe_id, i);
  1215. }
  1216. }
  1217. return ret;
  1218. }
  1219. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1220. int dspst_id, int stream_type)
  1221. {
  1222. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1223. struct route_payload payload;
  1224. u32 channels, sample_rate;
  1225. uint16_t bits_per_sample = 16;
  1226. uint32_t passthr_mode = LEGACY_PCM;
  1227. int ret = 0;
  1228. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1229. /* bad ID assigned in machine driver */
  1230. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1231. return -EINVAL;
  1232. }
  1233. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1234. session_type = SESSION_TYPE_RX;
  1235. path_type = ADM_PATH_PLAYBACK;
  1236. port_type = MSM_AFE_PORT_TYPE_RX;
  1237. } else {
  1238. session_type = SESSION_TYPE_TX;
  1239. path_type = ADM_PATH_LIVE_REC;
  1240. port_type = MSM_AFE_PORT_TYPE_TX;
  1241. }
  1242. mutex_lock(&routing_lock);
  1243. payload.num_copps = 0; /* only RX needs to use payload */
  1244. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1245. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1246. /* re-enable EQ if active */
  1247. msm_qti_pp_send_eq_values(fedai_id);
  1248. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1249. if (!is_be_dai_extproc(i) &&
  1250. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1251. (msm_bedais[i].active) &&
  1252. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1253. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1254. /*
  1255. * check if ADM needs to be configured with different
  1256. * channel mapping than backend
  1257. */
  1258. if (!msm_bedais[i].adm_override_ch)
  1259. channels = msm_bedais[i].channel;
  1260. else
  1261. channels = msm_bedais[i].adm_override_ch;
  1262. msm_bedais[i].passthr_mode[fedai_id] =
  1263. LEGACY_PCM;
  1264. bits_per_sample = msm_routing_get_bit_width(
  1265. msm_bedais[i].format);
  1266. app_type =
  1267. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1268. if (app_type) {
  1269. app_type_idx =
  1270. msm_pcm_routing_get_app_type_idx(app_type);
  1271. sample_rate =
  1272. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1273. .sample_rate;
  1274. bits_per_sample =
  1275. app_type_cfg[app_type_idx].bit_width;
  1276. } else
  1277. sample_rate = msm_bedais[i].sample_rate;
  1278. acdb_dev_id =
  1279. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1280. .acdb_dev_id;
  1281. topology = msm_routing_get_adm_topology(fedai_id,
  1282. session_type,
  1283. i);
  1284. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1285. sample_rate, channels, topology,
  1286. perf_mode, bits_per_sample,
  1287. app_type, acdb_dev_id);
  1288. if ((copp_idx < 0) ||
  1289. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1290. pr_err("%s: adm open failed copp_idx:%d\n",
  1291. __func__, copp_idx);
  1292. mutex_unlock(&routing_lock);
  1293. return -EINVAL;
  1294. }
  1295. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1296. __func__, fedai_id, session_type, i);
  1297. set_bit(copp_idx,
  1298. &session_copp_map[fedai_id][session_type][i]);
  1299. if (msm_is_resample_needed(
  1300. sample_rate,
  1301. msm_bedais[i].sample_rate))
  1302. adm_copp_mfc_cfg(
  1303. msm_bedais[i].port_id, copp_idx,
  1304. msm_bedais[i].sample_rate);
  1305. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1306. unsigned long copp =
  1307. session_copp_map[fedai_id][session_type][i];
  1308. if (test_bit(j, &copp)) {
  1309. payload.port_id[num_copps] =
  1310. msm_bedais[i].port_id;
  1311. payload.copp_idx[num_copps] = j;
  1312. payload.app_type[num_copps] =
  1313. fe_dai_app_type_cfg
  1314. [fedai_id][session_type]
  1315. [i].app_type;
  1316. payload.acdb_dev_id[num_copps] =
  1317. fe_dai_app_type_cfg
  1318. [fedai_id][session_type]
  1319. [i].acdb_dev_id;
  1320. payload.sample_rate[num_copps] =
  1321. fe_dai_app_type_cfg
  1322. [fedai_id][session_type]
  1323. [i].sample_rate;
  1324. num_copps++;
  1325. }
  1326. }
  1327. if ((perf_mode == LEGACY_PCM_MODE) &&
  1328. (msm_bedais[i].passthr_mode[fedai_id] ==
  1329. LEGACY_PCM))
  1330. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1331. copp_idx, topology,
  1332. channels);
  1333. }
  1334. }
  1335. if (num_copps) {
  1336. payload.num_copps = num_copps;
  1337. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1338. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1339. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1340. }
  1341. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1342. dspst_id, stream_type);
  1343. mutex_unlock(&routing_lock);
  1344. return ret;
  1345. }
  1346. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1347. int dspst_id, int stream_type,
  1348. struct msm_pcm_routing_evt event_info)
  1349. {
  1350. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1351. stream_type)) {
  1352. pr_err("%s: failed to reg phy stream\n", __func__);
  1353. return -EINVAL;
  1354. }
  1355. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1356. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1357. else
  1358. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1359. return 0;
  1360. }
  1361. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1362. {
  1363. int i, port_type, session_type, path_type, topology;
  1364. struct msm_pcm_routing_fdai_data *fdai;
  1365. if (!is_mm_lsm_fe_id(fedai_id)) {
  1366. /* bad ID assigned in machine driver */
  1367. pr_err("%s: bad MM ID\n", __func__);
  1368. return;
  1369. }
  1370. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1371. port_type = MSM_AFE_PORT_TYPE_RX;
  1372. session_type = SESSION_TYPE_RX;
  1373. path_type = ADM_PATH_PLAYBACK;
  1374. } else {
  1375. port_type = MSM_AFE_PORT_TYPE_TX;
  1376. session_type = SESSION_TYPE_TX;
  1377. path_type = ADM_PATH_LIVE_REC;
  1378. }
  1379. mutex_lock(&routing_lock);
  1380. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1381. if (!is_be_dai_extproc(i) &&
  1382. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1383. (msm_bedais[i].active) &&
  1384. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1385. int idx;
  1386. unsigned long copp =
  1387. session_copp_map[fedai_id][session_type][i];
  1388. fdai = &fe_dai_map[fedai_id][session_type];
  1389. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1390. if (test_bit(idx, &copp))
  1391. break;
  1392. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1393. pr_debug("%s: copp idx is invalid, exiting\n",
  1394. __func__);
  1395. continue;
  1396. }
  1397. topology = adm_get_topology_for_port_copp_idx(
  1398. msm_bedais[i].port_id, idx);
  1399. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1400. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1401. __func__, copp, fedai_id, session_type, i);
  1402. clear_bit(idx,
  1403. &session_copp_map[fedai_id][session_type][i]);
  1404. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1405. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1406. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1407. (msm_bedais[i].passthr_mode[fedai_id] ==
  1408. LEGACY_PCM))
  1409. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1410. topology);
  1411. }
  1412. }
  1413. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1414. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1415. mutex_unlock(&routing_lock);
  1416. }
  1417. /* Check if FE/BE route is set */
  1418. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1419. {
  1420. bool rc = false;
  1421. if (!is_mm_lsm_fe_id(fe_id)) {
  1422. /* recheck FE ID in the mixer control defined in this file */
  1423. pr_err("%s: bad MM ID\n", __func__);
  1424. return rc;
  1425. }
  1426. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1427. rc = true;
  1428. return rc;
  1429. }
  1430. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1431. {
  1432. int session_type, path_type, topology;
  1433. u32 channels, sample_rate;
  1434. uint16_t bits_per_sample = 16;
  1435. struct msm_pcm_routing_fdai_data *fdai;
  1436. uint32_t passthr_mode;
  1437. bool is_lsm;
  1438. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1439. if (!is_mm_lsm_fe_id(val)) {
  1440. /* recheck FE ID in the mixer control defined in this file */
  1441. pr_err("%s: bad MM ID\n", __func__);
  1442. return;
  1443. }
  1444. if (!route_check_fe_id_adm_support(val)) {
  1445. /* ignore adm open if not supported for fe_id */
  1446. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1447. return;
  1448. }
  1449. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1450. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1451. MSM_AFE_PORT_TYPE_RX) {
  1452. session_type = SESSION_TYPE_RX;
  1453. if (passthr_mode != LEGACY_PCM)
  1454. path_type = ADM_PATH_COMPRESSED_RX;
  1455. else
  1456. path_type = ADM_PATH_PLAYBACK;
  1457. } else {
  1458. session_type = SESSION_TYPE_TX;
  1459. if (passthr_mode != LEGACY_PCM)
  1460. path_type = ADM_PATH_COMPRESSED_TX;
  1461. else
  1462. path_type = ADM_PATH_LIVE_REC;
  1463. }
  1464. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1465. (val <= MSM_FRONTEND_DAI_LSM8);
  1466. mutex_lock(&routing_lock);
  1467. if (set) {
  1468. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1469. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1470. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1471. voc_start_playback(set, msm_bedais[reg].port_id);
  1472. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1473. fdai = &fe_dai_map[val][session_type];
  1474. if (msm_bedais[reg].active && fdai->strm_id !=
  1475. INVALID_SESSION) {
  1476. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1477. /*
  1478. * check if ADM needs to be configured with different
  1479. * channel mapping than backend
  1480. */
  1481. if (!msm_bedais[reg].adm_override_ch)
  1482. channels = msm_bedais[reg].channel;
  1483. else
  1484. channels = msm_bedais[reg].adm_override_ch;
  1485. if (session_type == SESSION_TYPE_TX &&
  1486. fdai->be_srate &&
  1487. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1488. pr_debug("%s: flush strm %d diff BE rates\n",
  1489. __func__, fdai->strm_id);
  1490. if (fdai->event_info.event_func)
  1491. fdai->event_info.event_func(
  1492. MSM_PCM_RT_EVT_BUF_RECFG,
  1493. fdai->event_info.priv_data);
  1494. fdai->be_srate = 0; /* might not need it */
  1495. }
  1496. bits_per_sample = msm_routing_get_bit_width(
  1497. msm_bedais[reg].format);
  1498. app_type =
  1499. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1500. if (app_type && is_lsm) {
  1501. app_type_idx =
  1502. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1503. sample_rate =
  1504. fe_dai_app_type_cfg[val][session_type][reg]
  1505. .sample_rate;
  1506. bits_per_sample =
  1507. lsm_app_type_cfg[app_type_idx].bit_width;
  1508. } else if (app_type) {
  1509. app_type_idx =
  1510. msm_pcm_routing_get_app_type_idx(app_type);
  1511. sample_rate =
  1512. fe_dai_app_type_cfg[val][session_type][reg]
  1513. .sample_rate;
  1514. bits_per_sample =
  1515. app_type_cfg[app_type_idx].bit_width;
  1516. } else
  1517. sample_rate = msm_bedais[reg].sample_rate;
  1518. topology = msm_routing_get_adm_topology(val,
  1519. session_type,
  1520. reg);
  1521. acdb_dev_id =
  1522. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1523. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1524. sample_rate, channels, topology,
  1525. fdai->perf_mode, bits_per_sample,
  1526. app_type, acdb_dev_id);
  1527. if ((copp_idx < 0) ||
  1528. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1529. pr_err("%s: adm open failed\n", __func__);
  1530. mutex_unlock(&routing_lock);
  1531. return;
  1532. }
  1533. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1534. __func__, val, session_type, reg);
  1535. set_bit(copp_idx,
  1536. &session_copp_map[val][session_type][reg]);
  1537. if (msm_is_resample_needed(
  1538. sample_rate,
  1539. msm_bedais[reg].sample_rate))
  1540. adm_copp_mfc_cfg(
  1541. msm_bedais[reg].port_id, copp_idx,
  1542. msm_bedais[reg].sample_rate);
  1543. if (session_type == SESSION_TYPE_RX &&
  1544. fdai->event_info.event_func)
  1545. fdai->event_info.event_func(
  1546. MSM_PCM_RT_EVT_DEVSWITCH,
  1547. fdai->event_info.priv_data);
  1548. msm_pcm_routing_build_matrix(val, session_type,
  1549. path_type,
  1550. fdai->perf_mode,
  1551. passthr_mode);
  1552. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1553. (passthr_mode == LEGACY_PCM))
  1554. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1555. copp_idx, topology,
  1556. channels);
  1557. }
  1558. } else {
  1559. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1560. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1561. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1562. voc_start_playback(set, msm_bedais[reg].port_id);
  1563. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1564. fdai = &fe_dai_map[val][session_type];
  1565. if (msm_bedais[reg].active && fdai->strm_id !=
  1566. INVALID_SESSION) {
  1567. int idx;
  1568. int port_id;
  1569. unsigned long copp =
  1570. session_copp_map[val][session_type][reg];
  1571. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1572. if (test_bit(idx, &copp))
  1573. break;
  1574. port_id = msm_bedais[reg].port_id;
  1575. topology = adm_get_topology_for_port_copp_idx(port_id,
  1576. idx);
  1577. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1578. idx);
  1579. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1580. __func__, copp, val, session_type, reg,
  1581. topology);
  1582. clear_bit(idx,
  1583. &session_copp_map[val][session_type][reg]);
  1584. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1585. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1586. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1587. (passthr_mode == LEGACY_PCM))
  1588. msm_pcm_routing_deinit_pp(
  1589. msm_bedais[reg].port_id,
  1590. topology);
  1591. msm_pcm_routing_build_matrix(val, session_type,
  1592. path_type,
  1593. fdai->perf_mode,
  1594. passthr_mode);
  1595. }
  1596. }
  1597. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1598. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1599. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1600. mutex_unlock(&routing_lock);
  1601. }
  1602. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1603. struct snd_ctl_elem_value *ucontrol)
  1604. {
  1605. struct soc_mixer_control *mc =
  1606. (struct soc_mixer_control *)kcontrol->private_value;
  1607. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1608. ucontrol->value.integer.value[0] = 1;
  1609. else
  1610. ucontrol->value.integer.value[0] = 0;
  1611. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1612. ucontrol->value.integer.value[0]);
  1613. return 0;
  1614. }
  1615. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1616. struct snd_ctl_elem_value *ucontrol)
  1617. {
  1618. struct snd_soc_dapm_widget_list *wlist =
  1619. dapm_kcontrol_get_wlist(kcontrol);
  1620. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  1621. struct soc_mixer_control *mc =
  1622. (struct soc_mixer_control *)kcontrol->private_value;
  1623. struct snd_soc_dapm_update *update = NULL;
  1624. if (ucontrol->value.integer.value[0] &&
  1625. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false) {
  1626. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1627. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1628. update);
  1629. } else if (!ucontrol->value.integer.value[0] &&
  1630. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true) {
  1631. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1632. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1633. update);
  1634. }
  1635. return 1;
  1636. }
  1637. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1638. struct snd_ctl_elem_value *ucontrol)
  1639. {
  1640. struct soc_mixer_control *mc =
  1641. (struct soc_mixer_control *)kcontrol->private_value;
  1642. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1643. ucontrol->value.integer.value[0] = 1;
  1644. else
  1645. ucontrol->value.integer.value[0] = 0;
  1646. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1647. ucontrol->value.integer.value[0]);
  1648. return 0;
  1649. }
  1650. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1651. struct snd_ctl_elem_value *ucontrol)
  1652. {
  1653. struct snd_soc_dapm_widget_list *wlist =
  1654. dapm_kcontrol_get_wlist(kcontrol);
  1655. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  1656. struct soc_mixer_control *mc =
  1657. (struct soc_mixer_control *)kcontrol->private_value;
  1658. struct snd_soc_dapm_update *update = NULL;
  1659. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1660. ucontrol->value.integer.value[0]);
  1661. if (ucontrol->value.integer.value[0]) {
  1662. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false)
  1663. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1664. snd_soc_dapm_mixer_update_power(widget->dapm,
  1665. kcontrol, 1, update);
  1666. } else if (!ucontrol->value.integer.value[0]) {
  1667. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true)
  1668. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1669. snd_soc_dapm_mixer_update_power(widget->dapm,
  1670. kcontrol, 0, update);
  1671. }
  1672. return 1;
  1673. }
  1674. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1675. {
  1676. u32 session_id = 0;
  1677. u16 path_type;
  1678. struct media_format_info voc_be_media_format;
  1679. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1680. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1681. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1682. __func__, val, session_id);
  1683. mutex_lock(&routing_lock);
  1684. if (set)
  1685. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1686. else
  1687. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1688. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1689. afe_get_port_type(msm_bedais[reg].port_id) ==
  1690. MSM_AFE_PORT_TYPE_RX) {
  1691. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1692. __func__, set, msm_bedais[reg].port_id);
  1693. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1694. }
  1695. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1696. MSM_AFE_PORT_TYPE_RX)
  1697. path_type = RX_PATH;
  1698. else
  1699. path_type = TX_PATH;
  1700. if (set) {
  1701. if (msm_bedais[reg].active) {
  1702. voc_set_route_flag(session_id, path_type, 1);
  1703. memset(&voc_be_media_format, 0,
  1704. sizeof(struct media_format_info));
  1705. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1706. voc_be_media_format.num_channels =
  1707. msm_bedais[reg].channel;
  1708. voc_be_media_format.sample_rate =
  1709. msm_bedais[reg].sample_rate;
  1710. voc_be_media_format.bits_per_sample =
  1711. msm_bedais[reg].format;
  1712. /* Defaulting this to 1 for voice call usecases */
  1713. voc_be_media_format.channel_mapping[0] = 1;
  1714. voc_set_device_config(session_id, path_type,
  1715. &voc_be_media_format);
  1716. if (voc_get_route_flag(session_id, TX_PATH) &&
  1717. voc_get_route_flag(session_id, RX_PATH))
  1718. voc_enable_device(session_id);
  1719. } else {
  1720. pr_debug("%s BE is not active\n", __func__);
  1721. }
  1722. } else {
  1723. voc_set_route_flag(session_id, path_type, 0);
  1724. voc_disable_device(session_id);
  1725. }
  1726. mutex_unlock(&routing_lock);
  1727. }
  1728. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1729. struct snd_ctl_elem_value *ucontrol)
  1730. {
  1731. struct soc_mixer_control *mc =
  1732. (struct soc_mixer_control *)kcontrol->private_value;
  1733. mutex_lock(&routing_lock);
  1734. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1735. ucontrol->value.integer.value[0] = 1;
  1736. else
  1737. ucontrol->value.integer.value[0] = 0;
  1738. mutex_unlock(&routing_lock);
  1739. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1740. ucontrol->value.integer.value[0]);
  1741. return 0;
  1742. }
  1743. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1744. struct snd_ctl_elem_value *ucontrol)
  1745. {
  1746. struct snd_soc_dapm_widget_list *wlist =
  1747. dapm_kcontrol_get_wlist(kcontrol);
  1748. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  1749. struct soc_mixer_control *mc =
  1750. (struct soc_mixer_control *)kcontrol->private_value;
  1751. struct snd_soc_dapm_update *update = NULL;
  1752. if (ucontrol->value.integer.value[0]) {
  1753. msm_pcm_routing_process_voice(mc->reg, mc->shift, 1);
  1754. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1755. update);
  1756. } else {
  1757. msm_pcm_routing_process_voice(mc->reg, mc->shift, 0);
  1758. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1759. update);
  1760. }
  1761. return 1;
  1762. }
  1763. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1764. struct snd_ctl_elem_value *ucontrol)
  1765. {
  1766. struct soc_mixer_control *mc =
  1767. (struct soc_mixer_control *)kcontrol->private_value;
  1768. mutex_lock(&routing_lock);
  1769. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1770. ucontrol->value.integer.value[0] = 1;
  1771. else
  1772. ucontrol->value.integer.value[0] = 0;
  1773. mutex_unlock(&routing_lock);
  1774. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1775. ucontrol->value.integer.value[0]);
  1776. return 0;
  1777. }
  1778. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1779. struct snd_ctl_elem_value *ucontrol)
  1780. {
  1781. struct snd_soc_dapm_widget_list *wlist =
  1782. dapm_kcontrol_get_wlist(kcontrol);
  1783. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  1784. struct soc_mixer_control *mc =
  1785. (struct soc_mixer_control *)kcontrol->private_value;
  1786. struct snd_soc_dapm_update *update = NULL;
  1787. if (ucontrol->value.integer.value[0]) {
  1788. mutex_lock(&routing_lock);
  1789. set_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1790. mutex_unlock(&routing_lock);
  1791. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1792. update);
  1793. } else {
  1794. mutex_lock(&routing_lock);
  1795. clear_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1796. mutex_unlock(&routing_lock);
  1797. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1798. update);
  1799. }
  1800. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1801. ucontrol->value.integer.value[0]);
  1802. return 1;
  1803. }
  1804. /*
  1805. * Return the mapping between port ID and backend ID to enable the AFE callback
  1806. * to determine the acdb_dev_id from the port id
  1807. */
  1808. int msm_pcm_get_be_id_from_port_id(int port_id)
  1809. {
  1810. int i;
  1811. int be_id = -EINVAL;
  1812. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1813. if (msm_bedais[i].port_id == port_id) {
  1814. be_id = i;
  1815. break;
  1816. }
  1817. }
  1818. return be_id;
  1819. }
  1820. /*
  1821. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1822. * correct AFE calibration information by comparing the header information.
  1823. */
  1824. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1825. {
  1826. int acdb_id = -EINVAL;
  1827. int i = 0;
  1828. int session;
  1829. int port_type = afe_get_port_type(port_id);
  1830. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1831. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1832. __func__, port_id, be_id, port_type);
  1833. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1834. session = SESSION_TYPE_TX;
  1835. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1836. session = SESSION_TYPE_RX;
  1837. } else {
  1838. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1839. acdb_id = -EINVAL;
  1840. goto exit;
  1841. }
  1842. if (be_id < 0) {
  1843. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1844. goto exit;
  1845. }
  1846. mutex_lock(&routing_lock);
  1847. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1848. MSM_FRONTEND_DAI_MAX);
  1849. if (i < MSM_FRONTEND_DAI_MAX)
  1850. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1851. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1852. __func__, i, session, be_id, acdb_id);
  1853. mutex_unlock(&routing_lock);
  1854. exit:
  1855. return acdb_id;
  1856. }
  1857. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1858. struct snd_ctl_elem_value *ucontrol)
  1859. {
  1860. ucontrol->value.integer.value[0] = fm_switch_enable;
  1861. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1862. ucontrol->value.integer.value[0]);
  1863. return 0;
  1864. }
  1865. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1866. struct snd_ctl_elem_value *ucontrol)
  1867. {
  1868. struct snd_soc_dapm_widget_list *wlist =
  1869. dapm_kcontrol_get_wlist(kcontrol);
  1870. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  1871. struct snd_soc_dapm_update *update = NULL;
  1872. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1873. ucontrol->value.integer.value[0]);
  1874. if (ucontrol->value.integer.value[0])
  1875. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1876. update);
  1877. else
  1878. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1879. update);
  1880. fm_switch_enable = ucontrol->value.integer.value[0];
  1881. return 1;
  1882. }
  1883. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1884. struct snd_ctl_elem_value *ucontrol)
  1885. {
  1886. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1887. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1888. ucontrol->value.integer.value[0]);
  1889. return 0;
  1890. }
  1891. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1892. struct snd_ctl_elem_value *ucontrol)
  1893. {
  1894. struct snd_soc_dapm_widget_list *wlist =
  1895. dapm_kcontrol_get_wlist(kcontrol);
  1896. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  1897. struct snd_soc_dapm_update *update = NULL;
  1898. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1899. ucontrol->value.integer.value[0]);
  1900. if (ucontrol->value.integer.value[0])
  1901. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1902. 1, update);
  1903. else
  1904. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1905. 0, update);
  1906. hfp_switch_enable = ucontrol->value.integer.value[0];
  1907. return 1;
  1908. }
  1909. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1910. struct snd_ctl_elem_value *ucontrol)
  1911. {
  1912. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1913. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1914. ucontrol->value.integer.value[0]);
  1915. return 0;
  1916. }
  1917. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1918. struct snd_ctl_elem_value *ucontrol)
  1919. {
  1920. struct snd_soc_dapm_widget_list *wlist =
  1921. dapm_kcontrol_get_wlist(kcontrol);
  1922. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  1923. struct snd_soc_dapm_update *update = NULL;
  1924. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1925. ucontrol->value.integer.value[0]);
  1926. if (ucontrol->value.integer.value[0])
  1927. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1928. update);
  1929. else
  1930. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1931. update);
  1932. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1933. return 1;
  1934. }
  1935. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1936. struct snd_ctl_elem_value *ucontrol)
  1937. {
  1938. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  1939. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1940. ucontrol->value.integer.value[0]);
  1941. return 0;
  1942. }
  1943. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1944. struct snd_ctl_elem_value *ucontrol)
  1945. {
  1946. struct snd_soc_dapm_widget_list *wlist =
  1947. dapm_kcontrol_get_wlist(kcontrol);
  1948. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  1949. struct snd_soc_dapm_update *update = NULL;
  1950. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1951. ucontrol->value.integer.value[0]);
  1952. if (ucontrol->value.integer.value[0])
  1953. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1954. update);
  1955. else
  1956. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1957. update);
  1958. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1959. return 1;
  1960. }
  1961. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1962. struct snd_ctl_elem_value *ucontrol)
  1963. {
  1964. ucontrol->value.integer.value[0] = usb_switch_enable;
  1965. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1966. ucontrol->value.integer.value[0]);
  1967. return 0;
  1968. }
  1969. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1970. struct snd_ctl_elem_value *ucontrol)
  1971. {
  1972. struct snd_soc_dapm_widget_list *wlist =
  1973. dapm_kcontrol_get_wlist(kcontrol);
  1974. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  1975. struct snd_soc_dapm_update *update = NULL;
  1976. pr_debug("%s: USB Switch enable %ld\n", __func__,
  1977. ucontrol->value.integer.value[0]);
  1978. if (ucontrol->value.integer.value[0])
  1979. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1980. 1, update);
  1981. else
  1982. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1983. 0, update);
  1984. usb_switch_enable = ucontrol->value.integer.value[0];
  1985. return 1;
  1986. }
  1987. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1988. struct snd_ctl_elem_value *ucontrol)
  1989. {
  1990. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  1991. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  1992. ucontrol->value.integer.value[0]);
  1993. return 0;
  1994. }
  1995. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1996. struct snd_ctl_elem_value *ucontrol)
  1997. {
  1998. struct snd_soc_dapm_widget_list *wlist =
  1999. dapm_kcontrol_get_wlist(kcontrol);
  2000. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  2001. struct snd_soc_dapm_update *update = NULL;
  2002. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2003. ucontrol->value.integer.value[0]);
  2004. if (ucontrol->value.integer.value[0])
  2005. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2006. update);
  2007. else
  2008. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2009. update);
  2010. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2011. return 1;
  2012. }
  2013. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2014. struct snd_ctl_elem_value *ucontrol)
  2015. {
  2016. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2017. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2018. ucontrol->value.integer.value[0]);
  2019. return 0;
  2020. }
  2021. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2022. struct snd_ctl_elem_value *ucontrol)
  2023. {
  2024. struct snd_soc_dapm_widget_list *wlist =
  2025. dapm_kcontrol_get_wlist(kcontrol);
  2026. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  2027. struct snd_soc_dapm_update *update = NULL;
  2028. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2029. ucontrol->value.integer.value[0]);
  2030. if (ucontrol->value.integer.value[0])
  2031. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2032. update);
  2033. else
  2034. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2035. update);
  2036. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2037. return 1;
  2038. }
  2039. static int msm_routing_get_tert_mi2s_switch_mixer(
  2040. struct snd_kcontrol *kcontrol,
  2041. struct snd_ctl_elem_value *ucontrol)
  2042. {
  2043. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2044. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2045. ucontrol->value.integer.value[0]);
  2046. return 0;
  2047. }
  2048. static int msm_routing_put_tert_mi2s_switch_mixer(
  2049. struct snd_kcontrol *kcontrol,
  2050. struct snd_ctl_elem_value *ucontrol)
  2051. {
  2052. struct snd_soc_dapm_widget_list *wlist =
  2053. dapm_kcontrol_get_wlist(kcontrol);
  2054. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  2055. struct snd_soc_dapm_update *update = NULL;
  2056. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2057. ucontrol->value.integer.value[0]);
  2058. if (ucontrol->value.integer.value[0])
  2059. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2060. update);
  2061. else
  2062. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2063. update);
  2064. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2065. return 1;
  2066. }
  2067. static int msm_routing_get_quat_mi2s_switch_mixer(
  2068. struct snd_kcontrol *kcontrol,
  2069. struct snd_ctl_elem_value *ucontrol)
  2070. {
  2071. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2072. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2073. ucontrol->value.integer.value[0]);
  2074. return 0;
  2075. }
  2076. static int msm_routing_put_quat_mi2s_switch_mixer(
  2077. struct snd_kcontrol *kcontrol,
  2078. struct snd_ctl_elem_value *ucontrol)
  2079. {
  2080. struct snd_soc_dapm_widget_list *wlist =
  2081. dapm_kcontrol_get_wlist(kcontrol);
  2082. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  2083. struct snd_soc_dapm_update *update = NULL;
  2084. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2085. ucontrol->value.integer.value[0]);
  2086. if (ucontrol->value.integer.value[0])
  2087. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2088. update);
  2089. else
  2090. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2091. update);
  2092. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2093. return 1;
  2094. }
  2095. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2096. struct snd_ctl_elem_value *ucontrol)
  2097. {
  2098. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2099. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2100. ucontrol->value.integer.value[0]);
  2101. return 0;
  2102. }
  2103. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2104. struct snd_ctl_elem_value *ucontrol)
  2105. {
  2106. struct snd_soc_dapm_widget_list *wlist =
  2107. dapm_kcontrol_get_wlist(kcontrol);
  2108. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  2109. struct snd_soc_dapm_update *update = NULL;
  2110. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2111. ucontrol->value.integer.value[0]);
  2112. if (ucontrol->value.integer.value[0])
  2113. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2114. update);
  2115. else
  2116. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2117. update);
  2118. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2119. return 1;
  2120. }
  2121. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2122. struct snd_ctl_elem_value *ucontrol)
  2123. {
  2124. ucontrol->value.integer.value[0] = lsm_port_index;
  2125. return 0;
  2126. }
  2127. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2128. struct snd_ctl_elem_value *ucontrol)
  2129. {
  2130. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2131. int mux = ucontrol->value.enumerated.item[0];
  2132. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2133. if (mux >= e->items) {
  2134. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2135. return -EINVAL;
  2136. }
  2137. pr_debug("%s: LSM enable %ld\n", __func__,
  2138. ucontrol->value.integer.value[0]);
  2139. switch (ucontrol->value.integer.value[0]) {
  2140. case 1:
  2141. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2142. break;
  2143. case 2:
  2144. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2145. break;
  2146. case 3:
  2147. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2148. break;
  2149. case 4:
  2150. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2151. break;
  2152. case 5:
  2153. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2154. break;
  2155. case 6:
  2156. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2157. break;
  2158. case 7:
  2159. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2160. break;
  2161. case 8:
  2162. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2163. break;
  2164. case 9:
  2165. lsm_port = ADM_LSM_PORT_ID;
  2166. break;
  2167. case 10:
  2168. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2169. break;
  2170. default:
  2171. pr_err("Default lsm port");
  2172. break;
  2173. }
  2174. set_lsm_port(lsm_port);
  2175. lsm_port_index = ucontrol->value.integer.value[0];
  2176. return 0;
  2177. }
  2178. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2179. struct snd_ctl_elem_value *ucontrol)
  2180. {
  2181. int i;
  2182. u16 port_id;
  2183. enum afe_mad_type mad_type;
  2184. pr_debug("%s: enter\n", __func__);
  2185. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2186. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2187. strlen(lsm_port_text[i])))
  2188. break;
  2189. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2190. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2191. return -EINVAL;
  2192. }
  2193. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2194. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2195. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2196. strlen(lsm_port_text[7])))
  2197. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2198. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2199. strlen(lsm_port_text[8])))
  2200. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2201. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2202. strlen(lsm_port_text[10])))
  2203. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2204. mad_type = afe_port_get_mad_type(port_id);
  2205. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2206. mad_type);
  2207. switch (mad_type) {
  2208. case MAD_HW_NONE:
  2209. ucontrol->value.integer.value[0] = MADNONE;
  2210. break;
  2211. case MAD_HW_AUDIO:
  2212. ucontrol->value.integer.value[0] = MADAUDIO;
  2213. break;
  2214. case MAD_HW_BEACON:
  2215. ucontrol->value.integer.value[0] = MADBEACON;
  2216. break;
  2217. case MAD_HW_ULTRASOUND:
  2218. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2219. break;
  2220. case MAD_SW_AUDIO:
  2221. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2222. break;
  2223. default:
  2224. WARN(1, "Unknown\n");
  2225. return -EINVAL;
  2226. }
  2227. return 0;
  2228. }
  2229. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2230. struct snd_ctl_elem_value *ucontrol)
  2231. {
  2232. int i;
  2233. u16 port_id;
  2234. enum afe_mad_type mad_type;
  2235. pr_debug("%s: enter\n", __func__);
  2236. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2237. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2238. strlen(lsm_port_text[i])))
  2239. break;
  2240. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2241. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2242. return -EINVAL;
  2243. }
  2244. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2245. switch (ucontrol->value.integer.value[0]) {
  2246. case MADNONE:
  2247. mad_type = MAD_HW_NONE;
  2248. break;
  2249. case MADAUDIO:
  2250. mad_type = MAD_HW_AUDIO;
  2251. break;
  2252. case MADBEACON:
  2253. mad_type = MAD_HW_BEACON;
  2254. break;
  2255. case MADULTRASOUND:
  2256. mad_type = MAD_HW_ULTRASOUND;
  2257. break;
  2258. case MADSWAUDIO:
  2259. mad_type = MAD_SW_AUDIO;
  2260. break;
  2261. default:
  2262. WARN(1, "Unknown\n");
  2263. return -EINVAL;
  2264. }
  2265. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2266. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2267. strlen(lsm_port_text[7])))
  2268. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2269. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2270. strlen(lsm_port_text[8])))
  2271. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2272. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2273. strlen(lsm_port_text[10])))
  2274. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2275. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2276. mad_type);
  2277. return afe_port_set_mad_type(port_id, mad_type);
  2278. }
  2279. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2280. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2281. adm_override_chs_text);
  2282. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2283. {
  2284. int backend_id;
  2285. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2286. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2287. } else {
  2288. pr_err("%s: unsupported backend id: %s",
  2289. __func__, kcontrol->id.name);
  2290. return -EINVAL;
  2291. }
  2292. return backend_id;
  2293. }
  2294. static int msm_routing_adm_channel_config_get(
  2295. struct snd_kcontrol *kcontrol,
  2296. struct snd_ctl_elem_value *ucontrol)
  2297. {
  2298. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2299. if (backend_id >= 0) {
  2300. mutex_lock(&routing_lock);
  2301. ucontrol->value.integer.value[0] =
  2302. msm_bedais[backend_id].adm_override_ch;
  2303. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2304. ucontrol->value.integer.value[0], backend_id);
  2305. mutex_unlock(&routing_lock);
  2306. }
  2307. return 0;
  2308. }
  2309. static int msm_routing_adm_channel_config_put(
  2310. struct snd_kcontrol *kcontrol,
  2311. struct snd_ctl_elem_value *ucontrol)
  2312. {
  2313. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2314. if (backend_id >= 0) {
  2315. mutex_lock(&routing_lock);
  2316. msm_bedais[backend_id].adm_override_ch =
  2317. ucontrol->value.integer.value[0];
  2318. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2319. __func__, backend_id,
  2320. msm_bedais[backend_id].adm_override_ch);
  2321. mutex_unlock(&routing_lock);
  2322. }
  2323. return 0;
  2324. }
  2325. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2326. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2327. msm_routing_adm_channel_config_get,
  2328. msm_routing_adm_channel_config_put),
  2329. };
  2330. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2331. struct snd_ctl_elem_value *ucontrol)
  2332. {
  2333. mutex_lock(&routing_lock);
  2334. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2335. mutex_unlock(&routing_lock);
  2336. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2337. ucontrol->value.integer.value[0]);
  2338. return 0;
  2339. };
  2340. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2341. struct snd_ctl_elem_value *ucontrol)
  2342. {
  2343. struct aanc_data aanc_info;
  2344. mutex_lock(&routing_lock);
  2345. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2346. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2347. ucontrol->value.integer.value[0]);
  2348. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2349. if (ucontrol->value.integer.value[0] == 0) {
  2350. aanc_info.aanc_active = false;
  2351. aanc_info.aanc_tx_port = 0;
  2352. aanc_info.aanc_rx_port = 0;
  2353. } else {
  2354. aanc_info.aanc_active = true;
  2355. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2356. aanc_info.aanc_tx_port =
  2357. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2358. }
  2359. afe_set_aanc_info(&aanc_info);
  2360. mutex_unlock(&routing_lock);
  2361. return 0;
  2362. };
  2363. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2364. struct snd_ctl_elem_value *ucontrol)
  2365. {
  2366. int idx = 0, shift = 0;
  2367. struct soc_mixer_control *mc =
  2368. (struct soc_mixer_control *)kcontrol->private_value;
  2369. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2370. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2371. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2372. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2373. return -EINVAL;
  2374. }
  2375. if (test_bit(shift,
  2376. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]))
  2377. ucontrol->value.integer.value[0] = 1;
  2378. else
  2379. ucontrol->value.integer.value[0] = 0;
  2380. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  2381. ucontrol->value.integer.value[0]);
  2382. return 0;
  2383. }
  2384. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2385. struct snd_ctl_elem_value *ucontrol)
  2386. {
  2387. int idx = 0, shift = 0;
  2388. struct soc_mixer_control *mc =
  2389. (struct soc_mixer_control *)kcontrol->private_value;
  2390. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2391. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2392. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2393. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2394. return -EINVAL;
  2395. }
  2396. pr_debug("%s: reg 0x%x shift 0x%x val %ld idx %d reminder shift %d\n",
  2397. __func__, mc->reg, mc->shift,
  2398. ucontrol->value.integer.value[0], idx, shift);
  2399. if (ucontrol->value.integer.value[0]) {
  2400. afe_loopback(1, msm_bedais[mc->reg].port_id,
  2401. msm_bedais[mc->shift].port_id);
  2402. set_bit(shift,
  2403. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2404. } else {
  2405. afe_loopback(0, msm_bedais[mc->reg].port_id,
  2406. msm_bedais[mc->shift].port_id);
  2407. clear_bit(shift,
  2408. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2409. }
  2410. return 1;
  2411. }
  2412. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2413. struct snd_ctl_elem_value *ucontrol)
  2414. {
  2415. u16 fe_id = 0;
  2416. fe_id = ((struct soc_mixer_control *)
  2417. kcontrol->private_value)->shift;
  2418. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2419. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2420. return -EINVAL;
  2421. }
  2422. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2423. return 0;
  2424. }
  2425. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2426. struct snd_ctl_elem_value *ucontrol)
  2427. {
  2428. u16 fe_id = 0;
  2429. fe_id = ((struct soc_mixer_control *)
  2430. kcontrol->private_value)->shift;
  2431. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2432. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2433. return -EINVAL;
  2434. }
  2435. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2436. return 1;
  2437. }
  2438. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2439. struct snd_ctl_elem_value *ucontrol)
  2440. {
  2441. u16 fe_id = 0;
  2442. fe_id = ((struct soc_multi_mixer_control *)
  2443. kcontrol->private_value)->shift;
  2444. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2445. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2446. return -EINVAL;
  2447. }
  2448. ucontrol->value.integer.value[0] =
  2449. channel_mixer[fe_id].output_channel;
  2450. return 0;
  2451. }
  2452. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2453. struct snd_ctl_elem_value *ucontrol)
  2454. {
  2455. u16 fe_id = 0;
  2456. fe_id = ((struct soc_multi_mixer_control *)
  2457. kcontrol->private_value)->shift;
  2458. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2459. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2460. return -EINVAL;
  2461. }
  2462. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2463. fe_id,
  2464. (unsigned int)(ucontrol->value.integer.value[0]));
  2465. channel_mixer[fe_id].output_channel =
  2466. (unsigned int)(ucontrol->value.integer.value[0]);
  2467. return 1;
  2468. }
  2469. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2470. /* If new backend is added, need update this array */
  2471. static const char *const be_name[] = {
  2472. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2473. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2474. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2475. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2476. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2477. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2478. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2479. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2480. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2481. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2482. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2483. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2484. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2485. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2486. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2487. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2488. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2489. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2490. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2491. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2492. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2493. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2494. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2495. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2496. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2497. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2498. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2499. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2500. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2501. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2502. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2503. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2504. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2505. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2506. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2507. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2508. };
  2509. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2510. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2511. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2512. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2513. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2514. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2515. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2516. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2517. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2518. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2519. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2520. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2521. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2522. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2523. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2524. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2525. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2526. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2527. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2528. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2529. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2530. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2531. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2532. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2533. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2534. unsigned int channels,
  2535. unsigned int items, const char *const names[])
  2536. {
  2537. if (uinfo->value.enumerated.item >= items)
  2538. uinfo->value.enumerated.item = items - 1;
  2539. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2540. sizeof(uinfo->value.enumerated.name),
  2541. "ALSA: too long item name '%s'\n",
  2542. names[uinfo->value.enumerated.item]);
  2543. strlcpy(uinfo->value.enumerated.name,
  2544. names[uinfo->value.enumerated.item],
  2545. sizeof(uinfo->value.enumerated.name));
  2546. return 0;
  2547. }
  2548. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2549. struct snd_ctl_elem_info *uinfo)
  2550. {
  2551. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2552. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2553. uinfo->count = 1;
  2554. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2555. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2556. return 0;
  2557. }
  2558. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2559. struct snd_ctl_elem_value *ucontrol)
  2560. {
  2561. u16 fe_id = 0;
  2562. fe_id = ((struct soc_enum *)
  2563. kcontrol->private_value)->shift_l;
  2564. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2565. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2566. return -EINVAL;
  2567. }
  2568. pr_debug("%s: FE %d %s\n", __func__,
  2569. fe_id,
  2570. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2571. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2572. return 0;
  2573. }
  2574. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2575. struct snd_ctl_elem_value *ucontrol)
  2576. {
  2577. u16 fe_id = 0;
  2578. fe_id = ((struct soc_enum *)
  2579. kcontrol->private_value)->shift_l;
  2580. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2581. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2582. return -EINVAL;
  2583. }
  2584. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2585. pr_debug("%s: %s FE %d\n", __func__,
  2586. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2587. fe_id);
  2588. return 0;
  2589. }
  2590. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2591. struct snd_ctl_elem_info *uinfo)
  2592. {
  2593. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2594. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2595. uinfo->count = 1;
  2596. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2597. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2598. return 0;
  2599. }
  2600. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2601. struct snd_ctl_elem_value *ucontrol)
  2602. {
  2603. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2604. u16 fe_id = 0, in_ch = 0;
  2605. fe_id = e->shift_l;
  2606. in_ch = e->shift_r;
  2607. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2608. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2609. return -EINVAL;
  2610. }
  2611. if (in_ch >= ADM_MAX_CHANNELS) {
  2612. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2613. return -EINVAL;
  2614. }
  2615. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2616. return 1;
  2617. }
  2618. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2619. struct snd_ctl_elem_value *ucontrol)
  2620. {
  2621. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2622. u16 fe_id = 0, in_ch = 0;
  2623. fe_id = e->shift_l;
  2624. in_ch = e->shift_r;
  2625. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2626. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2627. return -EINVAL;
  2628. }
  2629. if (in_ch >= ADM_MAX_CHANNELS) {
  2630. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2631. return -EINVAL;
  2632. }
  2633. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2634. return 1;
  2635. }
  2636. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2637. struct snd_ctl_elem_info *uinfo)
  2638. {
  2639. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2640. uinfo->count = ADM_MAX_CHANNELS;
  2641. uinfo->value.integer.min = 0;
  2642. uinfo->value.integer.max = WEIGHT_0_DB;
  2643. return 0;
  2644. }
  2645. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2646. struct snd_ctl_elem_value *ucontrol)
  2647. {
  2648. u16 fe_id = 0, out_ch = 0;
  2649. int i, weight;
  2650. fe_id = ((struct soc_multi_mixer_control *)
  2651. kcontrol->private_value)->shift;
  2652. out_ch = ((struct soc_multi_mixer_control *)
  2653. kcontrol->private_value)->rshift;
  2654. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2655. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2656. return -EINVAL;
  2657. }
  2658. if (out_ch >= ADM_MAX_CHANNELS) {
  2659. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2660. return -EINVAL;
  2661. }
  2662. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2663. __func__, fe_id,
  2664. ucontrol->value.integer.value[0],
  2665. ucontrol->value.integer.value[1],
  2666. ucontrol->value.integer.value[2],
  2667. ucontrol->value.integer.value[3],
  2668. ucontrol->value.integer.value[4],
  2669. ucontrol->value.integer.value[5],
  2670. ucontrol->value.integer.value[6],
  2671. ucontrol->value.integer.value[7]);
  2672. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2673. weight = ucontrol->value.integer.value[i];
  2674. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2675. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2676. __func__, fe_id, out_ch, i,
  2677. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2678. }
  2679. return 0;
  2680. }
  2681. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2682. struct snd_ctl_elem_value *ucontrol)
  2683. {
  2684. u16 fe_id = 0, out_ch = 0;
  2685. int i;
  2686. fe_id = ((struct soc_multi_mixer_control *)
  2687. kcontrol->private_value)->shift;
  2688. out_ch = ((struct soc_multi_mixer_control *)
  2689. kcontrol->private_value)->rshift;
  2690. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2691. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2692. return -EINVAL;
  2693. }
  2694. if (out_ch >= ADM_MAX_CHANNELS) {
  2695. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2696. return -EINVAL;
  2697. }
  2698. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2699. ucontrol->value.integer.value[i] =
  2700. channel_mixer[fe_id].channel_weight[out_ch][i];
  2701. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2702. __func__, fe_id,
  2703. ucontrol->value.integer.value[0],
  2704. ucontrol->value.integer.value[1],
  2705. ucontrol->value.integer.value[2],
  2706. ucontrol->value.integer.value[3],
  2707. ucontrol->value.integer.value[4],
  2708. ucontrol->value.integer.value[5],
  2709. ucontrol->value.integer.value[6],
  2710. ucontrol->value.integer.value[7]);
  2711. return 0;
  2712. }
  2713. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2714. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2715. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2716. msm_pcm_get_channel_rule_index,
  2717. msm_pcm_put_channel_rule_index),
  2718. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2719. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2720. msm_pcm_get_channel_rule_index,
  2721. msm_pcm_put_channel_rule_index),
  2722. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2723. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2724. msm_pcm_get_channel_rule_index,
  2725. msm_pcm_put_channel_rule_index),
  2726. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2727. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2728. msm_pcm_get_channel_rule_index,
  2729. msm_pcm_put_channel_rule_index),
  2730. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2731. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2732. msm_pcm_get_channel_rule_index,
  2733. msm_pcm_put_channel_rule_index),
  2734. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2735. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2736. msm_pcm_get_channel_rule_index,
  2737. msm_pcm_put_channel_rule_index),
  2738. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2739. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2740. msm_pcm_get_out_chs,
  2741. msm_pcm_put_out_chs),
  2742. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2743. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2744. msm_pcm_get_out_chs,
  2745. msm_pcm_put_out_chs),
  2746. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2747. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2748. msm_pcm_get_out_chs,
  2749. msm_pcm_put_out_chs),
  2750. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2751. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2752. msm_pcm_get_out_chs,
  2753. msm_pcm_put_out_chs),
  2754. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2755. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2756. msm_pcm_get_out_chs,
  2757. msm_pcm_put_out_chs),
  2758. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2759. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2760. msm_pcm_get_out_chs,
  2761. msm_pcm_put_out_chs),
  2762. {
  2763. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2764. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2765. .name = "MultiMedia1 Channel Mixer",
  2766. .info = msm_pcm_channel_mixer_info,
  2767. .get = msm_pcm_channel_mixer_get,
  2768. .put = msm_pcm_channel_mixer_put,
  2769. .private_value = (unsigned long)&(mm1_channel_mux)
  2770. },
  2771. {
  2772. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2773. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2774. .name = "MultiMedia2 Channel Mixer",
  2775. .info = msm_pcm_channel_mixer_info,
  2776. .get = msm_pcm_channel_mixer_get,
  2777. .put = msm_pcm_channel_mixer_put,
  2778. .private_value = (unsigned long)&(mm2_channel_mux)
  2779. },
  2780. {
  2781. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2782. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2783. .name = "MultiMedia3 Channel Mixer",
  2784. .info = msm_pcm_channel_mixer_info,
  2785. .get = msm_pcm_channel_mixer_get,
  2786. .put = msm_pcm_channel_mixer_put,
  2787. .private_value = (unsigned long)&(mm3_channel_mux)
  2788. },
  2789. {
  2790. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2791. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2792. .name = "MultiMedia4 Channel Mixer",
  2793. .info = msm_pcm_channel_mixer_info,
  2794. .get = msm_pcm_channel_mixer_get,
  2795. .put = msm_pcm_channel_mixer_put,
  2796. .private_value = (unsigned long)&(mm4_channel_mux)
  2797. },
  2798. {
  2799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2801. .name = "MultiMedia1 Output Channel1",
  2802. .info = msm_pcm_channel_weight_info,
  2803. .get = msm_pcm_channel_weight_get,
  2804. .put = msm_pcm_channel_weight_put,
  2805. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2806. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2807. },
  2808. {
  2809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2811. .name = "MultiMedia1 Output Channel2",
  2812. .info = msm_pcm_channel_weight_info,
  2813. .get = msm_pcm_channel_weight_get,
  2814. .put = msm_pcm_channel_weight_put,
  2815. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2816. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2817. },
  2818. {
  2819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2821. .name = "MultiMedia1 Output Channel3",
  2822. .info = msm_pcm_channel_weight_info,
  2823. .get = msm_pcm_channel_weight_get,
  2824. .put = msm_pcm_channel_weight_put,
  2825. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2826. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2827. },
  2828. {
  2829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2831. .name = "MultiMedia1 Output Channel4",
  2832. .info = msm_pcm_channel_weight_info,
  2833. .get = msm_pcm_channel_weight_get,
  2834. .put = msm_pcm_channel_weight_put,
  2835. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2836. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2837. },
  2838. {
  2839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2841. .name = "MultiMedia1 Output Channel5",
  2842. .info = msm_pcm_channel_weight_info,
  2843. .get = msm_pcm_channel_weight_get,
  2844. .put = msm_pcm_channel_weight_put,
  2845. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2846. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2847. },
  2848. {
  2849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2851. .name = "MultiMedia1 Output Channel6",
  2852. .info = msm_pcm_channel_weight_info,
  2853. .get = msm_pcm_channel_weight_get,
  2854. .put = msm_pcm_channel_weight_put,
  2855. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2856. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2857. },
  2858. {
  2859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2861. .name = "MultiMedia1 Output Channel7",
  2862. .info = msm_pcm_channel_weight_info,
  2863. .get = msm_pcm_channel_weight_get,
  2864. .put = msm_pcm_channel_weight_put,
  2865. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2866. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2867. },
  2868. {
  2869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2871. .name = "MultiMedia1 Output Channel8",
  2872. .info = msm_pcm_channel_weight_info,
  2873. .get = msm_pcm_channel_weight_get,
  2874. .put = msm_pcm_channel_weight_put,
  2875. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2876. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2877. },
  2878. {
  2879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2881. .name = "MultiMedia2 Output Channel1",
  2882. .info = msm_pcm_channel_weight_info,
  2883. .get = msm_pcm_channel_weight_get,
  2884. .put = msm_pcm_channel_weight_put,
  2885. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2886. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2887. },
  2888. {
  2889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2891. .name = "MultiMedia2 Output Channel2",
  2892. .info = msm_pcm_channel_weight_info,
  2893. .get = msm_pcm_channel_weight_get,
  2894. .put = msm_pcm_channel_weight_put,
  2895. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2896. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2897. },
  2898. {
  2899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2901. .name = "MultiMedia2 Output Channel3",
  2902. .info = msm_pcm_channel_weight_info,
  2903. .get = msm_pcm_channel_weight_get,
  2904. .put = msm_pcm_channel_weight_put,
  2905. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2906. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2907. },
  2908. {
  2909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2911. .name = "MultiMedia3 Output Channel1",
  2912. .info = msm_pcm_channel_weight_info,
  2913. .get = msm_pcm_channel_weight_get,
  2914. .put = msm_pcm_channel_weight_put,
  2915. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2916. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  2917. },
  2918. {
  2919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2921. .name = "MultiMedia3 Output Channel2",
  2922. .info = msm_pcm_channel_weight_info,
  2923. .get = msm_pcm_channel_weight_get,
  2924. .put = msm_pcm_channel_weight_put,
  2925. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2926. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  2927. },
  2928. {
  2929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2931. .name = "MultiMedia1 Channel1",
  2932. .info = msm_pcm_channel_input_be_info,
  2933. .get = msm_pcm_channel_input_be_get,
  2934. .put = msm_pcm_channel_input_be_put,
  2935. .private_value = (unsigned long)&(mm1_ch1_enum)
  2936. },
  2937. {
  2938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2939. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2940. .name = "MultiMedia1 Channel2",
  2941. .info = msm_pcm_channel_input_be_info,
  2942. .get = msm_pcm_channel_input_be_get,
  2943. .put = msm_pcm_channel_input_be_put,
  2944. .private_value = (unsigned long)&(mm1_ch2_enum)
  2945. },
  2946. {
  2947. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2948. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2949. .name = "MultiMedia1 Channel3",
  2950. .info = msm_pcm_channel_input_be_info,
  2951. .get = msm_pcm_channel_input_be_get,
  2952. .put = msm_pcm_channel_input_be_put,
  2953. .private_value = (unsigned long)&(mm1_ch3_enum)
  2954. },
  2955. {
  2956. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2957. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2958. .name = "MultiMedia1 Channel4",
  2959. .info = msm_pcm_channel_input_be_info,
  2960. .get = msm_pcm_channel_input_be_get,
  2961. .put = msm_pcm_channel_input_be_put,
  2962. .private_value = (unsigned long)&(mm1_ch4_enum)
  2963. },
  2964. {
  2965. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2966. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2967. .name = "MultiMedia1 Channel5",
  2968. .info = msm_pcm_channel_input_be_info,
  2969. .get = msm_pcm_channel_input_be_get,
  2970. .put = msm_pcm_channel_input_be_put,
  2971. .private_value = (unsigned long)&(mm1_ch5_enum)
  2972. },
  2973. {
  2974. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2975. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2976. .name = "MultiMedia1 Channel6",
  2977. .info = msm_pcm_channel_input_be_info,
  2978. .get = msm_pcm_channel_input_be_get,
  2979. .put = msm_pcm_channel_input_be_put,
  2980. .private_value = (unsigned long)&(mm1_ch6_enum)
  2981. },
  2982. {
  2983. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2984. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2985. .name = "MultiMedia1 Channel7",
  2986. .info = msm_pcm_channel_input_be_info,
  2987. .get = msm_pcm_channel_input_be_get,
  2988. .put = msm_pcm_channel_input_be_put,
  2989. .private_value = (unsigned long)&(mm1_ch7_enum)
  2990. },
  2991. {
  2992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2993. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2994. .name = "MultiMedia1 Channel8",
  2995. .info = msm_pcm_channel_input_be_info,
  2996. .get = msm_pcm_channel_input_be_get,
  2997. .put = msm_pcm_channel_input_be_put,
  2998. .private_value = (unsigned long)&(mm1_ch8_enum)
  2999. },
  3000. };
  3001. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3002. struct snd_ctl_elem_value *ucontrol)
  3003. {
  3004. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3005. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3006. ucontrol->value.integer.value[0]);
  3007. return 0;
  3008. }
  3009. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3010. struct snd_ctl_elem_value *ucontrol)
  3011. {
  3012. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3013. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3014. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3015. return 0;
  3016. }
  3017. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3018. "Four", "Five", "Six", "Seven", "Eight"};
  3019. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3020. struct snd_ctl_elem_value *ucontrol)
  3021. {
  3022. switch (msm_ec_ref_bit_format) {
  3023. case SNDRV_PCM_FORMAT_S24_LE:
  3024. ucontrol->value.integer.value[0] = 2;
  3025. break;
  3026. case SNDRV_PCM_FORMAT_S16_LE:
  3027. ucontrol->value.integer.value[0] = 1;
  3028. break;
  3029. default:
  3030. ucontrol->value.integer.value[0] = 0;
  3031. break;
  3032. }
  3033. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3034. __func__, ucontrol->value.integer.value[0]);
  3035. return 0;
  3036. }
  3037. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3038. struct snd_ctl_elem_value *ucontrol)
  3039. {
  3040. u16 bit_width = 0;
  3041. switch (ucontrol->value.integer.value[0]) {
  3042. case 2:
  3043. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3044. break;
  3045. case 1:
  3046. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3047. break;
  3048. default:
  3049. msm_ec_ref_bit_format = 0;
  3050. break;
  3051. }
  3052. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3053. bit_width = 16;
  3054. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3055. bit_width = 24;
  3056. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3057. __func__, msm_ec_ref_bit_format);
  3058. adm_ec_ref_rx_bit_width(bit_width);
  3059. return 0;
  3060. }
  3061. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3062. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3063. struct snd_ctl_elem_value *ucontrol)
  3064. {
  3065. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3066. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3067. __func__, ucontrol->value.integer.value[0]);
  3068. return 0;
  3069. }
  3070. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3071. struct snd_ctl_elem_value *ucontrol)
  3072. {
  3073. switch (ucontrol->value.integer.value[0]) {
  3074. case 0:
  3075. msm_ec_ref_sampling_rate = 0;
  3076. break;
  3077. case 1:
  3078. msm_ec_ref_sampling_rate = 8000;
  3079. break;
  3080. case 2:
  3081. msm_ec_ref_sampling_rate = 16000;
  3082. break;
  3083. case 3:
  3084. msm_ec_ref_sampling_rate = 32000;
  3085. break;
  3086. case 4:
  3087. msm_ec_ref_sampling_rate = 44100;
  3088. break;
  3089. case 5:
  3090. msm_ec_ref_sampling_rate = 48000;
  3091. break;
  3092. case 6:
  3093. msm_ec_ref_sampling_rate = 96000;
  3094. break;
  3095. case 7:
  3096. msm_ec_ref_sampling_rate = 192000;
  3097. break;
  3098. case 8:
  3099. msm_ec_ref_sampling_rate = 384000;
  3100. break;
  3101. default:
  3102. msm_ec_ref_sampling_rate = 48000;
  3103. break;
  3104. }
  3105. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3106. __func__, msm_ec_ref_sampling_rate);
  3107. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3108. return 0;
  3109. }
  3110. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3111. "32000", "44100", "48000", "96000", "192000", "384000"};
  3112. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3113. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3114. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3115. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3116. };
  3117. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3118. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3119. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3120. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3121. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3122. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3123. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3124. };
  3125. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3126. struct snd_ctl_elem_value *ucontrol)
  3127. {
  3128. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3129. mutex_lock(&routing_lock);
  3130. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3131. mutex_unlock(&routing_lock);
  3132. return 0;
  3133. }
  3134. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3135. struct snd_ctl_elem_value *ucontrol)
  3136. {
  3137. int ec_ref_port_id;
  3138. struct snd_soc_dapm_widget_list *wlist =
  3139. dapm_kcontrol_get_wlist(kcontrol);
  3140. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  3141. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3142. struct snd_soc_dapm_update *update = NULL;
  3143. mutex_lock(&routing_lock);
  3144. switch (ucontrol->value.integer.value[0]) {
  3145. case 0:
  3146. msm_route_ec_ref_rx = 0;
  3147. ec_ref_port_id = AFE_PORT_INVALID;
  3148. break;
  3149. case 1:
  3150. msm_route_ec_ref_rx = 1;
  3151. ec_ref_port_id = SLIMBUS_0_RX;
  3152. break;
  3153. case 2:
  3154. msm_route_ec_ref_rx = 2;
  3155. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3156. break;
  3157. case 3:
  3158. msm_route_ec_ref_rx = 3;
  3159. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3160. break;
  3161. case 4:
  3162. msm_route_ec_ref_rx = 4;
  3163. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3164. break;
  3165. case 5:
  3166. msm_route_ec_ref_rx = 5;
  3167. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3168. break;
  3169. case 6:
  3170. msm_route_ec_ref_rx = 6;
  3171. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3172. break;
  3173. case 7:
  3174. msm_route_ec_ref_rx = 7;
  3175. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3176. break;
  3177. case 9:
  3178. msm_route_ec_ref_rx = 9;
  3179. ec_ref_port_id = SLIMBUS_5_RX;
  3180. break;
  3181. case 10:
  3182. msm_route_ec_ref_rx = 10;
  3183. ec_ref_port_id = SLIMBUS_1_TX;
  3184. break;
  3185. case 11:
  3186. msm_route_ec_ref_rx = 11;
  3187. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3188. break;
  3189. case 12:
  3190. msm_route_ec_ref_rx = 12;
  3191. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3192. break;
  3193. case 13:
  3194. msm_route_ec_ref_rx = 13;
  3195. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3196. break;
  3197. case 14:
  3198. msm_route_ec_ref_rx = 14;
  3199. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3200. break;
  3201. case 15:
  3202. msm_route_ec_ref_rx = 15;
  3203. ec_ref_port_id = SLIMBUS_6_RX;
  3204. break;
  3205. case 16:
  3206. msm_route_ec_ref_rx = 16;
  3207. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3208. break;
  3209. case 17:
  3210. msm_route_ec_ref_rx = 17;
  3211. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3212. break;
  3213. case 18:
  3214. msm_route_ec_ref_rx = 18;
  3215. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3216. break;
  3217. case 19:
  3218. msm_route_ec_ref_rx = 19;
  3219. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3220. break;
  3221. case 20:
  3222. msm_route_ec_ref_rx = 20;
  3223. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3224. break;
  3225. case 21:
  3226. msm_route_ec_ref_rx = 21;
  3227. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3228. break;
  3229. case 22:
  3230. msm_route_ec_ref_rx = 22;
  3231. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3232. break;
  3233. default:
  3234. msm_route_ec_ref_rx = 0; /* NONE */
  3235. pr_err("%s EC ref rx %ld not valid\n",
  3236. __func__, ucontrol->value.integer.value[0]);
  3237. ec_ref_port_id = AFE_PORT_INVALID;
  3238. break;
  3239. }
  3240. adm_ec_ref_rx_id(ec_ref_port_id);
  3241. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3242. __func__, msm_route_ec_ref_rx);
  3243. mutex_unlock(&routing_lock);
  3244. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3245. msm_route_ec_ref_rx, e, update);
  3246. return 0;
  3247. }
  3248. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3249. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3250. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3251. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3252. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3253. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3254. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX"};
  3255. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3256. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3257. };
  3258. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3259. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3260. msm_route_ec_ref_rx_enum[0],
  3261. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3262. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3263. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3264. msm_route_ec_ref_rx_enum[0],
  3265. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3266. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3267. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3268. msm_route_ec_ref_rx_enum[0],
  3269. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3270. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3271. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3272. msm_route_ec_ref_rx_enum[0],
  3273. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3274. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3275. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3276. msm_route_ec_ref_rx_enum[0],
  3277. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3278. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3279. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3280. msm_route_ec_ref_rx_enum[0],
  3281. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3282. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3283. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3284. msm_route_ec_ref_rx_enum[0],
  3285. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3286. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3287. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3288. msm_route_ec_ref_rx_enum[0],
  3289. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3290. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3291. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3292. msm_route_ec_ref_rx_enum[0],
  3293. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3294. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3295. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3296. msm_route_ec_ref_rx_enum[0],
  3297. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3298. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3299. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3300. msm_route_ec_ref_rx_enum[0],
  3301. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3302. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3303. struct snd_ctl_elem_value *ucontrol)
  3304. {
  3305. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3306. mutex_lock(&routing_lock);
  3307. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3308. mutex_unlock(&routing_lock);
  3309. return 0;
  3310. }
  3311. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3312. struct snd_ctl_elem_value *ucontrol)
  3313. {
  3314. struct snd_soc_dapm_widget_list *wlist =
  3315. dapm_kcontrol_get_wlist(kcontrol);
  3316. struct snd_soc_dapm_widget *widget = wlist->widgets[0];
  3317. int mux = ucontrol->value.enumerated.item[0];
  3318. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3319. int ret = 1;
  3320. bool state = true;
  3321. uint16_t ext_ec_ref_port_id;
  3322. struct snd_soc_dapm_update *update = NULL;
  3323. if (mux >= e->items) {
  3324. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3325. return -EINVAL;
  3326. }
  3327. mutex_lock(&routing_lock);
  3328. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3329. switch (msm_route_ext_ec_ref) {
  3330. case EXT_EC_REF_PRI_MI2S_TX:
  3331. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3332. break;
  3333. case EXT_EC_REF_SEC_MI2S_TX:
  3334. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3335. break;
  3336. case EXT_EC_REF_TERT_MI2S_TX:
  3337. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3338. break;
  3339. case EXT_EC_REF_QUAT_MI2S_TX:
  3340. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3341. break;
  3342. case EXT_EC_REF_QUIN_MI2S_TX:
  3343. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3344. break;
  3345. case EXT_EC_REF_SLIM_1_TX:
  3346. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3347. break;
  3348. case EXT_EC_REF_NONE:
  3349. default:
  3350. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3351. state = false;
  3352. break;
  3353. }
  3354. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3355. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3356. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3357. mutex_unlock(&routing_lock);
  3358. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3359. update);
  3360. } else {
  3361. ret = -EINVAL;
  3362. mutex_unlock(&routing_lock);
  3363. }
  3364. return ret;
  3365. }
  3366. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3367. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3368. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3369. "SLIM_1_TX"};
  3370. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3371. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3372. };
  3373. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3374. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3375. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3376. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3377. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX,
  3378. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3379. msm_routing_put_audio_mixer),
  3380. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
  3381. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3382. msm_routing_put_audio_mixer),
  3383. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
  3384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3385. msm_routing_put_audio_mixer),
  3386. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
  3387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3388. msm_routing_put_audio_mixer),
  3389. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
  3390. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3391. msm_routing_put_audio_mixer),
  3392. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
  3393. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3394. msm_routing_put_audio_mixer),
  3395. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
  3396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3397. msm_routing_put_audio_mixer),
  3398. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
  3399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3400. msm_routing_put_audio_mixer),
  3401. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
  3402. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3403. msm_routing_put_audio_mixer),
  3404. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
  3405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3406. msm_routing_put_audio_mixer),
  3407. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
  3408. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3409. msm_routing_put_audio_mixer),
  3410. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
  3411. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3412. msm_routing_put_audio_mixer),
  3413. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
  3414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3415. msm_routing_put_audio_mixer),
  3416. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
  3417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3418. msm_routing_put_audio_mixer),
  3419. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
  3420. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3421. msm_routing_put_audio_mixer),
  3422. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
  3423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3424. msm_routing_put_audio_mixer),
  3425. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_I2S_RX,
  3426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3427. msm_routing_put_audio_mixer),
  3428. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_I2S_RX,
  3429. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3430. msm_routing_put_audio_mixer),
  3431. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_I2S_RX,
  3432. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3433. msm_routing_put_audio_mixer),
  3434. };
  3435. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3436. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX,
  3437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3438. msm_routing_put_audio_mixer),
  3439. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3441. msm_routing_put_audio_mixer),
  3442. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
  3443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3444. msm_routing_put_audio_mixer),
  3445. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3447. msm_routing_put_audio_mixer),
  3448. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
  3449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3450. msm_routing_put_audio_mixer),
  3451. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
  3452. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3453. msm_routing_put_audio_mixer),
  3454. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
  3455. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3456. msm_routing_put_audio_mixer),
  3457. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3459. msm_routing_put_audio_mixer),
  3460. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
  3461. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3462. msm_routing_put_audio_mixer),
  3463. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
  3464. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3465. msm_routing_put_audio_mixer),
  3466. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
  3467. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3468. msm_routing_put_audio_mixer),
  3469. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3471. msm_routing_put_audio_mixer),
  3472. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
  3473. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3474. msm_routing_put_audio_mixer),
  3475. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
  3476. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3477. msm_routing_put_audio_mixer),
  3478. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
  3479. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3480. msm_routing_put_audio_mixer),
  3481. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
  3482. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3483. msm_routing_put_audio_mixer),
  3484. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_I2S_RX,
  3485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3486. msm_routing_put_audio_mixer),
  3487. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_I2S_RX,
  3488. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3489. msm_routing_put_audio_mixer),
  3490. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_I2S_RX,
  3491. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3492. msm_routing_put_audio_mixer),
  3493. };
  3494. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3495. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3497. msm_routing_put_audio_mixer),
  3498. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
  3499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3500. msm_routing_put_audio_mixer),
  3501. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
  3502. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3503. msm_routing_put_audio_mixer),
  3504. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
  3505. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3506. msm_routing_put_audio_mixer),
  3507. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
  3508. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3509. msm_routing_put_audio_mixer),
  3510. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
  3511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3512. msm_routing_put_audio_mixer),
  3513. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
  3514. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3515. msm_routing_put_audio_mixer),
  3516. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
  3517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3518. msm_routing_put_audio_mixer),
  3519. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
  3520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3521. msm_routing_put_audio_mixer),
  3522. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
  3523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3524. msm_routing_put_audio_mixer),
  3525. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
  3526. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3527. msm_routing_put_audio_mixer),
  3528. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
  3529. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3530. msm_routing_put_audio_mixer),
  3531. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
  3532. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3533. msm_routing_put_audio_mixer),
  3534. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
  3535. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3536. msm_routing_put_audio_mixer),
  3537. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
  3538. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3539. msm_routing_put_audio_mixer),
  3540. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
  3541. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3542. msm_routing_put_audio_mixer),
  3543. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SPDIF_RX,
  3544. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3545. msm_routing_put_audio_mixer),
  3546. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SPDIF_RX,
  3547. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3548. msm_routing_put_audio_mixer),
  3549. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SPDIF_RX,
  3550. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3551. msm_routing_put_audio_mixer),
  3552. };
  3553. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3554. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3555. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3556. msm_routing_put_audio_mixer),
  3557. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3558. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3559. msm_routing_put_audio_mixer),
  3560. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3561. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3562. msm_routing_put_audio_mixer),
  3563. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3564. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3565. msm_routing_put_audio_mixer),
  3566. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3567. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3568. msm_routing_put_audio_mixer),
  3569. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3570. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3571. msm_routing_put_audio_mixer),
  3572. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3573. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3574. msm_routing_put_audio_mixer),
  3575. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3576. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3577. msm_routing_put_audio_mixer),
  3578. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3579. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3580. msm_routing_put_audio_mixer),
  3581. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3582. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3583. msm_routing_put_audio_mixer),
  3584. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3585. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3586. msm_routing_put_audio_mixer),
  3587. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3588. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3589. msm_routing_put_audio_mixer),
  3590. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3591. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3592. msm_routing_put_audio_mixer),
  3593. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3594. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3595. msm_routing_put_audio_mixer),
  3596. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3597. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3598. msm_routing_put_audio_mixer),
  3599. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3600. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3601. msm_routing_put_audio_mixer),
  3602. };
  3603. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3604. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3605. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3606. msm_routing_put_audio_mixer),
  3607. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3609. msm_routing_put_audio_mixer),
  3610. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3612. msm_routing_put_audio_mixer),
  3613. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3615. msm_routing_put_audio_mixer),
  3616. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3618. msm_routing_put_audio_mixer),
  3619. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3620. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3621. msm_routing_put_audio_mixer),
  3622. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3623. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3624. msm_routing_put_audio_mixer),
  3625. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3629. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3630. msm_routing_put_audio_mixer),
  3631. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3633. msm_routing_put_audio_mixer),
  3634. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3635. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3636. msm_routing_put_audio_mixer),
  3637. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3641. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3642. msm_routing_put_audio_mixer),
  3643. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3644. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3645. msm_routing_put_audio_mixer),
  3646. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3647. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3648. msm_routing_put_audio_mixer),
  3649. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3653. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3654. msm_routing_put_audio_mixer),
  3655. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3656. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3657. msm_routing_put_audio_mixer),
  3658. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3659. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3660. msm_routing_put_audio_mixer),
  3661. };
  3662. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3663. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3664. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3665. msm_routing_put_audio_mixer),
  3666. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3667. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3668. msm_routing_put_audio_mixer),
  3669. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3674. msm_routing_put_audio_mixer),
  3675. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3677. msm_routing_put_audio_mixer),
  3678. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3680. msm_routing_put_audio_mixer),
  3681. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3686. msm_routing_put_audio_mixer),
  3687. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3688. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3689. msm_routing_put_audio_mixer),
  3690. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3692. msm_routing_put_audio_mixer),
  3693. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3695. msm_routing_put_audio_mixer),
  3696. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3698. msm_routing_put_audio_mixer),
  3699. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3703. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3704. msm_routing_put_audio_mixer),
  3705. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3706. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3707. msm_routing_put_audio_mixer),
  3708. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3710. msm_routing_put_audio_mixer),
  3711. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3715. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3716. msm_routing_put_audio_mixer),
  3717. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3718. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3719. msm_routing_put_audio_mixer),
  3720. };
  3721. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3722. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX,
  3723. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3724. msm_routing_put_audio_mixer),
  3725. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
  3726. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3727. msm_routing_put_audio_mixer),
  3728. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
  3735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3736. msm_routing_put_audio_mixer),
  3737. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
  3738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3739. msm_routing_put_audio_mixer),
  3740. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
  3747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3748. msm_routing_put_audio_mixer),
  3749. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
  3750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3751. msm_routing_put_audio_mixer),
  3752. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
  3759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3760. msm_routing_put_audio_mixer),
  3761. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
  3762. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3763. msm_routing_put_audio_mixer),
  3764. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_MI2S_RX,
  3771. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3772. msm_routing_put_audio_mixer),
  3773. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_MI2S_RX,
  3774. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3775. msm_routing_put_audio_mixer),
  3776. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_MI2S_RX,
  3777. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3778. msm_routing_put_audio_mixer),
  3779. };
  3780. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  3781. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3791. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3792. msm_routing_put_audio_mixer),
  3793. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3801. msm_routing_put_audio_mixer),
  3802. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3812. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3813. msm_routing_put_audio_mixer),
  3814. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3821. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3822. msm_routing_put_audio_mixer),
  3823. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3824. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3825. msm_routing_put_audio_mixer),
  3826. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3833. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3834. msm_routing_put_audio_mixer),
  3835. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3836. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3837. msm_routing_put_audio_mixer),
  3838. };
  3839. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  3840. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3842. msm_routing_put_audio_mixer),
  3843. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3844. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3845. msm_routing_put_audio_mixer),
  3846. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3853. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3854. msm_routing_put_audio_mixer),
  3855. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3866. msm_routing_put_audio_mixer),
  3867. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3877. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3878. msm_routing_put_audio_mixer),
  3879. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3886. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3887. msm_routing_put_audio_mixer),
  3888. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3889. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3890. msm_routing_put_audio_mixer),
  3891. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3895. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3896. msm_routing_put_audio_mixer),
  3897. };
  3898. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  3899. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3907. msm_routing_put_audio_mixer),
  3908. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3915. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3916. msm_routing_put_audio_mixer),
  3917. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3918. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3919. msm_routing_put_audio_mixer),
  3920. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3927. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3928. msm_routing_put_audio_mixer),
  3929. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3940. msm_routing_put_audio_mixer),
  3941. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3948. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3949. msm_routing_put_audio_mixer),
  3950. };
  3951. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  3952. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. };
  3956. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  3957. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3961. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3962. msm_routing_put_audio_mixer),
  3963. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3964. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3965. msm_routing_put_audio_mixer),
  3966. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3968. msm_routing_put_audio_mixer),
  3969. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3976. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3977. msm_routing_put_audio_mixer),
  3978. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3979. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3980. msm_routing_put_audio_mixer),
  3981. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3988. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3989. msm_routing_put_audio_mixer),
  3990. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3991. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3992. msm_routing_put_audio_mixer),
  3993. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  3997. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3998. msm_routing_put_audio_mixer),
  3999. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4000. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4001. msm_routing_put_audio_mixer),
  4002. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4004. msm_routing_put_audio_mixer),
  4005. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4009. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4010. msm_routing_put_audio_mixer),
  4011. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4012. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4013. msm_routing_put_audio_mixer),
  4014. };
  4015. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4016. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4018. msm_routing_put_audio_mixer),
  4019. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4030. msm_routing_put_audio_mixer),
  4031. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4038. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4039. msm_routing_put_audio_mixer),
  4040. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4050. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4051. msm_routing_put_audio_mixer),
  4052. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4054. msm_routing_put_audio_mixer),
  4055. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4062. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4063. msm_routing_put_audio_mixer),
  4064. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4065. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4066. msm_routing_put_audio_mixer),
  4067. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4068. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4069. msm_routing_put_audio_mixer),
  4070. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4071. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4072. msm_routing_put_audio_mixer),
  4073. };
  4074. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4075. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4115. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4116. msm_routing_put_audio_mixer),
  4117. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. };
  4124. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4125. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4133. msm_routing_put_audio_mixer),
  4134. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4165. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4166. msm_routing_put_audio_mixer),
  4167. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4168. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4169. msm_routing_put_audio_mixer),
  4170. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. };
  4174. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4175. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
  4185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4186. msm_routing_put_audio_mixer),
  4187. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
  4197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4198. msm_routing_put_audio_mixer),
  4199. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
  4206. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4207. msm_routing_put_audio_mixer),
  4208. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
  4209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4210. msm_routing_put_audio_mixer),
  4211. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
  4218. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4219. msm_routing_put_audio_mixer),
  4220. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_HDMI_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_HDMI_RX,
  4227. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4228. msm_routing_put_audio_mixer),
  4229. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_HDMI_RX,
  4230. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4231. msm_routing_put_audio_mixer),
  4232. };
  4233. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4234. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4242. msm_routing_put_audio_mixer),
  4243. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4260. msm_routing_put_audio_mixer),
  4261. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4271. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4272. msm_routing_put_audio_mixer),
  4273. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. };
  4283. /* incall music delivery mixer */
  4284. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4285. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4292. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4293. msm_routing_put_audio_mixer),
  4294. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4296. msm_routing_put_audio_mixer),
  4297. };
  4298. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4299. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4300. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4301. msm_routing_put_audio_mixer),
  4302. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. };
  4312. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4313. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4320. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4321. msm_routing_put_audio_mixer),
  4322. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4323. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4324. msm_routing_put_audio_mixer),
  4325. };
  4326. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4327. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4328. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4329. msm_routing_put_audio_mixer),
  4330. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4331. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4332. msm_routing_put_audio_mixer),
  4333. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4338. msm_routing_put_audio_mixer),
  4339. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4340. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4341. msm_routing_put_audio_mixer),
  4342. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4349. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4350. msm_routing_put_audio_mixer),
  4351. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4352. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4353. msm_routing_put_audio_mixer),
  4354. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4361. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4362. msm_routing_put_audio_mixer),
  4363. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4374. msm_routing_put_audio_mixer),
  4375. };
  4376. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4377. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4378. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4379. msm_routing_put_audio_mixer),
  4380. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4381. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4382. msm_routing_put_audio_mixer),
  4383. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4418. msm_routing_put_audio_mixer),
  4419. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. };
  4426. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  4427. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_USB_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_USB_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_USB_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_USB_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_USB_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_USB_RX,
  4443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4444. msm_routing_put_audio_mixer),
  4445. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_USB_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_USB_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_USB_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_USB_RX,
  4455. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4456. msm_routing_put_audio_mixer),
  4457. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_USB_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_USB_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_USB_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_USB_RX,
  4467. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4468. msm_routing_put_audio_mixer),
  4469. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_USB_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_USB_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. };
  4476. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  4477. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4478. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4479. msm_routing_put_audio_mixer),
  4480. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4488. msm_routing_put_audio_mixer),
  4489. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4500. msm_routing_put_audio_mixer),
  4501. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4511. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4512. msm_routing_put_audio_mixer),
  4513. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4529. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4530. msm_routing_put_audio_mixer),
  4531. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. };
  4535. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  4536. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4561. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4562. msm_routing_put_audio_mixer),
  4563. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. };
  4585. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  4586. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
  4605. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4606. msm_routing_put_audio_mixer),
  4607. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_FM_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_FM_RX,
  4638. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4639. msm_routing_put_audio_mixer),
  4640. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_FM_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. };
  4644. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  4645. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
  4655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4656. msm_routing_put_audio_mixer),
  4657. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
  4658. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4659. msm_routing_put_audio_mixer),
  4660. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
  4667. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4668. msm_routing_put_audio_mixer),
  4669. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
  4679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4680. msm_routing_put_audio_mixer),
  4681. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
  4691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4692. msm_routing_put_audio_mixer),
  4693. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AFE_PCM_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AFE_PCM_RX,
  4697. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4698. msm_routing_put_audio_mixer),
  4699. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AFE_PCM_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. };
  4703. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  4704. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
  4723. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4724. msm_routing_put_audio_mixer),
  4725. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
  4747. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4748. msm_routing_put_audio_mixer),
  4749. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AUXPCM_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AUXPCM_RX,
  4756. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4757. msm_routing_put_audio_mixer),
  4758. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AUXPCM_RX,
  4759. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4760. msm_routing_put_audio_mixer),
  4761. };
  4762. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  4763. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4780. msm_routing_put_audio_mixer),
  4781. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4792. msm_routing_put_audio_mixer),
  4793. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. };
  4821. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  4822. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4865. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4866. msm_routing_put_audio_mixer),
  4867. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. };
  4871. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  4872. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4874. msm_routing_put_audio_mixer),
  4875. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4916. msm_routing_put_audio_mixer),
  4917. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. };
  4921. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  4922. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4924. msm_routing_put_audio_mixer),
  4925. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4936. msm_routing_put_audio_mixer),
  4937. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4939. msm_routing_put_audio_mixer),
  4940. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4965. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4966. msm_routing_put_audio_mixer),
  4967. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. };
  4971. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  4972. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  4997. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4998. msm_routing_put_audio_mixer),
  4999. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5012. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5013. msm_routing_put_audio_mixer),
  5014. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5015. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5016. msm_routing_put_audio_mixer),
  5017. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. };
  5021. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  5022. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5047. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5048. msm_routing_put_audio_mixer),
  5049. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5059. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5060. msm_routing_put_audio_mixer),
  5061. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. };
  5071. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5072. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5091. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5092. msm_routing_put_audio_mixer),
  5093. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5118. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5119. msm_routing_put_audio_mixer),
  5120. };
  5121. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  5122. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. };
  5171. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  5172. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5179. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5180. msm_routing_put_audio_mixer),
  5181. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5188. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5189. msm_routing_put_audio_mixer),
  5190. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5191. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5192. msm_routing_put_audio_mixer),
  5193. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5200. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5201. msm_routing_put_audio_mixer),
  5202. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5203. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5204. msm_routing_put_audio_mixer),
  5205. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5212. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5213. msm_routing_put_audio_mixer),
  5214. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5215. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5216. msm_routing_put_audio_mixer),
  5217. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. };
  5221. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  5222. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5223. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5224. msm_routing_put_audio_mixer),
  5225. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5251. msm_routing_put_audio_mixer),
  5252. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5265. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5266. msm_routing_put_audio_mixer),
  5267. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. };
  5271. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  5272. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5274. msm_routing_put_audio_mixer),
  5275. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5304. msm_routing_put_audio_mixer),
  5305. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5315. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5316. msm_routing_put_audio_mixer),
  5317. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. };
  5321. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  5322. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5324. msm_routing_put_audio_mixer),
  5325. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5335. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5336. msm_routing_put_audio_mixer),
  5337. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. };
  5371. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  5372. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5398. msm_routing_put_audio_mixer),
  5399. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. };
  5421. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  5422. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. };
  5471. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  5472. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. };
  5521. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  5522. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. };
  5571. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  5572. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. };
  5621. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  5622. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. };
  5671. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  5672. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. };
  5721. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  5722. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. };
  5774. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  5775. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. };
  5824. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  5825. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. };
  5877. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  5878. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. };
  5930. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  5931. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. };
  5983. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  5984. SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. };
  6105. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  6106. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. };
  6197. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  6198. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. };
  6286. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  6287. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. };
  6375. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  6376. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. };
  6479. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  6480. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. };
  6568. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  6569. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. };
  6663. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  6664. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. };
  6713. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  6714. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. };
  6736. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  6737. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. };
  6762. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  6763. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. };
  6785. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  6786. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. };
  6847. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  6848. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_PRI_I2S_RX,
  6849. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  6850. msm_routing_put_voice_mixer),
  6851. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_PRI_I2S_RX,
  6852. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  6853. msm_routing_put_voice_mixer),
  6854. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
  6855. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  6856. msm_routing_put_voice_mixer),
  6857. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_PRI_I2S_RX,
  6858. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  6859. msm_routing_put_voice_mixer),
  6860. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_PRI_I2S_RX,
  6861. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  6862. msm_routing_put_voice_mixer),
  6863. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
  6864. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  6865. msm_routing_put_voice_mixer),
  6866. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
  6867. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  6868. msm_routing_put_voice_mixer),
  6869. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
  6870. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  6871. msm_routing_put_voice_mixer),
  6872. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
  6873. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  6874. msm_routing_put_voice_mixer),
  6875. };
  6876. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  6877. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SEC_I2S_RX,
  6878. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  6879. msm_routing_put_voice_mixer),
  6880. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SEC_I2S_RX,
  6881. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  6882. msm_routing_put_voice_mixer),
  6883. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
  6884. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  6885. msm_routing_put_voice_mixer),
  6886. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SEC_I2S_RX,
  6887. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  6888. msm_routing_put_voice_mixer),
  6889. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SEC_I2S_RX,
  6890. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  6891. msm_routing_put_voice_mixer),
  6892. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
  6893. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  6894. msm_routing_put_voice_mixer),
  6895. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
  6896. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  6897. msm_routing_put_voice_mixer),
  6898. };
  6899. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  6900. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6901. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  6902. msm_routing_put_voice_mixer),
  6903. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6904. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  6905. msm_routing_put_voice_mixer),
  6906. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6907. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  6908. msm_routing_put_voice_mixer),
  6909. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6910. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  6911. msm_routing_put_voice_mixer),
  6912. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6913. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  6914. msm_routing_put_voice_mixer),
  6915. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6916. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  6917. msm_routing_put_voice_mixer),
  6918. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6919. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  6920. msm_routing_put_voice_mixer),
  6921. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6922. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  6923. msm_routing_put_voice_mixer),
  6924. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6925. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  6926. msm_routing_put_voice_mixer),
  6927. };
  6928. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  6929. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6930. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  6931. msm_routing_put_voice_mixer),
  6932. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6933. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  6934. msm_routing_put_voice_mixer),
  6935. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6936. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  6937. msm_routing_put_voice_mixer),
  6938. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6939. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  6940. msm_routing_put_voice_stub_mixer),
  6941. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6942. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  6943. msm_routing_put_voice_stub_mixer),
  6944. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6945. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  6946. msm_routing_put_voice_mixer),
  6947. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6948. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  6949. msm_routing_put_voice_stub_mixer),
  6950. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6951. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  6952. msm_routing_put_voice_mixer),
  6953. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6954. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  6955. msm_routing_put_voice_mixer),
  6956. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6957. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  6958. msm_routing_put_voice_mixer),
  6959. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6960. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  6961. msm_routing_put_voice_mixer),
  6962. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6963. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  6964. msm_routing_put_voice_mixer),
  6965. };
  6966. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  6967. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6968. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  6969. msm_routing_put_voice_mixer),
  6970. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6971. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  6972. msm_routing_put_voice_mixer),
  6973. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6974. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  6975. msm_routing_put_voice_mixer),
  6976. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6977. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  6978. msm_routing_put_voice_stub_mixer),
  6979. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6980. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  6981. msm_routing_put_voice_stub_mixer),
  6982. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6983. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  6984. msm_routing_put_voice_mixer),
  6985. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6986. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  6987. msm_routing_put_voice_stub_mixer),
  6988. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6989. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  6990. msm_routing_put_voice_mixer),
  6991. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6992. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  6993. msm_routing_put_voice_mixer),
  6994. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6995. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  6996. msm_routing_put_voice_mixer),
  6997. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6998. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  6999. msm_routing_put_voice_mixer),
  7000. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7001. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7002. msm_routing_put_voice_mixer),
  7003. };
  7004. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  7005. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_USB_RX,
  7006. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7007. msm_routing_put_voice_mixer),
  7008. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_USB_RX,
  7009. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7010. msm_routing_put_voice_mixer),
  7011. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_USB_RX,
  7012. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7013. msm_routing_put_voice_mixer),
  7014. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_USB_RX,
  7015. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7016. msm_routing_put_voice_stub_mixer),
  7017. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_USB_RX,
  7018. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7019. msm_routing_put_voice_stub_mixer),
  7020. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_USB_RX,
  7021. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7022. msm_routing_put_voice_mixer),
  7023. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_USB_RX,
  7024. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7025. msm_routing_put_voice_stub_mixer),
  7026. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_USB_RX,
  7027. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7028. msm_routing_put_voice_mixer),
  7029. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_USB_RX,
  7030. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7031. msm_routing_put_voice_mixer),
  7032. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_USB_RX,
  7033. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7034. msm_routing_put_voice_mixer),
  7035. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_USB_RX,
  7036. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7037. msm_routing_put_voice_mixer),
  7038. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_USB_RX,
  7039. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7040. msm_routing_put_voice_mixer),
  7041. };
  7042. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  7043. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7044. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7045. msm_routing_put_voice_mixer),
  7046. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7047. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7048. msm_routing_put_voice_mixer),
  7049. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7051. msm_routing_put_voice_mixer),
  7052. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7053. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7054. msm_routing_put_voice_stub_mixer),
  7055. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7056. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7057. msm_routing_put_voice_stub_mixer),
  7058. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7059. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7060. msm_routing_put_voice_mixer),
  7061. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7062. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7063. msm_routing_put_voice_mixer),
  7064. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7065. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7066. msm_routing_put_voice_mixer),
  7067. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7068. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7069. msm_routing_put_voice_mixer),
  7070. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7071. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7072. msm_routing_put_voice_mixer),
  7073. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7074. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7075. msm_routing_put_voice_mixer),
  7076. };
  7077. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  7078. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_MI2S_RX,
  7079. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7080. msm_routing_put_voice_mixer),
  7081. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_MI2S_RX,
  7082. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7083. msm_routing_put_voice_mixer),
  7084. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
  7085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7086. msm_routing_put_voice_mixer),
  7087. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_MI2S_RX,
  7088. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7089. msm_routing_put_voice_stub_mixer),
  7090. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_MI2S_RX,
  7091. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7092. msm_routing_put_voice_mixer),
  7093. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_MI2S_RX,
  7094. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7095. msm_routing_put_voice_mixer),
  7096. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
  7097. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7098. msm_routing_put_voice_mixer),
  7099. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
  7100. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7101. msm_routing_put_voice_mixer),
  7102. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
  7103. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7104. msm_routing_put_voice_mixer),
  7105. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
  7106. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7107. msm_routing_put_voice_mixer),
  7108. };
  7109. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  7110. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7111. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7112. msm_routing_put_voice_mixer),
  7113. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7114. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7115. msm_routing_put_voice_mixer),
  7116. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7118. msm_routing_put_voice_mixer),
  7119. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7120. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7121. msm_routing_put_voice_stub_mixer),
  7122. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7123. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7124. msm_routing_put_voice_stub_mixer),
  7125. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7126. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7127. msm_routing_put_voice_mixer),
  7128. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7129. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7130. msm_routing_put_voice_mixer),
  7131. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7132. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7133. msm_routing_put_voice_mixer),
  7134. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7135. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7136. msm_routing_put_voice_mixer),
  7137. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7138. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7139. msm_routing_put_voice_mixer),
  7140. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7141. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7142. msm_routing_put_voice_mixer),
  7143. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7144. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7145. msm_routing_put_voice_mixer),
  7146. };
  7147. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  7148. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7149. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7150. msm_routing_put_voice_mixer),
  7151. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7152. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7153. msm_routing_put_voice_mixer),
  7154. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7155. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7156. msm_routing_put_voice_mixer),
  7157. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7158. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7159. msm_routing_put_voice_mixer),
  7160. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7161. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7162. msm_routing_put_voice_mixer),
  7163. };
  7164. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  7165. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7166. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7167. msm_routing_put_voice_mixer),
  7168. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7169. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7170. msm_routing_put_voice_mixer),
  7171. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7172. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7173. msm_routing_put_voice_mixer),
  7174. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7175. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7176. msm_routing_put_voice_mixer),
  7177. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7178. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7179. msm_routing_put_voice_mixer),
  7180. };
  7181. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  7182. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7183. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7184. msm_routing_put_voice_mixer),
  7185. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7186. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7187. msm_routing_put_voice_mixer),
  7188. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7189. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7190. msm_routing_put_voice_mixer),
  7191. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7192. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7193. msm_routing_put_voice_stub_mixer),
  7194. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7195. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7196. msm_routing_put_voice_stub_mixer),
  7197. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7198. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7199. msm_routing_put_voice_mixer),
  7200. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7201. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7202. msm_routing_put_voice_mixer),
  7203. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7204. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7205. msm_routing_put_voice_mixer),
  7206. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7207. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7208. msm_routing_put_voice_mixer),
  7209. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7210. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7211. msm_routing_put_voice_mixer),
  7212. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7213. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7214. msm_routing_put_voice_mixer),
  7215. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7216. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7217. msm_routing_put_voice_mixer),
  7218. };
  7219. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  7220. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7221. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7222. msm_routing_put_voice_mixer),
  7223. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7224. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7225. msm_routing_put_voice_mixer),
  7226. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7227. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7228. msm_routing_put_voice_mixer),
  7229. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7230. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7231. msm_routing_put_voice_stub_mixer),
  7232. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7233. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7234. msm_routing_put_voice_stub_mixer),
  7235. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7236. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7237. msm_routing_put_voice_mixer),
  7238. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7239. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7240. msm_routing_put_voice_mixer),
  7241. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7242. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7243. msm_routing_put_voice_mixer),
  7244. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7245. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7246. msm_routing_put_voice_mixer),
  7247. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7248. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7249. msm_routing_put_voice_mixer),
  7250. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7251. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7252. msm_routing_put_voice_mixer),
  7253. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7254. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7255. msm_routing_put_voice_mixer),
  7256. };
  7257. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  7258. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7259. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7260. msm_routing_put_voice_mixer),
  7261. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7262. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7263. msm_routing_put_voice_mixer),
  7264. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7265. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7266. msm_routing_put_voice_mixer),
  7267. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7268. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7269. msm_routing_put_voice_stub_mixer),
  7270. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7271. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7272. msm_routing_put_voice_stub_mixer),
  7273. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7274. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7275. msm_routing_put_voice_mixer),
  7276. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7277. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7278. msm_routing_put_voice_mixer),
  7279. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7280. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7281. msm_routing_put_voice_mixer),
  7282. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7283. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7284. msm_routing_put_voice_mixer),
  7285. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7287. msm_routing_put_voice_mixer),
  7288. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7289. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7290. msm_routing_put_voice_mixer),
  7291. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7292. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7293. msm_routing_put_voice_mixer),
  7294. };
  7295. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  7296. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_AFE_PCM_RX,
  7297. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7298. msm_routing_put_voice_mixer),
  7299. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7300. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7301. msm_routing_put_voice_mixer),
  7302. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
  7303. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7304. msm_routing_put_voice_mixer),
  7305. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7306. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7307. msm_routing_put_voice_stub_mixer),
  7308. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7309. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7310. msm_routing_put_voice_stub_mixer),
  7311. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_AFE_PCM_RX,
  7312. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7313. msm_routing_put_voice_mixer),
  7314. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7315. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7316. msm_routing_put_voice_stub_mixer),
  7317. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_AFE_PCM_RX,
  7318. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7319. msm_routing_put_voice_mixer),
  7320. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
  7321. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7322. msm_routing_put_voice_mixer),
  7323. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
  7324. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7325. msm_routing_put_voice_mixer),
  7326. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
  7327. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7328. msm_routing_put_voice_mixer),
  7329. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7330. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7331. msm_routing_put_voice_mixer),
  7332. };
  7333. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  7334. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_AUXPCM_RX,
  7335. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7336. msm_routing_put_voice_mixer),
  7337. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_AUXPCM_RX,
  7338. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7339. msm_routing_put_voice_mixer),
  7340. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
  7341. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7342. msm_routing_put_voice_mixer),
  7343. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  7344. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7345. msm_routing_put_voice_stub_mixer),
  7346. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  7347. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7348. msm_routing_put_voice_stub_mixer),
  7349. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_AUXPCM_RX,
  7350. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7351. msm_routing_put_voice_mixer),
  7352. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  7353. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7354. msm_routing_put_voice_stub_mixer),
  7355. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_AUXPCM_RX,
  7356. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7357. msm_routing_put_voice_mixer),
  7358. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
  7359. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7360. msm_routing_put_voice_mixer),
  7361. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
  7362. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7363. msm_routing_put_voice_mixer),
  7364. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
  7365. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7366. msm_routing_put_voice_mixer),
  7367. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
  7368. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7369. msm_routing_put_voice_mixer),
  7370. };
  7371. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  7372. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7373. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7374. msm_routing_put_voice_mixer),
  7375. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7376. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7377. msm_routing_put_voice_mixer),
  7378. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7379. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7380. msm_routing_put_voice_mixer),
  7381. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7382. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7383. msm_routing_put_voice_stub_mixer),
  7384. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7385. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7386. msm_routing_put_voice_mixer),
  7387. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7388. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7389. msm_routing_put_voice_mixer),
  7390. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7391. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7392. msm_routing_put_voice_mixer),
  7393. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7394. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7395. msm_routing_put_voice_mixer),
  7396. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7397. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7398. msm_routing_put_voice_mixer),
  7399. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7400. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7401. msm_routing_put_voice_mixer),
  7402. };
  7403. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  7404. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7405. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7406. msm_routing_put_voice_mixer),
  7407. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7408. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7409. msm_routing_put_voice_mixer),
  7410. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7411. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7412. msm_routing_put_voice_mixer),
  7413. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7414. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7415. msm_routing_put_voice_stub_mixer),
  7416. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7417. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7418. msm_routing_put_voice_mixer),
  7419. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7420. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7421. msm_routing_put_voice_mixer),
  7422. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7423. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7424. msm_routing_put_voice_mixer),
  7425. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7426. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7427. msm_routing_put_voice_mixer),
  7428. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7429. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7430. msm_routing_put_voice_mixer),
  7431. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7432. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7433. msm_routing_put_voice_mixer),
  7434. };
  7435. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  7436. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7437. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7438. msm_routing_put_voice_mixer),
  7439. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7440. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7441. msm_routing_put_voice_mixer),
  7442. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7443. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7444. msm_routing_put_voice_mixer),
  7445. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7446. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7447. msm_routing_put_voice_stub_mixer),
  7448. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7449. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7450. msm_routing_put_voice_mixer),
  7451. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7452. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7453. msm_routing_put_voice_mixer),
  7454. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7455. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7456. msm_routing_put_voice_mixer),
  7457. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7458. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7459. msm_routing_put_voice_mixer),
  7460. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7461. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7462. msm_routing_put_voice_mixer),
  7463. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7464. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7465. msm_routing_put_voice_mixer),
  7466. };
  7467. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  7468. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_HDMI_RX,
  7469. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7470. msm_routing_put_voice_mixer),
  7471. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_HDMI_RX,
  7472. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7473. msm_routing_put_voice_mixer),
  7474. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
  7475. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7476. msm_routing_put_voice_mixer),
  7477. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_HDMI_RX,
  7478. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7479. msm_routing_put_voice_mixer),
  7480. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_HDMI_RX,
  7481. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7482. msm_routing_put_voice_mixer),
  7483. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_HDMI_RX,
  7484. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7485. msm_routing_put_voice_stub_mixer),
  7486. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_HDMI_RX,
  7487. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7488. msm_routing_put_voice_stub_mixer),
  7489. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_HDMI_RX,
  7490. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7491. msm_routing_put_voice_stub_mixer),
  7492. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
  7493. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7494. msm_routing_put_voice_mixer),
  7495. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
  7496. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7497. msm_routing_put_voice_mixer),
  7498. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
  7499. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7500. msm_routing_put_voice_mixer),
  7501. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
  7502. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7503. msm_routing_put_voice_mixer),
  7504. };
  7505. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  7506. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7507. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7508. msm_routing_put_voice_mixer),
  7509. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7510. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7511. msm_routing_put_voice_mixer),
  7512. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7513. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7514. msm_routing_put_voice_mixer),
  7515. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7516. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7517. msm_routing_put_voice_stub_mixer),
  7518. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7519. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7520. msm_routing_put_voice_stub_mixer),
  7521. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7522. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7523. msm_routing_put_voice_mixer),
  7524. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7525. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7526. msm_routing_put_voice_stub_mixer),
  7527. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7528. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7529. msm_routing_put_voice_mixer),
  7530. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7531. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7532. msm_routing_put_voice_mixer),
  7533. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7534. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7535. msm_routing_put_voice_mixer),
  7536. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7537. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7538. msm_routing_put_voice_mixer),
  7539. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7540. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7541. msm_routing_put_voice_mixer),
  7542. };
  7543. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  7544. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7545. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7546. msm_routing_put_voice_mixer),
  7547. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7548. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7549. msm_routing_put_voice_mixer),
  7550. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7551. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7552. msm_routing_put_voice_mixer),
  7553. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7554. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7555. msm_routing_put_voice_stub_mixer),
  7556. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7557. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7558. msm_routing_put_voice_stub_mixer),
  7559. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7560. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7561. msm_routing_put_voice_mixer),
  7562. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7563. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7564. msm_routing_put_voice_stub_mixer),
  7565. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7566. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7567. msm_routing_put_voice_mixer),
  7568. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7569. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7570. msm_routing_put_voice_mixer),
  7571. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7572. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7573. msm_routing_put_voice_mixer),
  7574. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7575. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7576. msm_routing_put_voice_mixer),
  7577. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7578. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7579. msm_routing_put_voice_mixer),
  7580. };
  7581. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  7582. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7583. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7584. msm_routing_put_voice_mixer),
  7585. };
  7586. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  7587. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  7588. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7589. msm_routing_put_voice_stub_mixer),
  7590. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  7591. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7592. msm_routing_put_voice_stub_mixer),
  7593. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  7594. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7595. msm_routing_put_voice_stub_mixer),
  7596. };
  7597. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  7598. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7599. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7600. msm_routing_put_voice_stub_mixer),
  7601. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7602. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7603. msm_routing_put_voice_stub_mixer),
  7604. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7605. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7606. msm_routing_put_voice_stub_mixer),
  7607. };
  7608. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  7609. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7610. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7611. msm_routing_put_voice_stub_mixer),
  7612. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7613. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7614. msm_routing_put_voice_stub_mixer),
  7615. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7616. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7617. msm_routing_put_voice_stub_mixer),
  7618. };
  7619. static const struct snd_kcontrol_new tx_voice_mixer_controls[] = {
  7620. SOC_SINGLE_EXT("PRI_TX_Voice", MSM_BACKEND_DAI_PRI_I2S_TX,
  7621. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7622. msm_routing_put_voice_mixer),
  7623. SOC_SINGLE_EXT("MI2S_TX_Voice", MSM_BACKEND_DAI_MI2S_TX,
  7624. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7625. msm_routing_put_voice_mixer),
  7626. SOC_SINGLE_EXT("SLIM_0_TX_Voice", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7627. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7628. msm_routing_put_voice_mixer),
  7629. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voice",
  7630. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_CS_VOICE, 1, 0,
  7631. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7632. SOC_SINGLE_EXT("AFE_PCM_TX_Voice", MSM_BACKEND_DAI_AFE_PCM_TX,
  7633. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7634. msm_routing_put_voice_mixer),
  7635. SOC_SINGLE_EXT("AUX_PCM_TX_Voice", MSM_BACKEND_DAI_AUXPCM_TX,
  7636. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7637. msm_routing_put_voice_mixer),
  7638. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voice", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7639. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7640. msm_routing_put_voice_mixer),
  7641. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voice", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7642. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7643. msm_routing_put_voice_mixer),
  7644. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voice", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7645. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7646. msm_routing_put_voice_mixer),
  7647. SOC_SINGLE_EXT("PRI_MI2S_TX_Voice", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7648. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7649. msm_routing_put_voice_mixer),
  7650. SOC_SINGLE_EXT("SEC_MI2S_TX_Voice", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7651. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7652. msm_routing_put_voice_mixer),
  7653. SOC_SINGLE_EXT("TERT_MI2S_TX_Voice", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7654. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7655. msm_routing_put_voice_mixer),
  7656. SOC_SINGLE_EXT("SLIM_7_TX_Voice", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7657. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7658. msm_routing_put_voice_mixer),
  7659. SOC_SINGLE_EXT("SLIM_8_TX_Voice", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7660. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7661. msm_routing_put_voice_mixer),
  7662. SOC_SINGLE_EXT("USB_AUDIO_TX_Voice", MSM_BACKEND_DAI_USB_TX,
  7663. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7664. msm_routing_put_voice_mixer),
  7665. };
  7666. static const struct snd_kcontrol_new tx_voice2_mixer_controls[] = {
  7667. SOC_SINGLE_EXT("PRI_TX_Voice2", MSM_BACKEND_DAI_PRI_I2S_TX,
  7668. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7669. msm_routing_put_voice_mixer),
  7670. SOC_SINGLE_EXT("MI2S_TX_Voice2", MSM_BACKEND_DAI_MI2S_TX,
  7671. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7672. msm_routing_put_voice_mixer),
  7673. SOC_SINGLE_EXT("SLIM_0_TX_Voice2", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7674. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7675. msm_routing_put_voice_mixer),
  7676. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voice2",
  7677. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICE2, 1, 0,
  7678. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7679. SOC_SINGLE_EXT("AFE_PCM_TX_Voice2", MSM_BACKEND_DAI_AFE_PCM_TX,
  7680. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7681. msm_routing_put_voice_mixer),
  7682. SOC_SINGLE_EXT("AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_AUXPCM_TX,
  7683. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7684. msm_routing_put_voice_mixer),
  7685. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7686. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7687. msm_routing_put_voice_mixer),
  7688. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7689. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7690. msm_routing_put_voice_mixer),
  7691. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7692. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7693. msm_routing_put_voice_mixer),
  7694. SOC_SINGLE_EXT("PRI_MI2S_TX_Voice2", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7695. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7696. msm_routing_put_voice_mixer),
  7697. SOC_SINGLE_EXT("TERT_MI2S_TX_Voice2", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7698. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7699. msm_routing_put_voice_mixer),
  7700. SOC_SINGLE_EXT("SLIM_7_TX_Voice2", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7701. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7702. msm_routing_put_voice_mixer),
  7703. SOC_SINGLE_EXT("SLIM_8_TX_Voice2", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7704. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7705. msm_routing_put_voice_mixer),
  7706. SOC_SINGLE_EXT("USB_AUDIO_TX_Voice2", MSM_BACKEND_DAI_USB_TX,
  7707. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7708. msm_routing_put_voice_mixer),
  7709. };
  7710. static const struct snd_kcontrol_new tx_volte_mixer_controls[] = {
  7711. SOC_SINGLE_EXT("PRI_TX_VoLTE", MSM_BACKEND_DAI_PRI_I2S_TX,
  7712. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7713. msm_routing_put_voice_mixer),
  7714. SOC_SINGLE_EXT("SLIM_0_TX_VoLTE", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7715. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7716. msm_routing_put_voice_mixer),
  7717. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_VoLTE",
  7718. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOLTE, 1, 0,
  7719. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7720. SOC_SINGLE_EXT("AFE_PCM_TX_VoLTE", MSM_BACKEND_DAI_AFE_PCM_TX,
  7721. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7722. msm_routing_put_voice_mixer),
  7723. SOC_SINGLE_EXT("AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_AUXPCM_TX,
  7724. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7725. msm_routing_put_voice_mixer),
  7726. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7727. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7728. msm_routing_put_voice_mixer),
  7729. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7730. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7731. msm_routing_put_voice_mixer),
  7732. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7733. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7734. msm_routing_put_voice_mixer),
  7735. SOC_SINGLE_EXT("MI2S_TX_VoLTE", MSM_BACKEND_DAI_MI2S_TX,
  7736. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7737. msm_routing_put_voice_mixer),
  7738. SOC_SINGLE_EXT("PRI_MI2S_TX_VoLTE", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7739. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7740. msm_routing_put_voice_mixer),
  7741. SOC_SINGLE_EXT("TERT_MI2S_TX_VoLTE", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7742. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7743. msm_routing_put_voice_mixer),
  7744. SOC_SINGLE_EXT("SLIM_7_TX_VoLTE", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7745. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7746. msm_routing_put_voice_mixer),
  7747. SOC_SINGLE_EXT("SLIM_8_TX_VoLTE", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7748. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7749. msm_routing_put_voice_mixer),
  7750. SOC_SINGLE_EXT("USB_AUDIO_TX_VoLTE", MSM_BACKEND_DAI_USB_TX,
  7751. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7752. msm_routing_put_voice_mixer),
  7753. };
  7754. static const struct snd_kcontrol_new tx_vowlan_mixer_controls[] = {
  7755. SOC_SINGLE_EXT("PRI_TX_VoWLAN", MSM_BACKEND_DAI_PRI_I2S_TX,
  7756. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7757. msm_routing_put_voice_mixer),
  7758. SOC_SINGLE_EXT("SLIM_0_TX_VoWLAN", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7759. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7760. msm_routing_put_voice_mixer),
  7761. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_VoWLAN",
  7762. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOWLAN, 1, 0,
  7763. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7764. SOC_SINGLE_EXT("AFE_PCM_TX_VoWLAN", MSM_BACKEND_DAI_AFE_PCM_TX,
  7765. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7766. msm_routing_put_voice_mixer),
  7767. SOC_SINGLE_EXT("AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_AUXPCM_TX,
  7768. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7769. msm_routing_put_voice_mixer),
  7770. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7771. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7772. msm_routing_put_voice_mixer),
  7773. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7774. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7775. msm_routing_put_voice_mixer),
  7776. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7777. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7778. msm_routing_put_voice_mixer),
  7779. SOC_SINGLE_EXT("MI2S_TX_VoWLAN", MSM_BACKEND_DAI_MI2S_TX,
  7780. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7781. msm_routing_put_voice_mixer),
  7782. SOC_SINGLE_EXT("PRI_MI2S_TX_VoWLAN", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7783. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7784. msm_routing_put_voice_mixer),
  7785. SOC_SINGLE_EXT("TERT_MI2S_TX_VoWLAN", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7786. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7787. msm_routing_put_voice_mixer),
  7788. SOC_SINGLE_EXT("SLIM_7_TX_VoWLAN", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7789. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7790. msm_routing_put_voice_mixer),
  7791. SOC_SINGLE_EXT("SLIM_8_TX_VoWLAN", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7792. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7793. msm_routing_put_voice_mixer),
  7794. SOC_SINGLE_EXT("USB_AUDIO_TX_VoWLAN", MSM_BACKEND_DAI_USB_TX,
  7795. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7796. msm_routing_put_voice_mixer),
  7797. };
  7798. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  7799. SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
  7800. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7801. msm_routing_put_voice_mixer),
  7802. SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
  7803. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7804. msm_routing_put_voice_mixer),
  7805. SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
  7806. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7807. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7808. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
  7809. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7810. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7811. SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
  7812. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7813. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7814. SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
  7815. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7816. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7817. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
  7818. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7819. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7820. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode1",
  7821. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7822. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7823. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode1",
  7824. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7825. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7826. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
  7827. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7828. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7829. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
  7830. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7831. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7832. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode1",
  7833. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7834. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7835. SOC_SINGLE_EXT("SLIM_7_TX_MMode1",
  7836. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7837. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7838. SOC_SINGLE_EXT("SLIM_8_TX_MMode1",
  7839. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7840. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7841. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode1", MSM_BACKEND_DAI_USB_TX,
  7842. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7843. msm_routing_put_voice_mixer),
  7844. SOC_SINGLE_EXT("QUAT_TDM_TX_0_MMode1",
  7845. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  7846. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7847. };
  7848. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  7849. SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
  7850. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7851. msm_routing_put_voice_mixer),
  7852. SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
  7853. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7854. msm_routing_put_voice_mixer),
  7855. SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
  7856. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  7857. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7858. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
  7859. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  7860. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7861. SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
  7862. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  7863. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7864. SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
  7865. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  7866. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7867. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
  7868. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  7869. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7870. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode2",
  7871. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  7872. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7873. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode2",
  7874. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  7875. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7876. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
  7877. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  7878. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7879. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
  7880. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  7881. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7882. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode2",
  7883. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  7884. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7885. SOC_SINGLE_EXT("SLIM_7_TX_MMode2",
  7886. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  7887. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7888. SOC_SINGLE_EXT("SLIM_8_TX_MMode2",
  7889. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  7890. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7891. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode2",
  7892. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  7893. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7894. };
  7895. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  7896. SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
  7897. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7898. msm_routing_put_voice_mixer),
  7899. SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
  7900. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7901. msm_routing_put_voice_mixer),
  7902. SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7903. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7904. msm_routing_put_voice_mixer),
  7905. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7906. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7907. msm_routing_put_voice_mixer),
  7908. SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
  7909. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7910. msm_routing_put_voice_mixer),
  7911. SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
  7912. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7913. msm_routing_put_voice_mixer),
  7914. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7915. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7916. msm_routing_put_voice_mixer),
  7917. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7918. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7919. msm_routing_put_voice_mixer),
  7920. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7921. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7922. msm_routing_put_voice_mixer),
  7923. SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7924. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7925. msm_routing_put_voice_mixer),
  7926. SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7927. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7928. msm_routing_put_voice_mixer),
  7929. SOC_SINGLE_EXT("INT3_MI2S_TX_Voip", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7930. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7931. msm_routing_put_voice_mixer),
  7932. SOC_SINGLE_EXT("SLIM_7_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7933. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7934. msm_routing_put_voice_mixer),
  7935. SOC_SINGLE_EXT("SLIM_8_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7936. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7937. msm_routing_put_voice_mixer),
  7938. SOC_SINGLE_EXT("USB_AUDIO_TX_Voip", MSM_BACKEND_DAI_USB_TX,
  7939. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7940. msm_routing_put_voice_mixer),
  7941. };
  7942. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  7943. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  7944. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7945. msm_routing_put_voice_stub_mixer),
  7946. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7947. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7948. msm_routing_put_voice_stub_mixer),
  7949. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  7950. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7951. msm_routing_put_voice_stub_mixer),
  7952. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  7953. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7954. msm_routing_put_voice_stub_mixer),
  7955. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7956. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7957. msm_routing_put_voice_stub_mixer),
  7958. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7959. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7960. msm_routing_put_voice_stub_mixer),
  7961. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7962. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7963. msm_routing_put_voice_stub_mixer),
  7964. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7965. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7966. msm_routing_put_voice_stub_mixer),
  7967. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7968. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7969. msm_routing_put_voice_stub_mixer),
  7970. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7971. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7972. msm_routing_put_voice_stub_mixer),
  7973. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7974. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7975. msm_routing_put_voice_stub_mixer),
  7976. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7977. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7978. msm_routing_put_voice_stub_mixer),
  7979. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7980. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7981. msm_routing_put_voice_stub_mixer),
  7982. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7983. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7984. msm_routing_put_voice_stub_mixer),
  7985. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  7986. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7987. msm_routing_put_voice_stub_mixer),
  7988. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7989. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7990. msm_routing_put_voice_stub_mixer),
  7991. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7992. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7993. msm_routing_put_voice_stub_mixer),
  7994. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7995. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7996. msm_routing_put_voice_stub_mixer),
  7997. };
  7998. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  7999. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8000. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8001. msm_routing_put_voice_stub_mixer),
  8002. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8003. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8004. msm_routing_put_voice_stub_mixer),
  8005. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8006. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8007. msm_routing_put_voice_stub_mixer),
  8008. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8009. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8010. msm_routing_put_voice_stub_mixer),
  8011. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8012. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8013. msm_routing_put_voice_stub_mixer),
  8014. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8015. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8016. msm_routing_put_voice_stub_mixer),
  8017. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8018. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8019. msm_routing_put_voice_stub_mixer),
  8020. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8021. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8022. msm_routing_put_voice_stub_mixer),
  8023. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8024. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8025. msm_routing_put_voice_stub_mixer),
  8026. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8027. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8028. msm_routing_put_voice_stub_mixer),
  8029. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8030. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8031. msm_routing_put_voice_stub_mixer),
  8032. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8033. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8034. msm_routing_put_voice_stub_mixer),
  8035. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8036. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8037. msm_routing_put_voice_stub_mixer),
  8038. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8039. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8040. msm_routing_put_voice_stub_mixer),
  8041. };
  8042. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  8043. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8044. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8045. msm_routing_put_voice_stub_mixer),
  8046. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8047. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8048. msm_routing_put_voice_stub_mixer),
  8049. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8050. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8051. msm_routing_put_voice_stub_mixer),
  8052. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8053. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8054. msm_routing_put_voice_stub_mixer),
  8055. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8056. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8057. msm_routing_put_voice_stub_mixer),
  8058. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8059. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8060. msm_routing_put_voice_stub_mixer),
  8061. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8062. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8063. msm_routing_put_voice_stub_mixer),
  8064. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8065. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8066. msm_routing_put_voice_stub_mixer),
  8067. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8068. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8069. msm_routing_put_voice_stub_mixer),
  8070. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8071. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8072. msm_routing_put_voice_stub_mixer),
  8073. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8074. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8075. msm_routing_put_voice_stub_mixer),
  8076. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8077. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8078. msm_routing_put_voice_stub_mixer),
  8079. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8080. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8081. msm_routing_put_voice_stub_mixer),
  8082. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8083. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8084. msm_routing_put_voice_stub_mixer),
  8085. };
  8086. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  8087. SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
  8088. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8089. msm_routing_put_voice_mixer),
  8090. SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8091. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8092. msm_routing_put_voice_mixer),
  8093. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
  8094. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
  8095. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8096. SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
  8097. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8098. msm_routing_put_voice_mixer),
  8099. SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
  8100. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8101. msm_routing_put_voice_mixer),
  8102. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8104. msm_routing_put_voice_mixer),
  8105. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8106. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8107. msm_routing_put_voice_mixer),
  8108. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8109. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8110. msm_routing_put_voice_mixer),
  8111. SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
  8112. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8113. msm_routing_put_voice_mixer),
  8114. SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8115. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8116. msm_routing_put_voice_mixer),
  8117. SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8118. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8119. msm_routing_put_voice_mixer),
  8120. SOC_SINGLE_EXT("INT3_MI2S_TX_QCHAT", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8121. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8122. msm_routing_put_voice_mixer),
  8123. SOC_SINGLE_EXT("SLIM_7_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8124. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8125. msm_routing_put_voice_mixer),
  8126. SOC_SINGLE_EXT("SLIM_8_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8127. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8128. msm_routing_put_voice_mixer),
  8129. SOC_SINGLE_EXT("USB_AUDIO_TX_QCHAT", MSM_BACKEND_DAI_USB_TX,
  8130. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8131. msm_routing_put_voice_mixer),
  8132. };
  8133. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  8134. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8135. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8136. msm_routing_put_port_mixer),
  8137. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8138. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8139. msm_routing_put_port_mixer),
  8140. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8141. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8142. msm_routing_put_port_mixer),
  8143. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8144. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8145. msm_routing_put_port_mixer),
  8146. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8147. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8148. msm_routing_put_port_mixer),
  8149. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8150. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8151. msm_routing_put_port_mixer),
  8152. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8153. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8154. msm_routing_put_port_mixer),
  8155. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8156. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8157. msm_routing_put_port_mixer),
  8158. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8159. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8160. msm_routing_put_port_mixer),
  8161. };
  8162. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  8163. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8164. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8165. msm_routing_put_port_mixer),
  8166. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8167. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8168. msm_routing_put_port_mixer),
  8169. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8170. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8171. msm_routing_put_port_mixer),
  8172. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8173. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8174. msm_routing_put_port_mixer),
  8175. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8176. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8177. msm_routing_put_port_mixer),
  8178. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8179. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8180. msm_routing_put_port_mixer),
  8181. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8182. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8183. msm_routing_put_port_mixer),
  8184. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8185. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8186. msm_routing_put_port_mixer),
  8187. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8188. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8189. msm_routing_put_port_mixer),
  8190. };
  8191. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  8192. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8193. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8194. msm_routing_put_port_mixer),
  8195. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8196. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8197. msm_routing_put_port_mixer),
  8198. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8199. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8200. msm_routing_put_port_mixer),
  8201. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8202. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8203. msm_routing_put_port_mixer),
  8204. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8205. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8206. msm_routing_put_port_mixer),
  8207. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8208. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8209. msm_routing_put_port_mixer),
  8210. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8211. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8212. msm_routing_put_port_mixer),
  8213. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8214. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8215. msm_routing_put_port_mixer),
  8216. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8217. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8218. msm_routing_put_port_mixer),
  8219. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8220. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8221. msm_routing_put_port_mixer),
  8222. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8223. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8224. msm_routing_put_port_mixer),
  8225. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8226. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8227. msm_routing_put_port_mixer),
  8228. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8229. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8230. msm_routing_put_port_mixer),
  8231. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8232. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8233. msm_routing_put_port_mixer),
  8234. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8235. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8236. msm_routing_put_port_mixer),
  8237. SOC_SINGLE_EXT("PRI_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8238. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8239. msm_routing_put_port_mixer),
  8240. SOC_SINGLE_EXT("SEC_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8241. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8242. msm_routing_put_port_mixer),
  8243. SOC_SINGLE_EXT("TERT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8244. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8245. msm_routing_put_port_mixer),
  8246. SOC_SINGLE_EXT("QUAT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8247. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8248. msm_routing_put_port_mixer),
  8249. };
  8250. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  8251. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8252. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8253. msm_routing_put_port_mixer),
  8254. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8255. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8256. msm_routing_put_port_mixer),
  8257. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8258. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8259. msm_routing_put_port_mixer),
  8260. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8261. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8262. msm_routing_put_port_mixer),
  8263. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
  8264. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  8265. msm_routing_put_port_mixer),
  8266. };
  8267. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  8268. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8269. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8270. msm_routing_put_port_mixer),
  8271. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8272. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8273. msm_routing_put_port_mixer),
  8274. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8275. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8276. msm_routing_put_port_mixer),
  8277. };
  8278. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  8279. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8280. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8281. msm_routing_put_port_mixer),
  8282. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8283. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8284. msm_routing_put_port_mixer),
  8285. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8286. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8287. msm_routing_put_port_mixer),
  8288. };
  8289. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  8290. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8291. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8292. msm_routing_put_port_mixer),
  8293. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8294. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8295. msm_routing_put_port_mixer),
  8296. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8297. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8298. msm_routing_put_port_mixer),
  8299. };
  8300. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  8301. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8302. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8303. msm_routing_put_port_mixer),
  8304. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8305. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  8306. msm_routing_put_port_mixer),
  8307. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8308. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8309. msm_routing_put_port_mixer),
  8310. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8311. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8312. msm_routing_put_port_mixer),
  8313. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8314. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8315. msm_routing_put_port_mixer),
  8316. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8317. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8318. msm_routing_put_port_mixer),
  8319. };
  8320. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  8321. SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8322. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  8323. msm_routing_put_port_mixer),
  8324. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8325. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8326. msm_routing_put_port_mixer),
  8327. SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8328. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  8329. msm_routing_put_port_mixer),
  8330. SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8331. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  8332. msm_routing_put_port_mixer),
  8333. SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8334. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  8335. msm_routing_put_port_mixer),
  8336. };
  8337. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  8338. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8339. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8340. msm_routing_put_port_mixer),
  8341. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8342. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8343. msm_routing_put_port_mixer),
  8344. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8345. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8346. msm_routing_put_port_mixer),
  8347. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8348. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8349. msm_routing_put_port_mixer),
  8350. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8351. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8352. msm_routing_put_port_mixer),
  8353. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8354. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8355. msm_routing_put_port_mixer),
  8356. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8357. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8358. msm_routing_put_port_mixer),
  8359. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8360. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8361. msm_routing_put_port_mixer),
  8362. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8363. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8364. msm_routing_put_port_mixer),
  8365. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8366. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8367. msm_routing_put_port_mixer),
  8368. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8369. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8370. msm_routing_put_port_mixer),
  8371. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8372. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8373. msm_routing_put_port_mixer),
  8374. };
  8375. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  8376. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8377. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8378. msm_routing_put_port_mixer),
  8379. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8380. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8381. msm_routing_put_port_mixer),
  8382. };
  8383. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  8384. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8385. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8386. msm_routing_put_port_mixer),
  8387. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8388. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8389. msm_routing_put_port_mixer),
  8390. };
  8391. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  8392. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
  8393. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8394. msm_routing_put_port_mixer),
  8395. };
  8396. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  8397. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  8398. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8399. msm_routing_put_port_mixer),
  8400. };
  8401. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  8402. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
  8403. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8404. msm_routing_put_port_mixer),
  8405. };
  8406. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  8407. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
  8408. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8409. msm_routing_put_port_mixer),
  8410. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
  8411. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8412. msm_routing_put_port_mixer),
  8413. };
  8414. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  8415. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8416. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8417. msm_routing_put_port_mixer),
  8418. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8419. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8420. msm_routing_put_port_mixer),
  8421. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8422. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8423. msm_routing_put_port_mixer),
  8424. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8425. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8426. msm_routing_put_port_mixer),
  8427. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8428. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8429. msm_routing_put_port_mixer),
  8430. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8431. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8432. msm_routing_put_port_mixer),
  8433. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8434. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8435. msm_routing_put_port_mixer),
  8436. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8437. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8438. msm_routing_put_port_mixer),
  8439. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8440. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8441. msm_routing_put_port_mixer),
  8442. };
  8443. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  8444. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_RX,
  8445. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  8446. msm_routing_put_port_mixer),
  8447. };
  8448. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  8449. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8450. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8451. msm_routing_put_port_mixer),
  8452. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8453. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8454. msm_routing_put_port_mixer),
  8455. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8456. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8457. msm_routing_put_port_mixer),
  8458. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8459. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8460. msm_routing_put_port_mixer),
  8461. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8462. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8463. msm_routing_put_port_mixer),
  8464. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8465. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8466. msm_routing_put_port_mixer),
  8467. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8468. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8469. msm_routing_put_port_mixer),
  8470. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8471. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8472. msm_routing_put_port_mixer),
  8473. };
  8474. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  8475. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8476. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8477. msm_routing_get_port_mixer,
  8478. msm_routing_put_port_mixer),
  8479. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8480. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8481. msm_routing_get_port_mixer,
  8482. msm_routing_put_port_mixer),
  8483. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8484. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8485. msm_routing_get_port_mixer,
  8486. msm_routing_put_port_mixer),
  8487. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8488. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8489. msm_routing_get_port_mixer,
  8490. msm_routing_put_port_mixer),
  8491. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8492. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8493. msm_routing_get_port_mixer,
  8494. msm_routing_put_port_mixer),
  8495. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8496. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8497. msm_routing_get_port_mixer,
  8498. msm_routing_put_port_mixer),
  8499. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8500. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8501. msm_routing_get_port_mixer,
  8502. msm_routing_put_port_mixer),
  8503. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8504. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8505. msm_routing_get_port_mixer,
  8506. msm_routing_put_port_mixer),
  8507. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8508. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8509. msm_routing_get_port_mixer,
  8510. msm_routing_put_port_mixer),
  8511. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8512. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8513. msm_routing_get_port_mixer,
  8514. msm_routing_put_port_mixer),
  8515. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8516. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8517. msm_routing_get_port_mixer,
  8518. msm_routing_put_port_mixer),
  8519. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8520. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8521. msm_routing_get_port_mixer,
  8522. msm_routing_put_port_mixer),
  8523. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8524. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8525. msm_routing_get_port_mixer,
  8526. msm_routing_put_port_mixer),
  8527. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8528. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8529. msm_routing_get_port_mixer,
  8530. msm_routing_put_port_mixer),
  8531. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8532. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8533. msm_routing_get_port_mixer,
  8534. msm_routing_put_port_mixer),
  8535. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8536. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8537. msm_routing_get_port_mixer,
  8538. msm_routing_put_port_mixer),
  8539. };
  8540. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  8541. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8542. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8543. msm_routing_get_port_mixer,
  8544. msm_routing_put_port_mixer),
  8545. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8546. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8547. msm_routing_get_port_mixer,
  8548. msm_routing_put_port_mixer),
  8549. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8550. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8551. msm_routing_get_port_mixer,
  8552. msm_routing_put_port_mixer),
  8553. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8554. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8555. msm_routing_get_port_mixer,
  8556. msm_routing_put_port_mixer),
  8557. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8558. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8559. msm_routing_get_port_mixer,
  8560. msm_routing_put_port_mixer),
  8561. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8562. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8563. msm_routing_get_port_mixer,
  8564. msm_routing_put_port_mixer),
  8565. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8566. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8567. msm_routing_get_port_mixer,
  8568. msm_routing_put_port_mixer),
  8569. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8570. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8571. msm_routing_get_port_mixer,
  8572. msm_routing_put_port_mixer),
  8573. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8574. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8575. msm_routing_get_port_mixer,
  8576. msm_routing_put_port_mixer),
  8577. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8578. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8579. msm_routing_get_port_mixer,
  8580. msm_routing_put_port_mixer),
  8581. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8582. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8583. msm_routing_get_port_mixer,
  8584. msm_routing_put_port_mixer),
  8585. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8586. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8587. msm_routing_get_port_mixer,
  8588. msm_routing_put_port_mixer),
  8589. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8590. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8591. msm_routing_get_port_mixer,
  8592. msm_routing_put_port_mixer),
  8593. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8594. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8595. msm_routing_get_port_mixer,
  8596. msm_routing_put_port_mixer),
  8597. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8598. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8599. msm_routing_get_port_mixer,
  8600. msm_routing_put_port_mixer),
  8601. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8602. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8603. msm_routing_get_port_mixer,
  8604. msm_routing_put_port_mixer),
  8605. };
  8606. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  8607. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8608. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8609. msm_routing_get_port_mixer,
  8610. msm_routing_put_port_mixer),
  8611. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8612. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8613. msm_routing_get_port_mixer,
  8614. msm_routing_put_port_mixer),
  8615. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8616. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8617. msm_routing_get_port_mixer,
  8618. msm_routing_put_port_mixer),
  8619. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8620. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8621. msm_routing_get_port_mixer,
  8622. msm_routing_put_port_mixer),
  8623. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8624. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8625. msm_routing_get_port_mixer,
  8626. msm_routing_put_port_mixer),
  8627. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8628. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8629. msm_routing_get_port_mixer,
  8630. msm_routing_put_port_mixer),
  8631. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8632. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8633. msm_routing_get_port_mixer,
  8634. msm_routing_put_port_mixer),
  8635. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8637. msm_routing_get_port_mixer,
  8638. msm_routing_put_port_mixer),
  8639. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8640. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8641. msm_routing_get_port_mixer,
  8642. msm_routing_put_port_mixer),
  8643. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8644. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8645. msm_routing_get_port_mixer,
  8646. msm_routing_put_port_mixer),
  8647. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8648. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8649. msm_routing_get_port_mixer,
  8650. msm_routing_put_port_mixer),
  8651. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8652. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8653. msm_routing_get_port_mixer,
  8654. msm_routing_put_port_mixer),
  8655. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8656. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8657. msm_routing_get_port_mixer,
  8658. msm_routing_put_port_mixer),
  8659. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8660. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8661. msm_routing_get_port_mixer,
  8662. msm_routing_put_port_mixer),
  8663. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8664. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8665. msm_routing_get_port_mixer,
  8666. msm_routing_put_port_mixer),
  8667. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8668. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8669. msm_routing_get_port_mixer,
  8670. msm_routing_put_port_mixer),
  8671. };
  8672. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  8673. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8674. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8675. msm_routing_get_port_mixer,
  8676. msm_routing_put_port_mixer),
  8677. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8678. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8679. msm_routing_get_port_mixer,
  8680. msm_routing_put_port_mixer),
  8681. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8682. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8683. msm_routing_get_port_mixer,
  8684. msm_routing_put_port_mixer),
  8685. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8686. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8687. msm_routing_get_port_mixer,
  8688. msm_routing_put_port_mixer),
  8689. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8690. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8691. msm_routing_get_port_mixer,
  8692. msm_routing_put_port_mixer),
  8693. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8694. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8695. msm_routing_get_port_mixer,
  8696. msm_routing_put_port_mixer),
  8697. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8698. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8699. msm_routing_get_port_mixer,
  8700. msm_routing_put_port_mixer),
  8701. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8702. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8703. msm_routing_get_port_mixer,
  8704. msm_routing_put_port_mixer),
  8705. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8706. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8707. msm_routing_get_port_mixer,
  8708. msm_routing_put_port_mixer),
  8709. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8710. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8711. msm_routing_get_port_mixer,
  8712. msm_routing_put_port_mixer),
  8713. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8714. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8715. msm_routing_get_port_mixer,
  8716. msm_routing_put_port_mixer),
  8717. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8718. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8719. msm_routing_get_port_mixer,
  8720. msm_routing_put_port_mixer),
  8721. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8722. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8723. msm_routing_get_port_mixer,
  8724. msm_routing_put_port_mixer),
  8725. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8726. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8727. msm_routing_get_port_mixer,
  8728. msm_routing_put_port_mixer),
  8729. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8730. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8731. msm_routing_get_port_mixer,
  8732. msm_routing_put_port_mixer),
  8733. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8734. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8735. msm_routing_get_port_mixer,
  8736. msm_routing_put_port_mixer),
  8737. };
  8738. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  8739. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8740. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8741. msm_routing_get_port_mixer,
  8742. msm_routing_put_port_mixer),
  8743. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8744. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8745. msm_routing_get_port_mixer,
  8746. msm_routing_put_port_mixer),
  8747. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8748. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8749. msm_routing_get_port_mixer,
  8750. msm_routing_put_port_mixer),
  8751. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8752. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8753. msm_routing_get_port_mixer,
  8754. msm_routing_put_port_mixer),
  8755. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8756. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8757. msm_routing_get_port_mixer,
  8758. msm_routing_put_port_mixer),
  8759. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8760. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8761. msm_routing_get_port_mixer,
  8762. msm_routing_put_port_mixer),
  8763. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8764. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8765. msm_routing_get_port_mixer,
  8766. msm_routing_put_port_mixer),
  8767. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8768. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8769. msm_routing_get_port_mixer,
  8770. msm_routing_put_port_mixer),
  8771. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8772. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  8773. msm_routing_get_port_mixer,
  8774. msm_routing_put_port_mixer),
  8775. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8776. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  8777. msm_routing_get_port_mixer,
  8778. msm_routing_put_port_mixer),
  8779. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8780. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  8781. msm_routing_get_port_mixer,
  8782. msm_routing_put_port_mixer),
  8783. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8784. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  8785. msm_routing_get_port_mixer,
  8786. msm_routing_put_port_mixer),
  8787. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8788. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8789. msm_routing_get_port_mixer,
  8790. msm_routing_put_port_mixer),
  8791. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8792. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8793. msm_routing_get_port_mixer,
  8794. msm_routing_put_port_mixer),
  8795. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8796. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8797. msm_routing_get_port_mixer,
  8798. msm_routing_put_port_mixer),
  8799. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8800. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8801. msm_routing_get_port_mixer,
  8802. msm_routing_put_port_mixer),
  8803. };
  8804. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  8805. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8806. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8807. msm_routing_get_port_mixer,
  8808. msm_routing_put_port_mixer),
  8809. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8810. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8811. msm_routing_get_port_mixer,
  8812. msm_routing_put_port_mixer),
  8813. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8814. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8815. msm_routing_get_port_mixer,
  8816. msm_routing_put_port_mixer),
  8817. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8818. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8819. msm_routing_get_port_mixer,
  8820. msm_routing_put_port_mixer),
  8821. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8822. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8823. msm_routing_get_port_mixer,
  8824. msm_routing_put_port_mixer),
  8825. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8826. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8827. msm_routing_get_port_mixer,
  8828. msm_routing_put_port_mixer),
  8829. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8830. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8831. msm_routing_get_port_mixer,
  8832. msm_routing_put_port_mixer),
  8833. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8834. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8835. msm_routing_get_port_mixer,
  8836. msm_routing_put_port_mixer),
  8837. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8838. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  8839. msm_routing_get_port_mixer,
  8840. msm_routing_put_port_mixer),
  8841. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8842. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  8843. msm_routing_get_port_mixer,
  8844. msm_routing_put_port_mixer),
  8845. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8846. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  8847. msm_routing_get_port_mixer,
  8848. msm_routing_put_port_mixer),
  8849. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8850. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  8851. msm_routing_get_port_mixer,
  8852. msm_routing_put_port_mixer),
  8853. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8854. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8855. msm_routing_get_port_mixer,
  8856. msm_routing_put_port_mixer),
  8857. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8858. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8859. msm_routing_get_port_mixer,
  8860. msm_routing_put_port_mixer),
  8861. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8862. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8863. msm_routing_get_port_mixer,
  8864. msm_routing_put_port_mixer),
  8865. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8866. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8867. msm_routing_get_port_mixer,
  8868. msm_routing_put_port_mixer),
  8869. };
  8870. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  8871. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8872. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8873. msm_routing_get_port_mixer,
  8874. msm_routing_put_port_mixer),
  8875. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8876. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8877. msm_routing_get_port_mixer,
  8878. msm_routing_put_port_mixer),
  8879. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8880. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8881. msm_routing_get_port_mixer,
  8882. msm_routing_put_port_mixer),
  8883. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8884. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8885. msm_routing_get_port_mixer,
  8886. msm_routing_put_port_mixer),
  8887. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8888. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8889. msm_routing_get_port_mixer,
  8890. msm_routing_put_port_mixer),
  8891. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8892. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8893. msm_routing_get_port_mixer,
  8894. msm_routing_put_port_mixer),
  8895. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8896. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8897. msm_routing_get_port_mixer,
  8898. msm_routing_put_port_mixer),
  8899. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8900. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8901. msm_routing_get_port_mixer,
  8902. msm_routing_put_port_mixer),
  8903. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8904. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  8905. msm_routing_get_port_mixer,
  8906. msm_routing_put_port_mixer),
  8907. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8908. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  8909. msm_routing_get_port_mixer,
  8910. msm_routing_put_port_mixer),
  8911. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8912. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  8913. msm_routing_get_port_mixer,
  8914. msm_routing_put_port_mixer),
  8915. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8916. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  8917. msm_routing_get_port_mixer,
  8918. msm_routing_put_port_mixer),
  8919. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8920. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8921. msm_routing_get_port_mixer,
  8922. msm_routing_put_port_mixer),
  8923. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8924. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8925. msm_routing_get_port_mixer,
  8926. msm_routing_put_port_mixer),
  8927. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8928. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8929. msm_routing_get_port_mixer,
  8930. msm_routing_put_port_mixer),
  8931. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8932. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8933. msm_routing_get_port_mixer,
  8934. msm_routing_put_port_mixer),
  8935. };
  8936. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  8937. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8938. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8939. msm_routing_get_port_mixer,
  8940. msm_routing_put_port_mixer),
  8941. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8942. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8943. msm_routing_get_port_mixer,
  8944. msm_routing_put_port_mixer),
  8945. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8946. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8947. msm_routing_get_port_mixer,
  8948. msm_routing_put_port_mixer),
  8949. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8950. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8951. msm_routing_get_port_mixer,
  8952. msm_routing_put_port_mixer),
  8953. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8954. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8955. msm_routing_get_port_mixer,
  8956. msm_routing_put_port_mixer),
  8957. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8958. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8959. msm_routing_get_port_mixer,
  8960. msm_routing_put_port_mixer),
  8961. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8962. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8963. msm_routing_get_port_mixer,
  8964. msm_routing_put_port_mixer),
  8965. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8966. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8967. msm_routing_get_port_mixer,
  8968. msm_routing_put_port_mixer),
  8969. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8970. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  8971. msm_routing_get_port_mixer,
  8972. msm_routing_put_port_mixer),
  8973. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8974. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  8975. msm_routing_get_port_mixer,
  8976. msm_routing_put_port_mixer),
  8977. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8978. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  8979. msm_routing_get_port_mixer,
  8980. msm_routing_put_port_mixer),
  8981. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8982. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  8983. msm_routing_get_port_mixer,
  8984. msm_routing_put_port_mixer),
  8985. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8986. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8987. msm_routing_get_port_mixer,
  8988. msm_routing_put_port_mixer),
  8989. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8990. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8991. msm_routing_get_port_mixer,
  8992. msm_routing_put_port_mixer),
  8993. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8994. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8995. msm_routing_get_port_mixer,
  8996. msm_routing_put_port_mixer),
  8997. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8998. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8999. msm_routing_get_port_mixer,
  9000. msm_routing_put_port_mixer),
  9001. };
  9002. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  9003. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9004. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9005. msm_routing_get_port_mixer,
  9006. msm_routing_put_port_mixer),
  9007. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9008. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9009. msm_routing_get_port_mixer,
  9010. msm_routing_put_port_mixer),
  9011. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9012. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9013. msm_routing_get_port_mixer,
  9014. msm_routing_put_port_mixer),
  9015. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9016. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9017. msm_routing_get_port_mixer,
  9018. msm_routing_put_port_mixer),
  9019. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9020. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9021. msm_routing_get_port_mixer,
  9022. msm_routing_put_port_mixer),
  9023. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9024. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9025. msm_routing_get_port_mixer,
  9026. msm_routing_put_port_mixer),
  9027. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9028. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9029. msm_routing_get_port_mixer,
  9030. msm_routing_put_port_mixer),
  9031. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9032. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9033. msm_routing_get_port_mixer,
  9034. msm_routing_put_port_mixer),
  9035. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9036. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9037. msm_routing_get_port_mixer,
  9038. msm_routing_put_port_mixer),
  9039. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9040. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9041. msm_routing_get_port_mixer,
  9042. msm_routing_put_port_mixer),
  9043. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9044. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9045. msm_routing_get_port_mixer,
  9046. msm_routing_put_port_mixer),
  9047. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9048. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9049. msm_routing_get_port_mixer,
  9050. msm_routing_put_port_mixer),
  9051. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9052. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9053. msm_routing_get_port_mixer,
  9054. msm_routing_put_port_mixer),
  9055. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9056. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9057. msm_routing_get_port_mixer,
  9058. msm_routing_put_port_mixer),
  9059. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9060. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9061. msm_routing_get_port_mixer,
  9062. msm_routing_put_port_mixer),
  9063. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9064. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9065. msm_routing_get_port_mixer,
  9066. msm_routing_put_port_mixer),
  9067. };
  9068. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  9069. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9070. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9071. msm_routing_get_port_mixer,
  9072. msm_routing_put_port_mixer),
  9073. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9074. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9075. msm_routing_get_port_mixer,
  9076. msm_routing_put_port_mixer),
  9077. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9078. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9079. msm_routing_get_port_mixer,
  9080. msm_routing_put_port_mixer),
  9081. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9082. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9083. msm_routing_get_port_mixer,
  9084. msm_routing_put_port_mixer),
  9085. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9086. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9087. msm_routing_get_port_mixer,
  9088. msm_routing_put_port_mixer),
  9089. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9090. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9091. msm_routing_get_port_mixer,
  9092. msm_routing_put_port_mixer),
  9093. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9094. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9095. msm_routing_get_port_mixer,
  9096. msm_routing_put_port_mixer),
  9097. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9098. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9099. msm_routing_get_port_mixer,
  9100. msm_routing_put_port_mixer),
  9101. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9102. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9103. msm_routing_get_port_mixer,
  9104. msm_routing_put_port_mixer),
  9105. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9106. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9107. msm_routing_get_port_mixer,
  9108. msm_routing_put_port_mixer),
  9109. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9110. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9111. msm_routing_get_port_mixer,
  9112. msm_routing_put_port_mixer),
  9113. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9114. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9115. msm_routing_get_port_mixer,
  9116. msm_routing_put_port_mixer),
  9117. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9118. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9119. msm_routing_get_port_mixer,
  9120. msm_routing_put_port_mixer),
  9121. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9122. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9123. msm_routing_get_port_mixer,
  9124. msm_routing_put_port_mixer),
  9125. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9126. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9127. msm_routing_get_port_mixer,
  9128. msm_routing_put_port_mixer),
  9129. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9130. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9131. msm_routing_get_port_mixer,
  9132. msm_routing_put_port_mixer),
  9133. };
  9134. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  9135. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9136. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9137. msm_routing_get_port_mixer,
  9138. msm_routing_put_port_mixer),
  9139. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9140. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9141. msm_routing_get_port_mixer,
  9142. msm_routing_put_port_mixer),
  9143. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9144. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9145. msm_routing_get_port_mixer,
  9146. msm_routing_put_port_mixer),
  9147. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9148. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9149. msm_routing_get_port_mixer,
  9150. msm_routing_put_port_mixer),
  9151. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9152. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9153. msm_routing_get_port_mixer,
  9154. msm_routing_put_port_mixer),
  9155. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9156. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9157. msm_routing_get_port_mixer,
  9158. msm_routing_put_port_mixer),
  9159. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9160. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9161. msm_routing_get_port_mixer,
  9162. msm_routing_put_port_mixer),
  9163. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9164. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9165. msm_routing_get_port_mixer,
  9166. msm_routing_put_port_mixer),
  9167. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9168. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9169. msm_routing_get_port_mixer,
  9170. msm_routing_put_port_mixer),
  9171. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9172. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9173. msm_routing_get_port_mixer,
  9174. msm_routing_put_port_mixer),
  9175. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9176. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9177. msm_routing_get_port_mixer,
  9178. msm_routing_put_port_mixer),
  9179. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9180. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9181. msm_routing_get_port_mixer,
  9182. msm_routing_put_port_mixer),
  9183. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9184. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9185. msm_routing_get_port_mixer,
  9186. msm_routing_put_port_mixer),
  9187. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9188. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9189. msm_routing_get_port_mixer,
  9190. msm_routing_put_port_mixer),
  9191. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9192. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9193. msm_routing_get_port_mixer,
  9194. msm_routing_put_port_mixer),
  9195. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9196. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9197. msm_routing_get_port_mixer,
  9198. msm_routing_put_port_mixer),
  9199. };
  9200. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  9201. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9202. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9203. msm_routing_get_port_mixer,
  9204. msm_routing_put_port_mixer),
  9205. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9206. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9207. msm_routing_get_port_mixer,
  9208. msm_routing_put_port_mixer),
  9209. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9210. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9211. msm_routing_get_port_mixer,
  9212. msm_routing_put_port_mixer),
  9213. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9214. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9215. msm_routing_get_port_mixer,
  9216. msm_routing_put_port_mixer),
  9217. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9218. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9219. msm_routing_get_port_mixer,
  9220. msm_routing_put_port_mixer),
  9221. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9222. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9223. msm_routing_get_port_mixer,
  9224. msm_routing_put_port_mixer),
  9225. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9226. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9227. msm_routing_get_port_mixer,
  9228. msm_routing_put_port_mixer),
  9229. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9230. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9231. msm_routing_get_port_mixer,
  9232. msm_routing_put_port_mixer),
  9233. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9234. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9235. msm_routing_get_port_mixer,
  9236. msm_routing_put_port_mixer),
  9237. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9238. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9239. msm_routing_get_port_mixer,
  9240. msm_routing_put_port_mixer),
  9241. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9242. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9243. msm_routing_get_port_mixer,
  9244. msm_routing_put_port_mixer),
  9245. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9246. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9247. msm_routing_get_port_mixer,
  9248. msm_routing_put_port_mixer),
  9249. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9250. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9251. msm_routing_get_port_mixer,
  9252. msm_routing_put_port_mixer),
  9253. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9254. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9255. msm_routing_get_port_mixer,
  9256. msm_routing_put_port_mixer),
  9257. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9258. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9259. msm_routing_get_port_mixer,
  9260. msm_routing_put_port_mixer),
  9261. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9262. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9263. msm_routing_get_port_mixer,
  9264. msm_routing_put_port_mixer),
  9265. };
  9266. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  9267. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9268. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9269. msm_routing_get_port_mixer,
  9270. msm_routing_put_port_mixer),
  9271. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9272. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9273. msm_routing_get_port_mixer,
  9274. msm_routing_put_port_mixer),
  9275. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9276. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9277. msm_routing_get_port_mixer,
  9278. msm_routing_put_port_mixer),
  9279. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9280. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9281. msm_routing_get_port_mixer,
  9282. msm_routing_put_port_mixer),
  9283. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9284. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9285. msm_routing_get_port_mixer,
  9286. msm_routing_put_port_mixer),
  9287. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9288. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9289. msm_routing_get_port_mixer,
  9290. msm_routing_put_port_mixer),
  9291. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9292. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9293. msm_routing_get_port_mixer,
  9294. msm_routing_put_port_mixer),
  9295. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9296. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9297. msm_routing_get_port_mixer,
  9298. msm_routing_put_port_mixer),
  9299. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9300. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9301. msm_routing_get_port_mixer,
  9302. msm_routing_put_port_mixer),
  9303. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9304. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9305. msm_routing_get_port_mixer,
  9306. msm_routing_put_port_mixer),
  9307. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9308. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9309. msm_routing_get_port_mixer,
  9310. msm_routing_put_port_mixer),
  9311. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9312. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9313. msm_routing_get_port_mixer,
  9314. msm_routing_put_port_mixer),
  9315. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9316. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9317. msm_routing_get_port_mixer,
  9318. msm_routing_put_port_mixer),
  9319. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9320. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9321. msm_routing_get_port_mixer,
  9322. msm_routing_put_port_mixer),
  9323. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9324. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9325. msm_routing_get_port_mixer,
  9326. msm_routing_put_port_mixer),
  9327. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9328. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9329. msm_routing_get_port_mixer,
  9330. msm_routing_put_port_mixer),
  9331. };
  9332. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  9333. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9334. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9335. msm_routing_get_port_mixer,
  9336. msm_routing_put_port_mixer),
  9337. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9338. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9339. msm_routing_get_port_mixer,
  9340. msm_routing_put_port_mixer),
  9341. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9342. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9343. msm_routing_get_port_mixer,
  9344. msm_routing_put_port_mixer),
  9345. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9346. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9347. msm_routing_get_port_mixer,
  9348. msm_routing_put_port_mixer),
  9349. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9350. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9351. msm_routing_get_port_mixer,
  9352. msm_routing_put_port_mixer),
  9353. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9354. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9355. msm_routing_get_port_mixer,
  9356. msm_routing_put_port_mixer),
  9357. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9358. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9359. msm_routing_get_port_mixer,
  9360. msm_routing_put_port_mixer),
  9361. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9362. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9363. msm_routing_get_port_mixer,
  9364. msm_routing_put_port_mixer),
  9365. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9366. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9367. msm_routing_get_port_mixer,
  9368. msm_routing_put_port_mixer),
  9369. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9370. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9371. msm_routing_get_port_mixer,
  9372. msm_routing_put_port_mixer),
  9373. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9374. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9375. msm_routing_get_port_mixer,
  9376. msm_routing_put_port_mixer),
  9377. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9378. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9379. msm_routing_get_port_mixer,
  9380. msm_routing_put_port_mixer),
  9381. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9382. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9383. msm_routing_get_port_mixer,
  9384. msm_routing_put_port_mixer),
  9385. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9386. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9387. msm_routing_get_port_mixer,
  9388. msm_routing_put_port_mixer),
  9389. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9390. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9391. msm_routing_get_port_mixer,
  9392. msm_routing_put_port_mixer),
  9393. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9394. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9395. msm_routing_get_port_mixer,
  9396. msm_routing_put_port_mixer),
  9397. };
  9398. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  9399. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9400. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9401. msm_routing_get_port_mixer,
  9402. msm_routing_put_port_mixer),
  9403. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9404. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9405. msm_routing_get_port_mixer,
  9406. msm_routing_put_port_mixer),
  9407. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9408. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9409. msm_routing_get_port_mixer,
  9410. msm_routing_put_port_mixer),
  9411. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9412. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9413. msm_routing_get_port_mixer,
  9414. msm_routing_put_port_mixer),
  9415. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9416. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9417. msm_routing_get_port_mixer,
  9418. msm_routing_put_port_mixer),
  9419. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9420. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9421. msm_routing_get_port_mixer,
  9422. msm_routing_put_port_mixer),
  9423. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9424. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9425. msm_routing_get_port_mixer,
  9426. msm_routing_put_port_mixer),
  9427. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9428. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9429. msm_routing_get_port_mixer,
  9430. msm_routing_put_port_mixer),
  9431. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9432. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9433. msm_routing_get_port_mixer,
  9434. msm_routing_put_port_mixer),
  9435. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9436. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9437. msm_routing_get_port_mixer,
  9438. msm_routing_put_port_mixer),
  9439. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9440. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9441. msm_routing_get_port_mixer,
  9442. msm_routing_put_port_mixer),
  9443. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9444. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9445. msm_routing_get_port_mixer,
  9446. msm_routing_put_port_mixer),
  9447. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9448. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9449. msm_routing_get_port_mixer,
  9450. msm_routing_put_port_mixer),
  9451. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9452. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9453. msm_routing_get_port_mixer,
  9454. msm_routing_put_port_mixer),
  9455. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9456. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9457. msm_routing_get_port_mixer,
  9458. msm_routing_put_port_mixer),
  9459. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9460. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9461. msm_routing_get_port_mixer,
  9462. msm_routing_put_port_mixer),
  9463. };
  9464. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  9465. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9466. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9467. msm_routing_get_port_mixer,
  9468. msm_routing_put_port_mixer),
  9469. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9470. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9471. msm_routing_get_port_mixer,
  9472. msm_routing_put_port_mixer),
  9473. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9474. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9475. msm_routing_get_port_mixer,
  9476. msm_routing_put_port_mixer),
  9477. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9478. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9479. msm_routing_get_port_mixer,
  9480. msm_routing_put_port_mixer),
  9481. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9482. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9483. msm_routing_get_port_mixer,
  9484. msm_routing_put_port_mixer),
  9485. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9486. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9487. msm_routing_get_port_mixer,
  9488. msm_routing_put_port_mixer),
  9489. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9490. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9491. msm_routing_get_port_mixer,
  9492. msm_routing_put_port_mixer),
  9493. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9494. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9495. msm_routing_get_port_mixer,
  9496. msm_routing_put_port_mixer),
  9497. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9498. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9499. msm_routing_get_port_mixer,
  9500. msm_routing_put_port_mixer),
  9501. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9502. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9503. msm_routing_get_port_mixer,
  9504. msm_routing_put_port_mixer),
  9505. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9506. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9507. msm_routing_get_port_mixer,
  9508. msm_routing_put_port_mixer),
  9509. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9510. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9511. msm_routing_get_port_mixer,
  9512. msm_routing_put_port_mixer),
  9513. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9514. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9515. msm_routing_get_port_mixer,
  9516. msm_routing_put_port_mixer),
  9517. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9518. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9519. msm_routing_get_port_mixer,
  9520. msm_routing_put_port_mixer),
  9521. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9522. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9523. msm_routing_get_port_mixer,
  9524. msm_routing_put_port_mixer),
  9525. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9526. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9527. msm_routing_get_port_mixer,
  9528. msm_routing_put_port_mixer),
  9529. };
  9530. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  9531. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9532. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9533. msm_routing_put_port_mixer),
  9534. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9535. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9536. msm_routing_put_port_mixer),
  9537. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9538. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9539. msm_routing_put_port_mixer),
  9540. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9541. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9542. msm_routing_put_port_mixer),
  9543. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9544. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9545. msm_routing_put_port_mixer),
  9546. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  9547. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  9548. msm_routing_put_port_mixer),
  9549. };
  9550. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  9551. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9552. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9553. msm_routing_put_port_mixer),
  9554. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9555. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9556. msm_routing_put_port_mixer),
  9557. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9558. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9559. msm_routing_put_port_mixer),
  9560. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9561. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9562. msm_routing_put_port_mixer),
  9563. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9564. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9565. msm_routing_put_port_mixer),
  9566. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9567. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  9568. msm_routing_put_port_mixer),
  9569. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9570. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  9571. msm_routing_put_port_mixer),
  9572. };
  9573. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  9574. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9575. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  9576. msm_routing_put_listen_mixer),
  9577. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9578. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  9579. msm_routing_put_listen_mixer),
  9580. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  9581. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  9582. msm_routing_put_listen_mixer),
  9583. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9584. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  9585. msm_routing_put_listen_mixer),
  9586. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  9587. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  9588. msm_routing_put_listen_mixer),
  9589. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9590. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  9591. msm_routing_put_listen_mixer),
  9592. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9593. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  9594. msm_routing_put_listen_mixer),
  9595. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  9596. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  9597. msm_routing_put_listen_mixer),
  9598. };
  9599. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  9600. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9601. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  9602. msm_routing_put_listen_mixer),
  9603. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9604. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  9605. msm_routing_put_listen_mixer),
  9606. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  9607. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  9608. msm_routing_put_listen_mixer),
  9609. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9610. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  9611. msm_routing_put_listen_mixer),
  9612. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  9613. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  9614. msm_routing_put_listen_mixer),
  9615. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9616. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  9617. msm_routing_put_listen_mixer),
  9618. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9619. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  9620. msm_routing_put_listen_mixer),
  9621. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  9622. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  9623. msm_routing_put_listen_mixer),
  9624. };
  9625. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  9626. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9627. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  9628. msm_routing_put_listen_mixer),
  9629. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9630. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  9631. msm_routing_put_listen_mixer),
  9632. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  9633. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  9634. msm_routing_put_listen_mixer),
  9635. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9636. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  9637. msm_routing_put_listen_mixer),
  9638. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  9639. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  9640. msm_routing_put_listen_mixer),
  9641. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9642. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  9643. msm_routing_put_listen_mixer),
  9644. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9645. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  9646. msm_routing_put_listen_mixer),
  9647. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  9648. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  9649. msm_routing_put_listen_mixer),
  9650. };
  9651. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  9652. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9653. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  9654. msm_routing_put_listen_mixer),
  9655. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9656. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  9657. msm_routing_put_listen_mixer),
  9658. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  9659. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  9660. msm_routing_put_listen_mixer),
  9661. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9662. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  9663. msm_routing_put_listen_mixer),
  9664. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  9665. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  9666. msm_routing_put_listen_mixer),
  9667. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9668. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  9669. msm_routing_put_listen_mixer),
  9670. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9671. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  9672. msm_routing_put_listen_mixer),
  9673. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  9674. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  9675. msm_routing_put_listen_mixer),
  9676. };
  9677. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  9678. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9679. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  9680. msm_routing_put_listen_mixer),
  9681. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9682. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  9683. msm_routing_put_listen_mixer),
  9684. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  9685. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  9686. msm_routing_put_listen_mixer),
  9687. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9688. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  9689. msm_routing_put_listen_mixer),
  9690. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  9691. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  9692. msm_routing_put_listen_mixer),
  9693. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9694. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  9695. msm_routing_put_listen_mixer),
  9696. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9697. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  9698. msm_routing_put_listen_mixer),
  9699. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  9700. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  9701. msm_routing_put_listen_mixer),
  9702. };
  9703. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  9704. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9705. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  9706. msm_routing_put_listen_mixer),
  9707. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9708. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  9709. msm_routing_put_listen_mixer),
  9710. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  9711. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  9712. msm_routing_put_listen_mixer),
  9713. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9714. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  9715. msm_routing_put_listen_mixer),
  9716. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  9717. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  9718. msm_routing_put_listen_mixer),
  9719. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9720. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  9721. msm_routing_put_listen_mixer),
  9722. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9723. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  9724. msm_routing_put_listen_mixer),
  9725. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  9726. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  9727. msm_routing_put_listen_mixer),
  9728. };
  9729. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  9730. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9731. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  9732. msm_routing_put_listen_mixer),
  9733. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9734. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  9735. msm_routing_put_listen_mixer),
  9736. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  9737. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  9738. msm_routing_put_listen_mixer),
  9739. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9740. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  9741. msm_routing_put_listen_mixer),
  9742. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  9743. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  9744. msm_routing_put_listen_mixer),
  9745. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9746. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  9747. msm_routing_put_listen_mixer),
  9748. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9749. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  9750. msm_routing_put_listen_mixer),
  9751. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  9752. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  9753. msm_routing_put_listen_mixer),
  9754. };
  9755. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  9756. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9757. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  9758. msm_routing_put_listen_mixer),
  9759. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9760. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  9761. msm_routing_put_listen_mixer),
  9762. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  9763. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  9764. msm_routing_put_listen_mixer),
  9765. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9766. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  9767. msm_routing_put_listen_mixer),
  9768. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  9769. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  9770. msm_routing_put_listen_mixer),
  9771. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9772. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  9773. msm_routing_put_listen_mixer),
  9774. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9775. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  9776. msm_routing_put_listen_mixer),
  9777. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  9778. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  9779. msm_routing_put_listen_mixer),
  9780. };
  9781. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  9782. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9783. 0, 1, 0, msm_routing_get_switch_mixer,
  9784. msm_routing_put_switch_mixer);
  9785. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  9786. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9787. 0, 1, 0, msm_routing_get_switch_mixer,
  9788. msm_routing_put_switch_mixer);
  9789. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  9790. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9791. 0, 1, 0, msm_routing_get_switch_mixer,
  9792. msm_routing_put_switch_mixer);
  9793. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  9794. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9795. 0, 1, 0, msm_routing_get_switch_mixer,
  9796. msm_routing_put_switch_mixer);
  9797. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  9798. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9799. 0, 1, 0, msm_routing_get_switch_mixer,
  9800. msm_routing_put_switch_mixer);
  9801. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  9802. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9803. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  9804. msm_routing_put_fm_pcmrx_switch_mixer);
  9805. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  9806. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9807. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  9808. msm_routing_put_int0_mi2s_switch_mixer);
  9809. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  9810. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9811. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  9812. msm_routing_put_int4_mi2s_switch_mixer);
  9813. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  9814. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9815. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  9816. msm_routing_put_pri_mi2s_switch_mixer);
  9817. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  9818. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9819. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  9820. msm_routing_put_sec_mi2s_switch_mixer);
  9821. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  9822. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9823. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  9824. msm_routing_put_tert_mi2s_switch_mixer);
  9825. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  9826. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9827. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  9828. msm_routing_put_quat_mi2s_switch_mixer);
  9829. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  9830. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9831. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  9832. msm_routing_put_hfp_switch_mixer);
  9833. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  9834. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9835. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  9836. msm_routing_put_hfp_switch_mixer);
  9837. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  9838. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9839. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  9840. msm_routing_put_hfp_switch_mixer);
  9841. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  9842. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9843. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  9844. msm_routing_put_hfp_switch_mixer);
  9845. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  9846. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  9847. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  9848. msm_routing_put_usb_switch_mixer);
  9849. static const struct soc_enum lsm_port_enum =
  9850. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  9851. static const char * const lsm_func_text[] = {
  9852. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  9853. };
  9854. static const struct soc_enum lsm_func_enum =
  9855. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  9856. static const struct snd_kcontrol_new lsm_controls[] = {
  9857. /* kcontrol of lsm_function */
  9858. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  9859. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  9860. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  9861. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  9862. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  9863. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  9864. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  9865. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  9866. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  9867. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  9868. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  9869. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  9870. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  9871. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  9872. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  9873. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  9874. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  9875. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  9876. /* kcontrol of lsm_port */
  9877. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  9878. msm_routing_lsm_port_get,
  9879. msm_routing_lsm_port_put),
  9880. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  9881. msm_routing_lsm_port_get,
  9882. msm_routing_lsm_port_put),
  9883. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  9884. msm_routing_lsm_port_get,
  9885. msm_routing_lsm_port_put),
  9886. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  9887. msm_routing_lsm_port_get,
  9888. msm_routing_lsm_port_put),
  9889. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  9890. msm_routing_lsm_port_get,
  9891. msm_routing_lsm_port_put),
  9892. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  9893. msm_routing_lsm_port_get,
  9894. msm_routing_lsm_port_put),
  9895. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  9896. msm_routing_lsm_port_get,
  9897. msm_routing_lsm_port_put),
  9898. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  9899. msm_routing_lsm_port_get,
  9900. msm_routing_lsm_port_put),
  9901. };
  9902. static const char * const aanc_slim_0_rx_text[] = {
  9903. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  9904. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  9905. };
  9906. static const struct soc_enum aanc_slim_0_rx_enum =
  9907. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  9908. aanc_slim_0_rx_text);
  9909. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  9910. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  9911. msm_routing_slim_0_rx_aanc_mux_get,
  9912. msm_routing_slim_0_rx_aanc_mux_put)
  9913. };
  9914. static int msm_routing_get_stereo_to_custom_stereo_control(
  9915. struct snd_kcontrol *kcontrol,
  9916. struct snd_ctl_elem_value *ucontrol)
  9917. {
  9918. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  9919. return 0;
  9920. }
  9921. static int msm_routing_put_stereo_to_custom_stereo_control(
  9922. struct snd_kcontrol *kcontrol,
  9923. struct snd_ctl_elem_value *ucontrol)
  9924. {
  9925. int flag = 0, i = 0, rc = 0, idx = 0;
  9926. int be_index = 0, port_id, topo_id;
  9927. unsigned int session_id = 0;
  9928. uint16_t op_FL_ip_FL_weight = 0;
  9929. uint16_t op_FL_ip_FR_weight = 0;
  9930. uint16_t op_FR_ip_FL_weight = 0;
  9931. uint16_t op_FR_ip_FR_weight = 0;
  9932. flag = ucontrol->value.integer.value[0];
  9933. pr_debug("%s E flag %d\n", __func__, flag);
  9934. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  9935. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  9936. __func__, is_custom_stereo_on, flag);
  9937. return 0;
  9938. }
  9939. is_custom_stereo_on = flag ? true : false;
  9940. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  9941. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  9942. port_id = msm_bedais[be_index].port_id;
  9943. if (!msm_bedais[be_index].active)
  9944. continue;
  9945. if ((port_id != SLIMBUS_0_RX) &&
  9946. (port_id != RT_PROXY_PORT_001_RX) &&
  9947. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  9948. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  9949. continue;
  9950. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  9951. MSM_FRONTEND_DAI_MM_SIZE) {
  9952. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  9953. LEGACY_PCM_MODE)
  9954. goto skip_send_custom_stereo;
  9955. session_id =
  9956. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  9957. if (is_custom_stereo_on) {
  9958. op_FL_ip_FL_weight =
  9959. Q14_GAIN_ZERO_POINT_FIVE;
  9960. op_FL_ip_FR_weight =
  9961. Q14_GAIN_ZERO_POINT_FIVE;
  9962. op_FR_ip_FL_weight =
  9963. Q14_GAIN_ZERO_POINT_FIVE;
  9964. op_FR_ip_FR_weight =
  9965. Q14_GAIN_ZERO_POINT_FIVE;
  9966. } else {
  9967. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  9968. op_FL_ip_FR_weight = 0;
  9969. op_FR_ip_FL_weight = 0;
  9970. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  9971. }
  9972. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  9973. unsigned long copp =
  9974. session_copp_map[i]
  9975. [SESSION_TYPE_RX][be_index];
  9976. if (!test_bit(idx, &copp))
  9977. goto skip_send_custom_stereo;
  9978. topo_id = adm_get_topology_for_port_copp_idx(
  9979. msm_bedais[be_index].port_id, idx);
  9980. if (topo_id < 0)
  9981. pr_debug("%s:Err:custom stereo topo %d",
  9982. __func__, topo_id);
  9983. pr_debug("idx %d\n", idx);
  9984. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  9985. rc = msm_ds2_dap_set_custom_stereo_onoff
  9986. (msm_bedais[be_index].port_id,
  9987. idx, is_custom_stereo_on);
  9988. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  9989. rc = dolby_dap_set_custom_stereo_onoff(
  9990. msm_bedais[be_index].port_id,
  9991. idx, is_custom_stereo_on);
  9992. else
  9993. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  9994. (msm_bedais[be_index].port_id,
  9995. idx, session_id,
  9996. op_FL_ip_FL_weight,
  9997. op_FL_ip_FR_weight,
  9998. op_FR_ip_FL_weight,
  9999. op_FR_ip_FR_weight);
  10000. if (rc < 0)
  10001. skip_send_custom_stereo:
  10002. pr_err("%s: err setting custom stereo\n",
  10003. __func__);
  10004. }
  10005. }
  10006. }
  10007. return 0;
  10008. }
  10009. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  10010. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  10011. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  10012. msm_routing_put_stereo_to_custom_stereo_control),
  10013. };
  10014. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10015. struct snd_ctl_elem_value *ucontrol)
  10016. {
  10017. return 0;
  10018. }
  10019. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10020. struct snd_ctl_elem_value *ucontrol)
  10021. {
  10022. int i = 0, j;
  10023. int num_app_types = ucontrol->value.integer.value[i++];
  10024. pr_debug("%s\n", __func__);
  10025. memset(app_type_cfg, 0, MAX_APP_TYPES*
  10026. sizeof(struct msm_pcm_routing_app_type_data));
  10027. if (num_app_types > MAX_APP_TYPES) {
  10028. pr_err("%s: number of app types exceed the max supported\n",
  10029. __func__);
  10030. return -EINVAL;
  10031. }
  10032. for (j = 0; j < num_app_types; j++) {
  10033. app_type_cfg[j].app_type =
  10034. ucontrol->value.integer.value[i++];
  10035. app_type_cfg[j].sample_rate =
  10036. ucontrol->value.integer.value[i++];
  10037. app_type_cfg[j].bit_width =
  10038. ucontrol->value.integer.value[i++];
  10039. }
  10040. return 0;
  10041. }
  10042. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  10043. struct snd_ctl_elem_value *ucontrol)
  10044. {
  10045. int j, fe_id, be_id, port_type;
  10046. int ret = 0;
  10047. unsigned long copp;
  10048. struct msm_pcm_routing_bdai_data *bedai;
  10049. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10050. SESSION_TYPE_RX;
  10051. int app_type = ucontrol->value.integer.value[1];
  10052. int gain = (ucontrol->value.integer.value[2] +
  10053. ucontrol->value.integer.value[3])/2;
  10054. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10055. MSM_AFE_PORT_TYPE_TX;
  10056. mutex_lock(&routing_lock);
  10057. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10058. if (is_be_dai_extproc(be_id))
  10059. continue;
  10060. bedai = &msm_bedais[be_id];
  10061. if (afe_get_port_type(bedai->port_id) != port_type)
  10062. continue;
  10063. if (!bedai->active)
  10064. continue;
  10065. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10066. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10067. continue;
  10068. if (app_type !=
  10069. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10070. continue;
  10071. copp = session_copp_map[fe_id][dir][be_id];
  10072. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  10073. if (!test_bit(j, &copp))
  10074. continue;
  10075. ret |= adm_set_volume(bedai->port_id, j, gain);
  10076. }
  10077. }
  10078. }
  10079. mutex_unlock(&routing_lock);
  10080. return ret ? -EINVAL : 0;
  10081. }
  10082. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  10083. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  10084. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  10085. msm_routing_put_app_type_cfg_control),
  10086. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  10087. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  10088. };
  10089. static int msm_routing_get_lsm_app_type_cfg_control(
  10090. struct snd_kcontrol *kcontrol,
  10091. struct snd_ctl_elem_value *ucontrol)
  10092. {
  10093. return 0;
  10094. }
  10095. static int msm_routing_put_lsm_app_type_cfg_control(
  10096. struct snd_kcontrol *kcontrol,
  10097. struct snd_ctl_elem_value *ucontrol)
  10098. {
  10099. int i = 0, j;
  10100. int num_app_types = ucontrol->value.integer.value[i++];
  10101. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  10102. sizeof(struct msm_pcm_routing_app_type_data));
  10103. if (num_app_types > MAX_APP_TYPES) {
  10104. pr_err("%s: number of app types exceed the max supported\n",
  10105. __func__);
  10106. return -EINVAL;
  10107. }
  10108. for (j = 0; j < num_app_types; j++) {
  10109. lsm_app_type_cfg[j].app_type =
  10110. ucontrol->value.integer.value[i++];
  10111. lsm_app_type_cfg[j].sample_rate =
  10112. ucontrol->value.integer.value[i++];
  10113. lsm_app_type_cfg[j].bit_width =
  10114. ucontrol->value.integer.value[i++];
  10115. }
  10116. return 0;
  10117. }
  10118. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  10119. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  10120. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  10121. msm_routing_put_lsm_app_type_cfg_control),
  10122. };
  10123. static int msm_routing_get_use_ds1_or_ds2_control(
  10124. struct snd_kcontrol *kcontrol,
  10125. struct snd_ctl_elem_value *ucontrol)
  10126. {
  10127. ucontrol->value.integer.value[0] = is_ds2_on;
  10128. return 0;
  10129. }
  10130. static int msm_routing_put_use_ds1_or_ds2_control(
  10131. struct snd_kcontrol *kcontrol,
  10132. struct snd_ctl_elem_value *ucontrol)
  10133. {
  10134. is_ds2_on = ucontrol->value.integer.value[0];
  10135. return 0;
  10136. }
  10137. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  10138. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  10139. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  10140. msm_routing_put_use_ds1_or_ds2_control),
  10141. };
  10142. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  10143. struct snd_ctl_elem_value *ucontrol) {
  10144. int rc = 0;
  10145. int be_idx = 0;
  10146. char *param_value;
  10147. int *update_param_value;
  10148. uint32_t param_length = sizeof(uint32_t);
  10149. uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
  10150. param_value = kzalloc(param_length + param_payload_len, GFP_KERNEL);
  10151. if (!param_value)
  10152. return -ENOMEM;
  10153. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  10154. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  10155. break;
  10156. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  10157. rc = adm_get_params(SLIMBUS_0_TX, 0,
  10158. RMS_MODULEID_APPI_PASSTHRU,
  10159. RMS_PARAM_FIRST_SAMPLE,
  10160. param_length + param_payload_len,
  10161. param_value);
  10162. if (rc) {
  10163. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  10164. kfree(param_value);
  10165. return -EINVAL;
  10166. }
  10167. update_param_value = (int *)param_value;
  10168. ucontrol->value.integer.value[0] = update_param_value[0];
  10169. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  10170. __func__, update_param_value[0]);
  10171. }
  10172. kfree(param_value);
  10173. return 0;
  10174. }
  10175. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  10176. struct snd_ctl_elem_value *ucontrol)
  10177. {
  10178. voc_session_id = ucontrol->value.integer.value[0];
  10179. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  10180. return 0;
  10181. }
  10182. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  10183. struct snd_ctl_elem_value *ucontrol)
  10184. {
  10185. ucontrol->value.integer.value[0] = voc_session_id;
  10186. return 0;
  10187. }
  10188. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  10189. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  10190. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  10191. msm_voc_session_id_put),
  10192. };
  10193. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  10194. struct snd_ctl_elem_info *uinfo)
  10195. {
  10196. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  10197. uinfo->count = sizeof(struct sound_focus_param);
  10198. return 0;
  10199. }
  10200. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  10201. struct snd_ctl_elem_value *ucontrol)
  10202. {
  10203. int ret = 0;
  10204. struct sound_focus_param soundFocusData;
  10205. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  10206. sizeof(struct sound_focus_param));
  10207. ret = voc_set_sound_focus(soundFocusData);
  10208. if (ret) {
  10209. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  10210. __func__, ret);
  10211. ret = -EINVAL;
  10212. }
  10213. return ret;
  10214. }
  10215. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  10216. struct snd_ctl_elem_value *ucontrol)
  10217. {
  10218. int ret = 0;
  10219. struct sound_focus_param soundFocusData;
  10220. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  10221. ret = voc_get_sound_focus(&soundFocusData);
  10222. if (ret) {
  10223. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  10224. __func__, ret);
  10225. ret = -EINVAL;
  10226. goto done;
  10227. }
  10228. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  10229. sizeof(struct sound_focus_param));
  10230. done:
  10231. return ret;
  10232. }
  10233. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  10234. struct snd_ctl_elem_info *uinfo)
  10235. {
  10236. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  10237. uinfo->count = sizeof(struct source_tracking_param);
  10238. return 0;
  10239. }
  10240. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  10241. struct snd_ctl_elem_value *ucontrol)
  10242. {
  10243. int ret = 0;
  10244. struct source_tracking_param sourceTrackingData;
  10245. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  10246. ret = voc_get_source_tracking(&sourceTrackingData);
  10247. if (ret) {
  10248. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  10249. __func__, ret);
  10250. ret = -EINVAL;
  10251. goto done;
  10252. }
  10253. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  10254. sizeof(struct source_tracking_param));
  10255. done:
  10256. return ret;
  10257. }
  10258. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  10259. int *copp_idx)
  10260. {
  10261. int i, idx, be_idx;
  10262. int ret = 0;
  10263. unsigned long copp;
  10264. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  10265. ret = q6audio_validate_port(port_id);
  10266. if (ret < 0) {
  10267. pr_err("%s: port validation failed id 0x%x ret %d\n",
  10268. __func__, port_id, ret);
  10269. ret = -EINVAL;
  10270. goto done;
  10271. }
  10272. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  10273. if (msm_bedais[be_idx].port_id == port_id)
  10274. break;
  10275. }
  10276. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  10277. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  10278. ret = -EINVAL;
  10279. goto done;
  10280. }
  10281. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  10282. MSM_FRONTEND_DAI_MM_SIZE) {
  10283. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  10284. copp = session_copp_map[i]
  10285. [session_type][be_idx];
  10286. if (test_bit(idx, &copp))
  10287. break;
  10288. }
  10289. if (idx >= MAX_COPPS_PER_PORT)
  10290. continue;
  10291. else
  10292. break;
  10293. }
  10294. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  10295. pr_err("%s: Invalid FE, exiting\n", __func__);
  10296. ret = -EINVAL;
  10297. goto done;
  10298. }
  10299. *copp_idx = idx;
  10300. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  10301. done:
  10302. return ret;
  10303. }
  10304. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  10305. const char *prefix, int *port_id)
  10306. {
  10307. int ret = 0;
  10308. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  10309. /*
  10310. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  10311. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  10312. * and compare the string with the backend name to derive the port id.
  10313. */
  10314. if (!strcmp(kcontrol->id.name + strlen(prefix),
  10315. "SLIMBUS_0")) {
  10316. *port_id = SLIMBUS_0_TX;
  10317. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  10318. "TERT_MI2S")) {
  10319. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  10320. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  10321. "INT3_MI2S")) {
  10322. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  10323. } else {
  10324. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  10325. __func__, kcontrol->id.name);
  10326. ret = -EINVAL;
  10327. goto done;
  10328. }
  10329. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  10330. __func__, kcontrol->id.name, *port_id);
  10331. done:
  10332. return ret;
  10333. }
  10334. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  10335. struct snd_ctl_elem_value *ucontrol)
  10336. {
  10337. int ret = 0;
  10338. struct sound_focus_param soundFocusData;
  10339. int port_id, copp_idx;
  10340. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  10341. "Sound Focus Audio Tx ", &port_id);
  10342. if (ret != 0) {
  10343. pr_err("%s: Error in deriving port id, err=%d\n",
  10344. __func__, ret);
  10345. ret = -EINVAL;
  10346. goto done;
  10347. }
  10348. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  10349. &copp_idx);
  10350. if (ret) {
  10351. pr_err("%s: Could not get copp idx for port_id=%d\n",
  10352. __func__, port_id);
  10353. ret = -EINVAL;
  10354. goto done;
  10355. }
  10356. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  10357. sizeof(struct sound_focus_param));
  10358. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  10359. if (ret) {
  10360. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  10361. __func__, ret);
  10362. ret = -EINVAL;
  10363. goto done;
  10364. }
  10365. done:
  10366. return ret;
  10367. }
  10368. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  10369. struct snd_ctl_elem_value *ucontrol)
  10370. {
  10371. int ret = 0;
  10372. struct sound_focus_param soundFocusData;
  10373. int port_id, copp_idx;
  10374. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  10375. "Sound Focus Audio Tx ", &port_id);
  10376. if (ret) {
  10377. pr_err("%s: Error in deriving port id, err=%d\n",
  10378. __func__, ret);
  10379. ret = -EINVAL;
  10380. goto done;
  10381. }
  10382. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  10383. &copp_idx);
  10384. if (ret) {
  10385. pr_err("%s: Could not get copp idx for port_id=%d\n",
  10386. __func__, port_id);
  10387. ret = -EINVAL;
  10388. goto done;
  10389. }
  10390. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  10391. if (ret) {
  10392. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  10393. __func__, ret);
  10394. ret = -EINVAL;
  10395. goto done;
  10396. }
  10397. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  10398. sizeof(struct sound_focus_param));
  10399. done:
  10400. return ret;
  10401. }
  10402. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  10403. struct snd_ctl_elem_value *ucontrol)
  10404. {
  10405. int ret = 0;
  10406. struct source_tracking_param sourceTrackingData;
  10407. int port_id, copp_idx;
  10408. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  10409. "Source Tracking Audio Tx ", &port_id);
  10410. if (ret) {
  10411. pr_err("%s: Error in deriving port id, err=%d\n",
  10412. __func__, ret);
  10413. ret = -EINVAL;
  10414. goto done;
  10415. }
  10416. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  10417. &copp_idx);
  10418. if (ret) {
  10419. pr_err("%s: Could not get copp idx for port_id=%d\n",
  10420. __func__, port_id);
  10421. ret = -EINVAL;
  10422. goto done;
  10423. }
  10424. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  10425. if (ret) {
  10426. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  10427. __func__, ret);
  10428. ret = -EINVAL;
  10429. goto done;
  10430. }
  10431. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  10432. sizeof(struct source_tracking_param));
  10433. done:
  10434. return ret;
  10435. }
  10436. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  10437. {
  10438. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  10439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10440. .name = "Sound Focus Voice Tx SLIMBUS_0",
  10441. .info = msm_sound_focus_info,
  10442. .get = msm_voice_sound_focus_get,
  10443. .put = msm_voice_sound_focus_put,
  10444. },
  10445. {
  10446. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  10447. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10448. .name = "Source Tracking Voice Tx SLIMBUS_0",
  10449. .info = msm_source_tracking_info,
  10450. .get = msm_voice_source_tracking_get,
  10451. },
  10452. {
  10453. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  10454. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10455. .name = "Sound Focus Audio Tx SLIMBUS_0",
  10456. .info = msm_sound_focus_info,
  10457. .get = msm_audio_sound_focus_get,
  10458. .put = msm_audio_sound_focus_put,
  10459. },
  10460. {
  10461. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  10462. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10463. .name = "Source Tracking Audio Tx SLIMBUS_0",
  10464. .info = msm_source_tracking_info,
  10465. .get = msm_audio_source_tracking_get,
  10466. },
  10467. {
  10468. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  10469. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10470. .name = "Sound Focus Voice Tx TERT_MI2S",
  10471. .info = msm_sound_focus_info,
  10472. .get = msm_voice_sound_focus_get,
  10473. .put = msm_voice_sound_focus_put,
  10474. },
  10475. {
  10476. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  10477. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10478. .name = "Source Tracking Voice Tx TERT_MI2S",
  10479. .info = msm_source_tracking_info,
  10480. .get = msm_voice_source_tracking_get,
  10481. },
  10482. {
  10483. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  10484. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10485. .name = "Sound Focus Audio Tx TERT_MI2S",
  10486. .info = msm_sound_focus_info,
  10487. .get = msm_audio_sound_focus_get,
  10488. .put = msm_audio_sound_focus_put,
  10489. },
  10490. {
  10491. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  10492. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10493. .name = "Source Tracking Audio Tx TERT_MI2S",
  10494. .info = msm_source_tracking_info,
  10495. .get = msm_audio_source_tracking_get,
  10496. },
  10497. {
  10498. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  10499. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10500. .name = "Sound Focus Voice Tx INT3_MI2S",
  10501. .info = msm_sound_focus_info,
  10502. .get = msm_voice_sound_focus_get,
  10503. .put = msm_voice_sound_focus_put,
  10504. },
  10505. {
  10506. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  10507. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10508. .name = "Source Tracking Voice Tx INT3_MI2S",
  10509. .info = msm_source_tracking_info,
  10510. .get = msm_voice_source_tracking_get,
  10511. },
  10512. {
  10513. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  10514. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10515. .name = "Sound Focus Audio Tx INT3_MI2S",
  10516. .info = msm_sound_focus_info,
  10517. .get = msm_audio_sound_focus_get,
  10518. .put = msm_audio_sound_focus_put,
  10519. },
  10520. {
  10521. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  10522. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  10523. .name = "Source Tracking Audio Tx INT3_MI2S",
  10524. .info = msm_source_tracking_info,
  10525. .get = msm_audio_source_tracking_get,
  10526. },
  10527. };
  10528. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  10529. struct snd_ctl_elem_value *ucontrol)
  10530. {
  10531. int ret = 0;
  10532. int item;
  10533. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  10534. pr_debug("%s item is %d\n", __func__,
  10535. ucontrol->value.enumerated.item[0]);
  10536. mutex_lock(&routing_lock);
  10537. item = ucontrol->value.enumerated.item[0];
  10538. if (item < e->items) {
  10539. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  10540. __func__, e->shift_l, e->values[item]);
  10541. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  10542. e->values[item] < MSM_BACKEND_DAI_MAX)
  10543. /* Enable feedback TX path */
  10544. ret = afe_spk_prot_feed_back_cfg(
  10545. msm_bedais[e->values[item]].port_id,
  10546. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  10547. else {
  10548. pr_debug("%s values are out of range item %d\n",
  10549. __func__, e->values[item]);
  10550. /* Disable feedback TX path */
  10551. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  10552. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  10553. else
  10554. ret = -EINVAL;
  10555. }
  10556. } else {
  10557. pr_err("%s item value is out of range item\n", __func__);
  10558. ret = -EINVAL;
  10559. }
  10560. mutex_unlock(&routing_lock);
  10561. return ret;
  10562. }
  10563. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  10564. struct snd_ctl_elem_value *ucontrol)
  10565. {
  10566. int ret = 0;
  10567. int item;
  10568. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  10569. pr_debug("%s item is %d\n", __func__,
  10570. ucontrol->value.enumerated.item[0]);
  10571. mutex_lock(&routing_lock);
  10572. item = ucontrol->value.enumerated.item[0];
  10573. if (item < e->items) {
  10574. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  10575. __func__, e->shift_l, e->values[item]);
  10576. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  10577. e->values[item] < MSM_BACKEND_DAI_MAX)
  10578. /* Enable feedback TX path */
  10579. ret = afe_spk_prot_feed_back_cfg(
  10580. msm_bedais[e->values[item]].port_id,
  10581. msm_bedais[e->shift_l].port_id,
  10582. 1, 1, 1);
  10583. else {
  10584. pr_debug("%s values are out of range item %d\n",
  10585. __func__, e->values[item]);
  10586. /* Disable feedback TX path */
  10587. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  10588. ret = afe_spk_prot_feed_back_cfg(0,
  10589. 0, 0, 0, 0);
  10590. else
  10591. ret = -EINVAL;
  10592. }
  10593. } else {
  10594. pr_err("%s item value is out of range item\n", __func__);
  10595. ret = -EINVAL;
  10596. }
  10597. mutex_unlock(&routing_lock);
  10598. return ret;
  10599. }
  10600. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  10601. struct snd_ctl_elem_value *ucontrol)
  10602. {
  10603. pr_debug("%s\n", __func__);
  10604. return 0;
  10605. }
  10606. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  10607. struct snd_ctl_elem_value *ucontrol)
  10608. {
  10609. pr_debug("%s\n", __func__);
  10610. ucontrol->value.enumerated.item[0] = 0;
  10611. return 0;
  10612. }
  10613. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  10614. "ZERO", "SLIM4_TX"
  10615. };
  10616. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  10617. "ZERO", "SLIM4_TX"
  10618. };
  10619. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  10620. "ZERO", "SENARY_TX"
  10621. };
  10622. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  10623. "ZERO", "INT5_MI2S_TX"
  10624. };
  10625. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  10626. "ZERO", "INT5_MI2S_TX"
  10627. };
  10628. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  10629. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  10630. };
  10631. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  10632. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  10633. };
  10634. static const int const mi2s_rx_vi_fb_tx_value[] = {
  10635. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  10636. };
  10637. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  10638. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  10639. };
  10640. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  10641. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  10642. };
  10643. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  10644. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  10645. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  10646. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  10647. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  10648. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  10649. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  10650. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  10651. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  10652. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  10653. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  10654. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  10655. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  10656. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  10657. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  10658. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  10659. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  10660. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  10661. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  10662. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  10663. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  10664. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  10665. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  10666. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  10667. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  10668. spkr_prot_put_vi_lch_port);
  10669. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  10670. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  10671. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  10672. spkr_prot_put_vi_rch_port);
  10673. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  10674. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  10675. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  10676. spkr_prot_put_vi_lch_port);
  10677. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  10678. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  10679. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  10680. spkr_prot_put_vi_lch_port);
  10681. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  10682. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  10683. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  10684. spkr_prot_put_vi_rch_port);
  10685. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  10686. /* Frontend AIF */
  10687. /* Widget name equals to Front-End DAI name<Need confirmation>,
  10688. * Stream name must contains substring of front-end dai name
  10689. */
  10690. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  10691. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  10692. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  10693. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  10694. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  10695. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  10696. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  10697. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  10698. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  10699. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  10700. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  10701. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  10702. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  10703. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  10704. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  10705. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  10706. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  10707. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  10708. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  10709. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  10710. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  10711. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  10712. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  10713. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  10714. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  10715. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  10716. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  10717. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  10718. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  10719. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  10720. SND_SOC_DAPM_AIF_IN("CS-VOICE_DL1", "CS-VOICE Playback", 0, 0, 0, 0),
  10721. SND_SOC_DAPM_AIF_OUT("CS-VOICE_UL1", "CS-VOICE Capture", 0, 0, 0, 0),
  10722. SND_SOC_DAPM_AIF_IN("VOICE2_DL", "Voice2 Playback", 0, 0, 0, 0),
  10723. SND_SOC_DAPM_AIF_OUT("VOICE2_UL", "Voice2 Capture", 0, 0, 0, 0),
  10724. SND_SOC_DAPM_AIF_IN("VoLTE_DL", "VoLTE Playback", 0, 0, 0, 0),
  10725. SND_SOC_DAPM_AIF_OUT("VoLTE_UL", "VoLTE Capture", 0, 0, 0, 0),
  10726. SND_SOC_DAPM_AIF_IN("VoWLAN_DL", "VoWLAN Playback", 0, 0, 0, 0),
  10727. SND_SOC_DAPM_AIF_OUT("VoWLAN_UL", "VoWLAN Capture", 0, 0, 0, 0),
  10728. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  10729. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  10730. "VoiceMMode1 Playback", 0, 0, 0, 0),
  10731. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  10732. "VoiceMMode1 Capture", 0, 0, 0, 0),
  10733. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  10734. "VoiceMMode2 Playback", 0, 0, 0, 0),
  10735. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  10736. "VoiceMMode2 Capture", 0, 0, 0, 0),
  10737. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  10738. 0, 0, 0, 0),
  10739. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  10740. 0, 0, 0, 0),
  10741. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  10742. 0, 0, 0, 0),
  10743. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  10744. 0, 0, 0, 0),
  10745. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  10746. 0, 0, 0, 0),
  10747. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  10748. 0, 0, 0, 0),
  10749. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  10750. 0, 0, 0, 0),
  10751. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  10752. 0, 0, 0, 0),
  10753. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  10754. 0, 0, 0, 0),
  10755. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  10756. 0, 0, 0, 0),
  10757. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  10758. 0, 0, 0, 0),
  10759. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  10760. 0, 0, 0, 0),
  10761. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  10762. 0, 0, 0, 0),
  10763. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  10764. 0, 0, 0, 0),
  10765. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  10766. 0, 0, 0, 0),
  10767. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  10768. 0, 0, 0, 0),
  10769. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  10770. 0, 0, 0, 0),
  10771. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  10772. 0, 0, 0, 0),
  10773. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  10774. 0, 0, 0, 0),
  10775. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  10776. 0, 0, 0, 0),
  10777. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  10778. 0, 0, 0, 0),
  10779. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  10780. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  10781. 0, 0, 0, 0),
  10782. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  10783. "INT0 MI2S_RX Hostless Playback",
  10784. 0, 0, 0, 0),
  10785. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  10786. "INT4 MI2S_RX Hostless Playback",
  10787. 0, 0, 0, 0),
  10788. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  10789. "Primary MI2S_RX Hostless Playback",
  10790. 0, 0, 0, 0),
  10791. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  10792. "Secondary MI2S_RX Hostless Playback",
  10793. 0, 0, 0, 0),
  10794. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  10795. "Tertiary MI2S_RX Hostless Playback",
  10796. 0, 0, 0, 0),
  10797. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  10798. "Quaternary MI2S_RX Hostless Playback",
  10799. 0, 0, 0, 0),
  10800. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  10801. 0, 0, 0, 0),
  10802. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  10803. 0, 0, 0, 0),
  10804. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  10805. 0, 0, 0, 0),
  10806. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  10807. "INT3 MI2S_TX Hostless Capture",
  10808. 0, 0, 0, 0),
  10809. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  10810. "Tertiary MI2S_TX Hostless Capture",
  10811. 0, 0, 0, 0),
  10812. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  10813. "Secondary MI2S_TX Hostless Capture",
  10814. 0, 0, 0, 0),
  10815. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  10816. "Primary MI2S_TX Hostless Capture",
  10817. 0, 0, 0, 0),
  10818. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  10819. 0, 0, 0, 0),
  10820. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  10821. 0, 0, 0, 0),
  10822. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  10823. "Quaternary MI2S_TX Hostless Capture",
  10824. 0, 0, 0, 0),
  10825. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  10826. "Primary TDM0 Hostless Playback",
  10827. 0, 0, 0, 0),
  10828. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  10829. "Primary TDM0 Hostless Capture",
  10830. 0, 0, 0, 0),
  10831. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  10832. "Primary TDM1 Hostless Playback",
  10833. 0, 0, 0, 0),
  10834. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  10835. "Primary TDM1 Hostless Capture",
  10836. 0, 0, 0, 0),
  10837. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  10838. "Primary TDM2 Hostless Playback",
  10839. 0, 0, 0, 0),
  10840. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  10841. "Primary TDM2 Hostless Capture",
  10842. 0, 0, 0, 0),
  10843. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  10844. "Primary TDM3 Hostless Playback",
  10845. 0, 0, 0, 0),
  10846. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  10847. "Primary TDM3 Hostless Capture",
  10848. 0, 0, 0, 0),
  10849. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  10850. "Primary TDM4 Hostless Playback",
  10851. 0, 0, 0, 0),
  10852. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  10853. "Primary TDM4 Hostless Capture",
  10854. 0, 0, 0, 0),
  10855. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  10856. "Primary TDM5 Hostless Playback",
  10857. 0, 0, 0, 0),
  10858. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  10859. "Primary TDM5 Hostless Capture",
  10860. 0, 0, 0, 0),
  10861. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  10862. "Primary TDM6 Hostless Playback",
  10863. 0, 0, 0, 0),
  10864. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  10865. "Primary TDM6 Hostless Capture",
  10866. 0, 0, 0, 0),
  10867. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  10868. "Primary TDM7 Hostless Playback",
  10869. 0, 0, 0, 0),
  10870. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  10871. "Primary TDM7 Hostless Capture",
  10872. 0, 0, 0, 0),
  10873. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  10874. "Secondary TDM0 Hostless Playback",
  10875. 0, 0, 0, 0),
  10876. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  10877. "Secondary TDM0 Hostless Capture",
  10878. 0, 0, 0, 0),
  10879. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  10880. "Secondary TDM1 Hostless Playback",
  10881. 0, 0, 0, 0),
  10882. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  10883. "Secondary TDM1 Hostless Capture",
  10884. 0, 0, 0, 0),
  10885. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  10886. "Secondary TDM2 Hostless Playback",
  10887. 0, 0, 0, 0),
  10888. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  10889. "Secondary TDM2 Hostless Capture",
  10890. 0, 0, 0, 0),
  10891. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  10892. "Secondary TDM3 Hostless Playback",
  10893. 0, 0, 0, 0),
  10894. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  10895. "Secondary TDM3 Hostless Capture",
  10896. 0, 0, 0, 0),
  10897. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  10898. "Secondary TDM4 Hostless Playback",
  10899. 0, 0, 0, 0),
  10900. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  10901. "Secondary TDM4 Hostless Capture",
  10902. 0, 0, 0, 0),
  10903. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  10904. "Secondary TDM5 Hostless Playback",
  10905. 0, 0, 0, 0),
  10906. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  10907. "Secondary TDM5 Hostless Capture",
  10908. 0, 0, 0, 0),
  10909. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  10910. "Secondary TDM6 Hostless Playback",
  10911. 0, 0, 0, 0),
  10912. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  10913. "Secondary TDM6 Hostless Capture",
  10914. 0, 0, 0, 0),
  10915. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  10916. "Secondary TDM7 Hostless Playback",
  10917. 0, 0, 0, 0),
  10918. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  10919. "Secondary TDM7 Hostless Capture",
  10920. 0, 0, 0, 0),
  10921. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  10922. "Tertiary TDM0 Hostless Playback",
  10923. 0, 0, 0, 0),
  10924. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  10925. "Tertiary TDM0 Hostless Capture",
  10926. 0, 0, 0, 0),
  10927. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  10928. "Tertiary TDM1 Hostless Playback",
  10929. 0, 0, 0, 0),
  10930. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  10931. "Tertiary TDM1 Hostless Capture",
  10932. 0, 0, 0, 0),
  10933. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  10934. "Tertiary TDM2 Hostless Playback",
  10935. 0, 0, 0, 0),
  10936. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  10937. "Tertiary TDM2 Hostless Capture",
  10938. 0, 0, 0, 0),
  10939. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  10940. "Tertiary TDM3 Hostless Playback",
  10941. 0, 0, 0, 0),
  10942. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  10943. "Tertiary TDM3 Hostless Capture",
  10944. 0, 0, 0, 0),
  10945. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  10946. "Tertiary TDM4 Hostless Playback",
  10947. 0, 0, 0, 0),
  10948. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  10949. "Tertiary TDM4 Hostless Capture",
  10950. 0, 0, 0, 0),
  10951. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  10952. "Tertiary TDM5 Hostless Playback",
  10953. 0, 0, 0, 0),
  10954. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  10955. "Tertiary TDM5 Hostless Capture",
  10956. 0, 0, 0, 0),
  10957. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  10958. "Tertiary TDM6 Hostless Playback",
  10959. 0, 0, 0, 0),
  10960. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  10961. "Tertiary TDM6 Hostless Capture",
  10962. 0, 0, 0, 0),
  10963. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  10964. "Tertiary TDM7 Hostless Playback",
  10965. 0, 0, 0, 0),
  10966. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  10967. "Tertiary TDM7 Hostless Capture",
  10968. 0, 0, 0, 0),
  10969. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  10970. "Quaternary TDM0 Hostless Playback",
  10971. 0, 0, 0, 0),
  10972. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  10973. "Quaternary TDM0 Hostless Capture",
  10974. 0, 0, 0, 0),
  10975. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  10976. "Quaternary TDM1 Hostless Playback",
  10977. 0, 0, 0, 0),
  10978. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  10979. "Quaternary TDM1 Hostless Capture",
  10980. 0, 0, 0, 0),
  10981. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  10982. "Quaternary TDM2 Hostless Playback",
  10983. 0, 0, 0, 0),
  10984. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  10985. "Quaternary TDM2 Hostless Capture",
  10986. 0, 0, 0, 0),
  10987. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  10988. "Quaternary TDM3 Hostless Playback",
  10989. 0, 0, 0, 0),
  10990. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  10991. "Quaternary TDM3 Hostless Capture",
  10992. 0, 0, 0, 0),
  10993. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  10994. "Quaternary TDM4 Hostless Playback",
  10995. 0, 0, 0, 0),
  10996. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  10997. "Quaternary TDM4 Hostless Capture",
  10998. 0, 0, 0, 0),
  10999. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  11000. "Quaternary TDM5 Hostless Playback",
  11001. 0, 0, 0, 0),
  11002. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  11003. "Quaternary TDM5 Hostless Capture",
  11004. 0, 0, 0, 0),
  11005. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  11006. "Quaternary TDM6 Hostless Playback",
  11007. 0, 0, 0, 0),
  11008. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  11009. "Quaternary TDM6 Hostless Capture",
  11010. 0, 0, 0, 0),
  11011. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  11012. "Quaternary TDM7 Hostless Playback",
  11013. 0, 0, 0, 0),
  11014. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  11015. "Quaternary TDM7 Hostless Capture",
  11016. 0, 0, 0, 0),
  11017. /* LSM */
  11018. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  11019. 0, 0, 0, 0),
  11020. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  11021. 0, 0, 0, 0),
  11022. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  11023. 0, 0, 0, 0),
  11024. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  11025. 0, 0, 0, 0),
  11026. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  11027. 0, 0, 0, 0),
  11028. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  11029. 0, 0, 0, 0),
  11030. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  11031. 0, 0, 0, 0),
  11032. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  11033. 0, 0, 0, 0),
  11034. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  11035. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  11036. /* Backend AIF */
  11037. /* Stream name equals to backend dai link stream name */
  11038. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  11039. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  11040. 0, 0, 0, 0),
  11041. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  11042. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  11043. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  11044. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  11045. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  11046. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  11047. 0, 0, 0, 0),
  11048. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  11049. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  11050. 0, 0, 0, 0),
  11051. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  11052. 0, 0, 0, 0),
  11053. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  11054. 0, 0, 0, 0),
  11055. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  11056. "Secondary MI2S Playback SD1",
  11057. 0, 0, 0, 0),
  11058. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  11059. 0, 0, 0, 0),
  11060. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  11061. 0, 0, 0, 0),
  11062. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  11063. 0, 0, 0, 0),
  11064. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  11065. 0, 0, 0, 0),
  11066. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  11067. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  11068. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  11069. 0, 0, 0, 0),
  11070. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  11071. 0, 0, 0, 0),
  11072. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  11073. 0, 0, 0, 0),
  11074. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  11075. 0, 0, 0, 0),
  11076. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  11077. 0, 0, 0, 0),
  11078. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  11079. 0, 0, 0, 0),
  11080. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  11081. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  11082. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  11083. 0, 0, 0, 0),
  11084. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  11085. 0, 0, 0, 0),
  11086. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  11087. 0, 0, 0, 0),
  11088. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  11089. 0, 0, 0, 0),
  11090. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  11091. 0, 0, 0, 0),
  11092. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  11093. 0, 0, 0, 0),
  11094. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  11095. 0, 0, 0, 0),
  11096. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  11097. 0, 0, 0, 0),
  11098. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  11099. 0, 0, 0, 0),
  11100. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  11101. 0, 0, 0, 0),
  11102. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  11103. 0, 0, 0, 0),
  11104. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  11105. 0, 0, 0, 0),
  11106. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  11107. 0, 0, 0, 0),
  11108. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  11109. 0, 0, 0, 0),
  11110. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  11111. 0, 0, 0, 0),
  11112. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  11113. 0, 0, 0, 0),
  11114. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  11115. 0, 0, 0, 0),
  11116. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  11117. 0, 0, 0, 0),
  11118. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  11119. 0, 0, 0, 0),
  11120. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  11121. 0, 0, 0, 0),
  11122. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  11123. 0, 0, 0, 0),
  11124. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  11125. 0, 0, 0, 0),
  11126. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  11127. 0, 0, 0, 0),
  11128. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  11129. 0, 0, 0, 0),
  11130. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  11131. 0, 0, 0, 0),
  11132. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  11133. 0, 0, 0, 0),
  11134. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  11135. 0, 0, 0, 0),
  11136. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  11137. 0, 0, 0, 0),
  11138. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  11139. 0, 0, 0, 0),
  11140. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  11141. 0, 0, 0, 0),
  11142. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  11143. 0, 0, 0, 0),
  11144. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  11145. 0, 0, 0, 0),
  11146. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  11147. 0, 0, 0, 0),
  11148. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  11149. 0, 0, 0, 0),
  11150. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  11151. 0, 0, 0, 0),
  11152. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  11153. 0, 0, 0, 0),
  11154. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  11155. 0, 0, 0, 0),
  11156. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  11157. 0, 0, 0, 0),
  11158. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  11159. 0, 0, 0, 0),
  11160. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  11161. 0, 0, 0, 0),
  11162. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  11163. 0, 0, 0, 0),
  11164. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  11165. 0, 0, 0, 0),
  11166. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  11167. 0, 0, 0, 0),
  11168. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  11169. 0, 0, 0, 0),
  11170. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  11171. 0, 0, 0, 0),
  11172. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  11173. 0, 0, 0, 0),
  11174. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  11175. 0, 0, 0, 0),
  11176. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  11177. 0, 0, 0, 0),
  11178. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  11179. 0, 0, 0, 0),
  11180. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  11181. 0, 0, 0, 0),
  11182. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  11183. 0, 0, 0, 0),
  11184. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  11185. 0, 0, 0, 0),
  11186. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  11187. 0, 0, 0, 0),
  11188. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  11189. 0, 0, 0, 0),
  11190. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  11191. 0, 0, 0, 0),
  11192. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  11193. 0, 0, 0, 0),
  11194. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  11195. 0, 0, 0, 0),
  11196. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  11197. 0, 0, 0, 0),
  11198. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  11199. 0, 0, 0, 0),
  11200. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  11201. 0, 0, 0, 0),
  11202. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  11203. 0, 0, 0, 0),
  11204. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  11205. 0, 0, 0, 0),
  11206. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  11207. 0, 0, 0, 0),
  11208. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  11209. 0, 0, 0, 0),
  11210. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  11211. 0, 0, 0, 0),
  11212. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  11213. 0, 0, 0, 0),
  11214. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  11215. 0, 0, 0, 0),
  11216. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  11217. 0, 0, 0, 0),
  11218. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  11219. 0, 0, 0, 0),
  11220. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  11221. 0, 0, 0, 0),
  11222. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  11223. 0, 0, 0, 0),
  11224. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  11225. 0, 0, 0, 0),
  11226. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  11227. 0, 0, 0, 0),
  11228. /* incall */
  11229. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  11230. 0, 0, 0, 0),
  11231. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  11232. 0, 0, 0, 0),
  11233. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  11234. 0, 0, 0, 0),
  11235. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  11236. 0, 0, 0, 0),
  11237. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  11238. 0, 0, 0, 0),
  11239. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  11240. 0, 0, 0, 0),
  11241. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  11242. 0, 0, 0, 0),
  11243. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  11244. 0, 0, 0, 0),
  11245. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  11246. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  11247. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  11248. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  11249. 0, 0, 0, 0),
  11250. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  11251. 0, 0, 0, 0),
  11252. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  11253. 0, 0, 0, 0),
  11254. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  11255. 0, 0, 0, 0),
  11256. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  11257. 0, 0, 0, 0),
  11258. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  11259. 0, 0, 0, 0),
  11260. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  11261. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  11262. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  11263. 0, 0, 0, 0),
  11264. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  11265. 0, 0, 0, 0),
  11266. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  11267. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  11268. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  11269. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  11270. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  11271. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  11272. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  11273. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  11274. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  11275. /* In- call recording */
  11276. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  11277. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  11278. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  11279. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  11280. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  11281. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  11282. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  11283. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  11284. /* Switch Definitions */
  11285. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  11286. &slim_fm_switch_mixer_controls),
  11287. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  11288. &slim1_fm_switch_mixer_controls),
  11289. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  11290. &slim3_fm_switch_mixer_controls),
  11291. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  11292. &slim4_fm_switch_mixer_controls),
  11293. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  11294. &slim6_fm_switch_mixer_controls),
  11295. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  11296. &pcm_rx_switch_mixer_controls),
  11297. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  11298. &int0_mi2s_rx_switch_mixer_controls),
  11299. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  11300. &int4_mi2s_rx_switch_mixer_controls),
  11301. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  11302. &pri_mi2s_rx_switch_mixer_controls),
  11303. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  11304. &sec_mi2s_rx_switch_mixer_controls),
  11305. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  11306. &tert_mi2s_rx_switch_mixer_controls),
  11307. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  11308. &quat_mi2s_rx_switch_mixer_controls),
  11309. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  11310. &hfp_pri_aux_switch_mixer_controls),
  11311. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  11312. &hfp_aux_switch_mixer_controls),
  11313. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  11314. &hfp_int_switch_mixer_controls),
  11315. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  11316. &hfp_slim7_switch_mixer_controls),
  11317. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  11318. &usb_switch_mixer_controls),
  11319. /* Mixer definitions */
  11320. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11321. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  11322. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11323. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  11324. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11325. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  11326. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11327. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  11328. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11329. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  11330. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11331. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  11332. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  11333. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  11334. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  11335. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  11336. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11337. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  11338. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11339. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  11340. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11341. quaternary_mi2s_rx_mixer_controls,
  11342. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  11343. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11344. tertiary_mi2s_rx_mixer_controls,
  11345. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  11346. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11347. secondary_mi2s_rx_mixer_controls,
  11348. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  11349. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11350. secondary_mi2s_rx2_mixer_controls,
  11351. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  11352. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11353. primary_mi2s_rx_mixer_controls,
  11354. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  11355. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11356. int0_mi2s_rx_mixer_controls,
  11357. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  11358. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11359. int4_mi2s_rx_mixer_controls,
  11360. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  11361. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11362. quinary_mi2s_rx_mixer_controls,
  11363. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  11364. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11365. pri_tdm_rx_0_mixer_controls,
  11366. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  11367. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11368. pri_tdm_rx_1_mixer_controls,
  11369. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  11370. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11371. pri_tdm_rx_2_mixer_controls,
  11372. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  11373. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11374. pri_tdm_rx_3_mixer_controls,
  11375. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  11376. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11377. pri_tdm_tx_0_mixer_controls,
  11378. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  11379. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11380. sec_tdm_rx_0_mixer_controls,
  11381. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  11382. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11383. sec_tdm_rx_1_mixer_controls,
  11384. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  11385. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11386. sec_tdm_rx_2_mixer_controls,
  11387. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  11388. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11389. sec_tdm_rx_3_mixer_controls,
  11390. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  11391. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11392. sec_tdm_tx_0_mixer_controls,
  11393. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  11394. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11395. tert_tdm_rx_0_mixer_controls,
  11396. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  11397. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11398. tert_tdm_tx_0_mixer_controls,
  11399. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  11400. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11401. tert_tdm_rx_1_mixer_controls,
  11402. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  11403. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11404. tert_tdm_rx_2_mixer_controls,
  11405. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  11406. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11407. tert_tdm_rx_3_mixer_controls,
  11408. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  11409. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11410. tert_tdm_rx_4_mixer_controls,
  11411. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  11412. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11413. quat_tdm_rx_0_mixer_controls,
  11414. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  11415. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11416. quat_tdm_tx_0_mixer_controls,
  11417. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  11418. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11419. quat_tdm_rx_1_mixer_controls,
  11420. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  11421. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11422. quat_tdm_rx_2_mixer_controls,
  11423. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  11424. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11425. quat_tdm_rx_3_mixer_controls,
  11426. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  11427. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  11428. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  11429. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  11430. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  11431. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  11432. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  11433. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  11434. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  11435. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  11436. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  11437. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  11438. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  11439. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  11440. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  11441. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  11442. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  11443. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  11444. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  11445. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  11446. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  11447. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  11448. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  11449. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  11450. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  11451. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11452. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  11453. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11454. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  11455. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11456. tert_auxpcm_rx_mixer_controls,
  11457. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  11458. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11459. quat_auxpcm_rx_mixer_controls,
  11460. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  11461. /* incall */
  11462. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  11463. incall_music_delivery_mixer_controls,
  11464. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  11465. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  11466. incall_music2_delivery_mixer_controls,
  11467. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  11468. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11469. slimbus_4_rx_mixer_controls,
  11470. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  11471. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11472. slimbus_6_rx_mixer_controls,
  11473. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  11474. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11475. usb_audio_rx_mixer_controls,
  11476. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  11477. /* Voice Mixer */
  11478. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  11479. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  11480. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  11481. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  11482. SND_SOC_NOPM, 0, 0,
  11483. sec_i2s_rx_voice_mixer_controls,
  11484. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  11485. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  11486. SND_SOC_NOPM, 0, 0,
  11487. sec_mi2s_rx_voice_mixer_controls,
  11488. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  11489. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  11490. SND_SOC_NOPM, 0, 0,
  11491. slimbus_rx_voice_mixer_controls,
  11492. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  11493. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  11494. SND_SOC_NOPM, 0, 0,
  11495. bt_sco_rx_voice_mixer_controls,
  11496. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  11497. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  11498. SND_SOC_NOPM, 0, 0,
  11499. afe_pcm_rx_voice_mixer_controls,
  11500. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  11501. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  11502. SND_SOC_NOPM, 0, 0,
  11503. aux_pcm_rx_voice_mixer_controls,
  11504. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  11505. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  11506. SND_SOC_NOPM, 0, 0,
  11507. sec_aux_pcm_rx_voice_mixer_controls,
  11508. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  11509. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  11510. SND_SOC_NOPM, 0, 0,
  11511. tert_aux_pcm_rx_voice_mixer_controls,
  11512. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  11513. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  11514. SND_SOC_NOPM, 0, 0,
  11515. quat_aux_pcm_rx_voice_mixer_controls,
  11516. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  11517. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  11518. SND_SOC_NOPM, 0, 0,
  11519. hdmi_rx_voice_mixer_controls,
  11520. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  11521. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  11522. SND_SOC_NOPM, 0, 0,
  11523. mi2s_rx_voice_mixer_controls,
  11524. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  11525. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  11526. SND_SOC_NOPM, 0, 0,
  11527. pri_mi2s_rx_voice_mixer_controls,
  11528. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  11529. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  11530. SND_SOC_NOPM, 0, 0,
  11531. int0_mi2s_rx_voice_mixer_controls,
  11532. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  11533. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  11534. SND_SOC_NOPM, 0, 0,
  11535. int4_mi2s_rx_voice_mixer_controls,
  11536. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  11537. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  11538. SND_SOC_NOPM, 0, 0,
  11539. tert_mi2s_rx_voice_mixer_controls,
  11540. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  11541. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  11542. SND_SOC_NOPM, 0, 0,
  11543. quat_mi2s_rx_voice_mixer_controls,
  11544. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  11545. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  11546. SND_SOC_NOPM, 0, 0,
  11547. quin_mi2s_rx_voice_mixer_controls,
  11548. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  11549. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  11550. SND_SOC_NOPM, 0, 0,
  11551. quat_tdm_rx_2_voice_mixer_controls,
  11552. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  11553. SND_SOC_DAPM_MIXER("Voice_Tx Mixer",
  11554. SND_SOC_NOPM, 0, 0, tx_voice_mixer_controls,
  11555. ARRAY_SIZE(tx_voice_mixer_controls)),
  11556. SND_SOC_DAPM_MIXER("Voice2_Tx Mixer",
  11557. SND_SOC_NOPM, 0, 0, tx_voice2_mixer_controls,
  11558. ARRAY_SIZE(tx_voice2_mixer_controls)),
  11559. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  11560. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  11561. ARRAY_SIZE(tx_voip_mixer_controls)),
  11562. SND_SOC_DAPM_MIXER("VoLTE_Tx Mixer",
  11563. SND_SOC_NOPM, 0, 0, tx_volte_mixer_controls,
  11564. ARRAY_SIZE(tx_volte_mixer_controls)),
  11565. SND_SOC_DAPM_MIXER("VoWLAN_Tx Mixer",
  11566. SND_SOC_NOPM, 0, 0, tx_vowlan_mixer_controls,
  11567. ARRAY_SIZE(tx_vowlan_mixer_controls)),
  11568. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  11569. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  11570. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  11571. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  11572. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  11573. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  11574. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11575. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  11576. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11577. int_bt_a2dp_rx_mixer_controls,
  11578. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  11579. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11580. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  11581. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  11582. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  11583. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  11584. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  11585. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  11586. tx_voice2_stub_mixer_controls,
  11587. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  11588. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  11589. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  11590. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  11591. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  11592. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  11593. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  11594. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  11595. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  11596. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  11597. SND_SOC_NOPM, 0, 0,
  11598. slimbus_6_rx_voice_mixer_controls,
  11599. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  11600. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  11601. slimbus_7_rx_voice_mixer_controls,
  11602. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  11603. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  11604. slimbus_8_rx_voice_mixer_controls,
  11605. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  11606. /* port mixer */
  11607. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  11608. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  11609. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  11610. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  11611. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  11612. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  11613. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  11614. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  11615. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  11616. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  11617. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  11618. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  11619. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  11620. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  11621. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  11622. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  11623. sbus_1_rx_port_mixer_controls,
  11624. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  11625. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  11626. bt_sco_rx_port_mixer_controls,
  11627. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  11628. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  11629. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  11630. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  11631. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  11632. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  11633. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  11634. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  11635. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  11636. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  11637. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  11638. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  11639. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  11640. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  11641. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  11642. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  11643. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  11644. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  11645. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  11646. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  11647. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  11648. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  11649. primary_mi2s_rx_port_mixer_controls,
  11650. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  11651. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  11652. sec_mi2s_rx_port_mixer_controls,
  11653. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  11654. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  11655. tert_mi2s_rx_port_mixer_controls,
  11656. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  11657. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  11658. quat_mi2s_rx_port_mixer_controls,
  11659. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  11660. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  11661. pri_tdm_rx_0_port_mixer_controls,
  11662. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  11663. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  11664. pri_tdm_rx_1_port_mixer_controls,
  11665. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  11666. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  11667. pri_tdm_rx_2_port_mixer_controls,
  11668. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  11669. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  11670. pri_tdm_rx_3_port_mixer_controls,
  11671. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  11672. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  11673. sec_tdm_rx_0_port_mixer_controls,
  11674. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  11675. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  11676. sec_tdm_rx_1_port_mixer_controls,
  11677. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  11678. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  11679. sec_tdm_rx_2_port_mixer_controls,
  11680. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  11681. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  11682. sec_tdm_rx_3_port_mixer_controls,
  11683. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  11684. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  11685. tert_tdm_rx_0_port_mixer_controls,
  11686. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  11687. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  11688. tert_tdm_rx_1_port_mixer_controls,
  11689. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  11690. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  11691. tert_tdm_rx_2_port_mixer_controls,
  11692. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  11693. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  11694. tert_tdm_rx_3_port_mixer_controls,
  11695. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  11696. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  11697. quat_tdm_rx_0_port_mixer_controls,
  11698. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  11699. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  11700. quat_tdm_rx_1_port_mixer_controls,
  11701. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  11702. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  11703. quat_tdm_rx_2_port_mixer_controls,
  11704. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  11705. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  11706. quat_tdm_rx_3_port_mixer_controls,
  11707. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  11708. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  11709. int0_mi2s_rx_port_mixer_controls,
  11710. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  11711. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  11712. int4_mi2s_rx_port_mixer_controls,
  11713. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  11714. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  11715. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  11716. ARRAY_SIZE(tx_qchat_mixer_controls)),
  11717. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  11718. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  11719. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  11720. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  11721. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  11722. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  11723. /* lsm mixer definitions */
  11724. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  11725. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  11726. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  11727. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  11728. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  11729. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  11730. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  11731. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  11732. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  11733. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  11734. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  11735. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  11736. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  11737. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  11738. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  11739. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  11740. /* Virtual Pins to force backends ON atm */
  11741. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  11742. SND_SOC_DAPM_INPUT("BE_IN"),
  11743. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  11744. &slim0_rx_vi_fb_lch_mux),
  11745. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  11746. &slim0_rx_vi_fb_rch_mux),
  11747. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  11748. &mi2s_rx_vi_fb_mux),
  11749. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  11750. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  11751. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  11752. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  11753. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  11754. &voc_ext_ec_mux),
  11755. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  11756. &ext_ec_ref_mux_ul1),
  11757. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  11758. &ext_ec_ref_mux_ul2),
  11759. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  11760. &ext_ec_ref_mux_ul3),
  11761. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  11762. &ext_ec_ref_mux_ul4),
  11763. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  11764. &ext_ec_ref_mux_ul5),
  11765. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  11766. &ext_ec_ref_mux_ul6),
  11767. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  11768. &ext_ec_ref_mux_ul8),
  11769. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  11770. &ext_ec_ref_mux_ul9),
  11771. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  11772. &ext_ec_ref_mux_ul17),
  11773. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  11774. &ext_ec_ref_mux_ul18),
  11775. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  11776. &ext_ec_ref_mux_ul19),
  11777. };
  11778. static const struct snd_soc_dapm_route intercon[] = {
  11779. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11780. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11781. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  11782. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  11783. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11784. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  11785. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  11786. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  11787. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11788. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  11789. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  11790. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  11791. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  11792. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  11793. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  11794. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  11795. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  11796. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11797. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11798. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  11799. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  11800. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11801. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  11802. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  11803. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  11804. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11805. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  11806. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  11807. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  11808. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  11809. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  11810. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  11811. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  11812. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  11813. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11814. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11815. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  11816. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  11817. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11818. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  11819. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  11820. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  11821. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11822. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  11823. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  11824. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  11825. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  11826. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  11827. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  11828. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  11829. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  11830. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11831. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11832. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  11833. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  11834. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11835. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  11836. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  11837. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  11838. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11839. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  11840. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  11841. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  11842. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  11843. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  11844. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  11845. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  11846. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  11847. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11848. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11849. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  11850. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  11851. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11852. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  11853. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  11854. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  11855. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11856. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  11857. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  11858. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  11859. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  11860. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  11861. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  11862. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  11863. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  11864. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  11865. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  11866. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  11867. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  11868. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  11869. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  11870. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  11871. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  11872. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  11873. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  11874. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  11875. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  11876. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  11877. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  11878. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  11879. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  11880. {"HDMI", NULL, "HDMI Mixer"},
  11881. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  11882. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  11883. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  11884. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  11885. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  11886. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  11887. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  11888. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  11889. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  11890. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  11891. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  11892. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  11893. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  11894. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  11895. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  11896. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  11897. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  11898. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11899. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11900. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  11901. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  11902. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11903. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  11904. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  11905. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  11906. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11907. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  11908. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  11909. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  11910. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  11911. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  11912. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  11913. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  11914. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  11915. /* incall */
  11916. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  11917. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  11918. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  11919. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  11920. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  11921. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  11922. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  11923. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  11924. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  11925. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  11926. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11927. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11928. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11929. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11930. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  11931. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11932. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11933. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  11934. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  11935. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11936. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  11937. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  11938. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  11939. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11940. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  11941. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  11942. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  11943. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  11944. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  11945. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  11946. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  11947. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  11948. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11949. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11950. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  11951. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  11952. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11953. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  11954. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  11955. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  11956. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11957. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  11958. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  11959. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  11960. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  11961. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  11962. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  11963. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  11964. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  11965. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  11966. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  11967. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  11968. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  11969. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  11970. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  11971. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  11972. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  11973. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  11974. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  11975. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  11976. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  11977. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  11978. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  11979. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  11980. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  11981. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  11982. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  11983. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  11984. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  11985. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  11986. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  11987. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  11988. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  11989. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  11990. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  11991. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  11992. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  11993. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  11994. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  11995. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  11996. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  11997. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  11998. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  11999. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12000. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12001. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12002. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12003. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12004. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12005. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  12006. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  12007. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  12008. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  12009. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  12010. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  12011. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12012. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12013. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12014. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12015. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12016. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12017. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12018. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12019. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12020. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12021. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12022. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12023. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12024. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12025. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12026. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12027. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  12028. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12029. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12030. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12031. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12032. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12033. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12034. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12035. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12036. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12037. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12038. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12039. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12040. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12041. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12042. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12043. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  12044. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12045. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12046. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12047. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12048. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12049. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12050. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12051. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12052. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12053. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12054. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12055. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12056. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12057. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12058. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  12059. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12060. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12061. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12062. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12063. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12064. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12065. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12066. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12067. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12068. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12069. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12070. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12071. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12072. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12073. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  12074. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12075. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  12076. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12077. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12078. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12079. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12080. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12081. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12082. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12083. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12084. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12085. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12086. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12087. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12088. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12089. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12090. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12091. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12092. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12093. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  12094. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12095. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12096. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12097. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12098. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12099. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12100. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12101. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12102. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12103. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12104. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12105. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12106. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12107. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12108. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12109. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  12110. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12111. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12112. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12113. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12114. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12115. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12116. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12117. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12118. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12119. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12120. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12121. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12122. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12123. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12124. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12125. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  12126. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12127. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12128. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12129. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12130. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12131. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12132. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12133. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12134. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12135. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12136. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12137. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12138. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12139. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12140. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12141. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12142. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12143. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  12144. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12145. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12146. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12147. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12148. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12149. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12150. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12151. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12152. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12153. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12154. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12155. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12156. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12157. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12158. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12159. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12160. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  12161. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12162. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12163. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12164. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12165. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12166. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12167. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12168. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12169. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12170. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12171. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12172. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12173. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12174. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12175. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12176. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12177. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  12178. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12179. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12180. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12181. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12182. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12183. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12184. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12185. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12186. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12187. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12188. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12189. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12190. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12191. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12192. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12193. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12194. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  12195. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12196. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12197. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12198. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12199. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12200. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12201. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12202. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12203. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12204. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12205. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12206. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12207. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12208. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12209. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12210. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12211. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  12212. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12213. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12214. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12215. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12216. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12217. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12218. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12219. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12220. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12221. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12222. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12223. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12224. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12225. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12226. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12227. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12228. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  12229. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12230. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12231. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12232. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12233. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12234. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12235. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12236. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12237. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12238. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12239. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12240. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12241. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12242. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12243. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12244. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12245. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  12246. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12247. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12248. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12249. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12250. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12251. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12252. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12253. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12254. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12255. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12256. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12257. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12258. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12259. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12260. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12261. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12262. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  12263. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12264. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12265. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12266. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12267. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12268. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12269. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12270. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12271. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12272. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12273. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12274. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12275. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12276. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12277. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12278. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12279. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  12280. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12281. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12282. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12283. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12284. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12285. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12286. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12287. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12288. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12289. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12290. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12291. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12292. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12293. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12294. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12295. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12296. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  12297. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12298. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12299. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12300. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12301. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12302. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12303. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12304. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12305. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12306. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12307. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12308. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12309. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12310. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12311. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12312. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12313. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  12314. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12315. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12316. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12317. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12318. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12319. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12320. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12321. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12322. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12323. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12324. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12325. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12326. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12327. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12328. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12329. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12330. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  12331. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12332. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12333. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12334. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12335. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12336. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12337. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12338. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12339. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12340. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12341. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12342. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12343. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12344. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12345. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12346. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12347. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  12348. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12349. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12350. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12351. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12352. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12353. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12354. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12355. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12356. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12357. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12358. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12359. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12360. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12361. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12362. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12363. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12364. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  12365. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12366. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12367. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12368. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12369. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12370. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12371. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12372. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12373. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12374. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12375. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12376. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12377. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12378. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12379. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12380. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12381. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  12382. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12383. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12384. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12385. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12386. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12387. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12388. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12389. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12390. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12391. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12392. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12393. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12394. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12395. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12396. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12397. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12398. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  12399. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12400. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12401. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12402. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12403. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12404. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12405. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12406. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12407. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12408. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12409. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12410. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12411. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12412. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12413. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12414. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12415. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  12416. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12417. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12418. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12419. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12420. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12421. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12422. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12423. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12424. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12425. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12426. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12427. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12428. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12429. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12430. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12431. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12432. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  12433. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  12434. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12435. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12436. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12437. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12438. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12439. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12440. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12441. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12442. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12443. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12444. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12445. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12446. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12447. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12448. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12449. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12450. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  12451. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12452. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12453. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12454. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12455. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12456. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12457. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12458. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12459. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12460. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12461. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12462. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12463. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12464. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12465. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12466. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12467. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  12468. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12469. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12470. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12471. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12472. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12473. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12474. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12475. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12476. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12477. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12478. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12479. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12480. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12481. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12482. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12483. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12484. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  12485. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12486. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12487. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12488. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12489. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12490. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12491. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12492. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12493. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12494. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12495. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12496. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12497. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12498. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12499. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12500. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12501. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  12502. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  12503. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12504. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12505. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12506. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12507. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12508. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12509. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12510. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12511. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12512. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12513. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12514. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12515. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12516. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12517. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12518. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12519. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  12520. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  12521. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12522. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12523. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  12524. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  12525. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12526. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  12527. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  12528. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  12529. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12530. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  12531. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  12532. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  12533. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  12534. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  12535. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  12536. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  12537. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  12538. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  12539. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  12540. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  12541. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  12542. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  12543. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  12544. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  12545. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  12546. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  12547. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  12548. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  12549. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  12550. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  12551. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  12552. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  12553. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  12554. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  12555. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  12556. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  12557. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  12558. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  12559. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  12560. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  12561. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  12562. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  12563. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  12564. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  12565. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  12566. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  12567. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  12568. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  12569. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  12570. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  12571. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  12572. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  12573. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12574. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  12575. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  12576. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  12577. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  12578. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  12579. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  12580. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  12581. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  12582. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  12583. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  12584. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  12585. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12586. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  12587. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  12588. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  12589. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  12590. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  12591. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  12592. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  12593. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  12594. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  12595. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  12596. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  12597. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  12598. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  12599. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  12600. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  12601. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  12602. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  12603. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  12604. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  12605. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  12606. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  12607. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  12608. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  12609. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  12610. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  12611. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  12612. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  12613. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  12614. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  12615. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  12616. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  12617. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  12618. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  12619. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  12620. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  12621. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  12622. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  12623. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  12624. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  12625. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  12626. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  12627. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  12628. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  12629. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  12630. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  12631. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  12632. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  12633. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  12634. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  12635. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  12636. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  12637. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  12638. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  12639. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  12640. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  12641. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  12642. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  12643. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  12644. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  12645. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  12646. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  12647. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  12648. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  12649. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  12650. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  12651. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  12652. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  12653. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  12654. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  12655. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  12656. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  12657. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  12658. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  12659. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  12660. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  12661. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  12662. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  12663. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  12664. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  12665. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  12666. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  12667. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  12668. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  12669. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  12670. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  12671. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  12672. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  12673. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  12674. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  12675. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  12676. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  12677. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  12678. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  12679. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  12680. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  12681. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  12682. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  12683. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  12684. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  12685. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  12686. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  12687. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  12688. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  12689. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  12690. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  12691. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  12692. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  12693. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  12694. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  12695. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  12696. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  12697. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  12698. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  12699. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  12700. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  12701. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  12702. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  12703. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  12704. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  12705. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  12706. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  12707. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  12708. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  12709. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  12710. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  12711. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  12712. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  12713. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  12714. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  12715. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  12716. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  12717. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  12718. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  12719. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  12720. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  12721. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  12722. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  12723. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  12724. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  12725. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  12726. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  12727. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  12728. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  12729. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  12730. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  12731. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  12732. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  12733. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  12734. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  12735. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12736. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12737. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12738. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12739. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12740. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12741. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12742. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12743. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12744. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12745. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12746. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12747. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12748. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12749. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12750. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12751. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  12752. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  12753. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12754. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12755. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12756. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12757. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12758. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12759. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12760. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12761. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12762. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12763. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12764. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12765. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12766. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12767. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12768. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12769. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  12770. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  12771. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12772. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12773. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12774. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12775. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12776. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12777. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12778. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12779. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12780. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12781. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12782. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12783. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12784. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12785. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12786. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12787. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  12788. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12789. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12790. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12791. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12792. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12793. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12794. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12795. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12796. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12797. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12798. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12799. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12800. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12801. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12802. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12803. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12804. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  12805. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  12806. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  12807. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  12808. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  12809. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  12810. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  12811. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  12812. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  12813. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12814. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12815. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12816. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12817. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12818. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12819. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12820. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12821. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  12822. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  12823. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  12824. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  12825. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  12826. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  12827. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  12828. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  12829. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  12830. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  12831. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  12832. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  12833. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  12834. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  12835. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  12836. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  12837. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  12838. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  12839. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  12840. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  12841. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  12842. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12843. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12844. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12845. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12846. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12847. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12848. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12849. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12850. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12851. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12852. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12853. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12854. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12855. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12856. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12857. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12858. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  12859. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12860. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12861. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12862. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12863. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12864. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12865. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12866. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12867. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12868. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12869. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12870. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12871. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12872. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12873. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12874. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12875. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  12876. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12877. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12878. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12879. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12880. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12881. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12882. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12883. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12884. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12885. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12886. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12887. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12888. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12889. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12890. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12891. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12892. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  12893. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12894. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12895. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12896. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12897. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12898. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12899. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12900. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12901. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12902. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12903. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12904. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12905. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12906. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12907. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12908. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12909. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  12910. {"MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  12911. {"MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  12912. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  12913. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  12914. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  12915. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  12916. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  12917. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  12918. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  12919. {"PRI_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  12920. {"PRI_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  12921. {"PRI_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  12922. {"PRI_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  12923. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  12924. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  12925. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  12926. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  12927. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  12928. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  12929. {"SEC_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  12930. {"SEC_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  12931. {"SEC_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  12932. {"SEC_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  12933. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  12934. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  12935. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  12936. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  12937. {"SEC_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  12938. {"SEC_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  12939. {"SEC_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  12940. {"SEC_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  12941. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  12942. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  12943. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  12944. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  12945. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  12946. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  12947. {"SLIM_0_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  12948. {"SLIM_0_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  12949. {"SLIM_0_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  12950. {"SLIM_0_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  12951. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  12952. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  12953. {"SLIM_0_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  12954. {"SLIM_0_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  12955. {"SLIM_0_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  12956. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  12957. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  12958. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  12959. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  12960. {"SLIM_6_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  12961. {"SLIM_6_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  12962. {"SLIM_6_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  12963. {"SLIM_6_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  12964. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  12965. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  12966. {"SLIM_6_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  12967. {"SLIM_6_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  12968. {"SLIM_6_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  12969. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  12970. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  12971. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  12972. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  12973. {"USB_AUDIO_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  12974. {"USB_AUDIO_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  12975. {"USB_AUDIO_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  12976. {"USB_AUDIO_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  12977. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  12978. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  12979. {"USB_AUDIO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  12980. {"USB_AUDIO_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  12981. {"USB_AUDIO_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  12982. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  12983. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  12984. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  12985. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  12986. {"INTERNAL_BT_SCO_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  12987. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  12988. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  12989. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  12990. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  12991. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  12992. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  12993. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  12994. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  12995. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  12996. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  12997. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  12998. {"AFE_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  12999. {"AFE_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13000. {"AFE_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13001. {"AFE_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13002. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13003. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13004. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13005. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13006. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13007. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  13008. {"AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13009. {"AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13010. {"AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13011. {"AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13012. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13013. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13014. {"AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13015. {"AUX_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13016. {"AUX_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13017. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13018. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13019. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13020. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  13021. {"SEC_AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13022. {"SEC_AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13023. {"SEC_AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13024. {"SEC_AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13025. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13026. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13027. {"SEC_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13028. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13029. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13030. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13031. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  13032. {"TERT_AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13033. {"TERT_AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13034. {"TERT_AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13035. {"TERT_AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13036. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13037. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13038. {"TERT_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13039. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13040. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13041. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13042. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  13043. {"QUAT_AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13044. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13045. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13046. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13047. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13048. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13049. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13050. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13051. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13052. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13053. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  13054. {"HDMI_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13055. {"HDMI_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13056. {"HDMI_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13057. {"HDMI_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13058. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13059. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13060. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13061. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13062. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13063. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  13064. {"HDMI", NULL, "HDMI_DL_HL"},
  13065. {"MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13066. {"MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13067. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13068. {"MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13069. {"MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13070. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13071. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13072. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13073. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13074. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  13075. {"PRI_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13076. {"PRI_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13077. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13078. {"PRI_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13079. {"PRI_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13080. {"PRI_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13081. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13082. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13083. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13084. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13085. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13086. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13087. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  13088. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13089. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13090. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13091. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13092. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13093. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  13094. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13095. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13096. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13097. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13098. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13099. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  13100. {"TERT_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13101. {"TERT_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13102. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13103. {"TERT_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13104. {"TERT_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13105. {"TERT_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13106. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13107. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13108. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13109. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13110. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13111. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13112. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  13113. {"QUAT_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13114. {"QUAT_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13115. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13116. {"QUAT_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13117. {"QUAT_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13118. {"QUAT_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13119. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13120. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13121. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13122. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13123. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13124. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  13125. {"QUIN_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13126. {"QUIN_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13127. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13128. {"QUIN_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13129. {"QUIN_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13130. {"QUIN_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13131. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13132. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13133. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13134. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13135. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13136. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  13137. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13138. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  13139. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13140. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13141. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13142. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13143. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13144. {"CS-VOICE_UL1", NULL, "VOC_EXT_EC MUX"},
  13145. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  13146. {"VoLTE_UL", NULL, "VOC_EXT_EC MUX"},
  13147. {"VOICE2_UL", NULL, "VOC_EXT_EC MUX"},
  13148. {"VoWLAN_UL", NULL, "VOC_EXT_EC MUX"},
  13149. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  13150. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  13151. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13152. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13153. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13154. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13155. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13156. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13157. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  13158. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  13159. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  13160. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13161. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13162. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13163. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13164. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13165. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13166. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13167. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13168. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13169. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13170. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13171. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13172. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13173. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13174. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13175. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13176. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13177. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13178. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13179. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13180. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13181. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13182. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13183. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13184. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13185. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13186. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13187. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13188. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13189. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13190. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13191. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13192. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13193. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13194. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13195. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13196. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13197. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13198. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13199. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13200. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13201. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  13202. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  13203. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  13204. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  13205. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  13206. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  13207. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  13208. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  13209. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  13210. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  13211. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  13212. {"Voice_Tx Mixer", "PRI_TX_Voice", "PRI_I2S_TX"},
  13213. {"Voice_Tx Mixer", "PRI_MI2S_TX_Voice", "PRI_MI2S_TX"},
  13214. {"Voice_Tx Mixer", "MI2S_TX_Voice", "MI2S_TX"},
  13215. {"Voice_Tx Mixer", "TERT_MI2S_TX_Voice", "TERT_MI2S_TX"},
  13216. {"Voice_Tx Mixer", "SLIM_0_TX_Voice", "SLIMBUS_0_TX"},
  13217. {"Voice_Tx Mixer", "SLIM_7_TX_Voice", "SLIMBUS_7_TX"},
  13218. {"Voice_Tx Mixer", "SLIM_8_TX_Voice", "SLIMBUS_8_TX"},
  13219. {"Voice_Tx Mixer", "USB_AUDIO_TX_Voice", "USB_AUDIO_TX"},
  13220. {"Voice_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice", "INT_BT_SCO_TX"},
  13221. {"Voice_Tx Mixer", "AFE_PCM_TX_Voice", "PCM_TX"},
  13222. {"Voice_Tx Mixer", "AUX_PCM_TX_Voice", "AUX_PCM_TX"},
  13223. {"Voice_Tx Mixer", "SEC_AUX_PCM_TX_Voice", "SEC_AUX_PCM_TX"},
  13224. {"Voice_Tx Mixer", "TERT_AUX_PCM_TX_Voice", "TERT_AUX_PCM_TX"},
  13225. {"Voice_Tx Mixer", "QUAT_AUX_PCM_TX_Voice", "QUAT_AUX_PCM_TX"},
  13226. {"Voice_Tx Mixer", "SEC_MI2S_TX_Voice", "SEC_MI2S_TX"},
  13227. {"CS-VOICE_UL1", NULL, "Voice_Tx Mixer"},
  13228. {"Voice2_Tx Mixer", "PRI_TX_Voice2", "PRI_I2S_TX"},
  13229. {"Voice2_Tx Mixer", "PRI_MI2S_TX_Voice2", "PRI_MI2S_TX"},
  13230. {"Voice2_Tx Mixer", "MI2S_TX_Voice2", "MI2S_TX"},
  13231. {"Voice2_Tx Mixer", "TERT_MI2S_TX_Voice2", "TERT_MI2S_TX"},
  13232. {"Voice2_Tx Mixer", "SLIM_0_TX_Voice2", "SLIMBUS_0_TX"},
  13233. {"Voice2_Tx Mixer", "SLIM_7_TX_Voice2", "SLIMBUS_7_TX"},
  13234. {"Voice2_Tx Mixer", "SLIM_8_TX_Voice2", "SLIMBUS_8_TX"},
  13235. {"Voice2_Tx Mixer", "USB_AUDIO_TX_Voice2", "USB_AUDIO_TX"},
  13236. {"Voice2_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice2", "INT_BT_SCO_TX"},
  13237. {"Voice2_Tx Mixer", "AFE_PCM_TX_Voice2", "PCM_TX"},
  13238. {"Voice2_Tx Mixer", "AUX_PCM_TX_Voice2", "AUX_PCM_TX"},
  13239. {"Voice2_Tx Mixer", "SEC_AUX_PCM_TX_Voice2", "SEC_AUX_PCM_TX"},
  13240. {"Voice2_Tx Mixer", "TERT_AUX_PCM_TX_Voice2", "TERT_AUX_PCM_TX"},
  13241. {"Voice2_Tx Mixer", "QUAT_AUX_PCM_TX_Voice2", "QUAT_AUX_PCM_TX"},
  13242. {"VOICE2_UL", NULL, "Voice2_Tx Mixer"},
  13243. {"VoLTE_Tx Mixer", "PRI_TX_VoLTE", "PRI_I2S_TX"},
  13244. {"VoLTE_Tx Mixer", "SLIM_0_TX_VoLTE", "SLIMBUS_0_TX"},
  13245. {"VoLTE_Tx Mixer", "SLIM_7_TX_VoLTE", "SLIMBUS_7_TX"},
  13246. {"VoLTE_Tx Mixer", "SLIM_8_TX_VoLTE", "SLIMBUS_8_TX"},
  13247. {"VoLTE_Tx Mixer", "USB_AUDIO_TX_VoLTE", "USB_AUDIO_TX"},
  13248. {"VoLTE_Tx Mixer", "INTERNAL_BT_SCO_TX_VoLTE", "INT_BT_SCO_TX"},
  13249. {"VoLTE_Tx Mixer", "AFE_PCM_TX_VoLTE", "PCM_TX"},
  13250. {"VoLTE_Tx Mixer", "AUX_PCM_TX_VoLTE", "AUX_PCM_TX"},
  13251. {"VoLTE_Tx Mixer", "SEC_AUX_PCM_TX_VoLTE", "SEC_AUX_PCM_TX"},
  13252. {"VoLTE_Tx Mixer", "TERT_AUX_PCM_TX_VoLTE", "TERT_AUX_PCM_TX"},
  13253. {"VoLTE_Tx Mixer", "QUAT_AUX_PCM_TX_VoLTE", "QUAT_AUX_PCM_TX"},
  13254. {"VoLTE_Tx Mixer", "MI2S_TX_VoLTE", "MI2S_TX"},
  13255. {"VoLTE_Tx Mixer", "PRI_MI2S_TX_VoLTE", "PRI_MI2S_TX"},
  13256. {"VoLTE_Tx Mixer", "TERT_MI2S_TX_VoLTE", "TERT_MI2S_TX"},
  13257. {"VoLTE_UL", NULL, "VoLTE_Tx Mixer"},
  13258. {"VoWLAN_Tx Mixer", "PRI_TX_VoWLAN", "PRI_I2S_TX"},
  13259. {"VoWLAN_Tx Mixer", "SLIM_0_TX_VoWLAN", "SLIMBUS_0_TX"},
  13260. {"VoWLAN_Tx Mixer", "SLIM_7_TX_VoWLAN", "SLIMBUS_7_TX"},
  13261. {"VoWLAN_Tx Mixer", "SLIM_8_TX_VoWLAN", "SLIMBUS_8_TX"},
  13262. {"VoWLAN_Tx Mixer", "USB_AUDIO_TX_VoWLAN", "USB_AUDIO_TX"},
  13263. {"VoWLAN_Tx Mixer", "INTERNAL_BT_SCO_TX_VoWLAN", "INT_BT_SCO_TX"},
  13264. {"VoWLAN_Tx Mixer", "AFE_PCM_TX_VoWLAN", "PCM_TX"},
  13265. {"VoWLAN_Tx Mixer", "AUX_PCM_TX_VoWLAN", "AUX_PCM_TX"},
  13266. {"VoWLAN_Tx Mixer", "SEC_AUX_PCM_TX_VoWLAN", "SEC_AUX_PCM_TX"},
  13267. {"VoWLAN_Tx Mixer", "TERT_AUX_PCM_TX_VoWLAN", "TERT_AUX_PCM_TX"},
  13268. {"VoWLAN_Tx Mixer", "QUAT_AUX_PCM_TX_VoWLAN", "QUAT_AUX_PCM_TX"},
  13269. {"VoWLAN_Tx Mixer", "MI2S_TX_VoWLAN", "MI2S_TX"},
  13270. {"VoWLAN_Tx Mixer", "PRI_MI2S_TX_VoWLAN", "PRI_MI2S_TX"},
  13271. {"VoWLAN_Tx Mixer", "TERT_MI2S_TX_VoWLAN", "TERT_MI2S_TX"},
  13272. {"VoWLAN_UL", NULL, "VoWLAN_Tx Mixer"},
  13273. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  13274. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  13275. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  13276. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  13277. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  13278. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  13279. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  13280. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  13281. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  13282. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  13283. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  13284. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  13285. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  13286. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  13287. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  13288. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  13289. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  13290. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  13291. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  13292. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  13293. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  13294. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  13295. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  13296. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  13297. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  13298. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  13299. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  13300. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  13301. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  13302. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  13303. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  13304. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  13305. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  13306. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  13307. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  13308. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  13309. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  13310. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  13311. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  13312. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  13313. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  13314. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  13315. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  13316. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  13317. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  13318. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  13319. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  13320. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  13321. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  13322. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  13323. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  13324. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  13325. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  13326. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  13327. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  13328. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  13329. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  13330. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  13331. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  13332. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  13333. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  13334. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  13335. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  13336. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  13337. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  13338. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  13339. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  13340. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  13341. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  13342. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13343. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13344. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13345. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  13346. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  13347. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  13348. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  13349. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  13350. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  13351. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13352. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13353. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13354. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  13355. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  13356. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  13357. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  13358. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  13359. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  13360. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13361. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13362. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13363. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  13364. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  13365. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  13366. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  13367. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  13368. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  13369. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13370. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13371. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13372. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  13373. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  13374. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  13375. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  13376. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  13377. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  13378. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13379. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13380. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13381. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  13382. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  13383. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  13384. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  13385. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  13386. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  13387. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13388. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  13389. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  13390. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  13391. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  13392. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  13393. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  13394. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13395. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  13396. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  13397. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  13398. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  13399. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  13400. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  13401. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13402. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  13403. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  13404. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  13405. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  13406. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  13407. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  13408. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  13409. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  13410. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  13411. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  13412. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  13413. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  13414. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  13415. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  13416. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  13417. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  13418. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  13419. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  13420. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  13421. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  13422. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  13423. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  13424. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  13425. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  13426. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  13427. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  13428. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  13429. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  13430. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  13431. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  13432. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  13433. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  13434. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  13435. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  13436. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  13437. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  13438. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  13439. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  13440. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  13441. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  13442. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  13443. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  13444. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  13445. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  13446. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  13447. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  13448. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  13449. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  13450. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  13451. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  13452. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  13453. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  13454. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  13455. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  13456. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  13457. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  13458. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  13459. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  13460. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  13461. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  13462. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  13463. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  13464. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  13465. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  13466. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  13467. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  13468. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  13469. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  13470. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  13471. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  13472. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  13473. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  13474. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  13475. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  13476. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  13477. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  13478. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  13479. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  13480. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  13481. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  13482. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  13483. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  13484. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  13485. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  13486. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  13487. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  13488. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  13489. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  13490. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  13491. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  13492. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13493. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13494. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13495. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13496. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13497. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13498. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13499. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13500. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13501. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13502. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13503. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13504. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13505. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13506. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13507. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13508. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  13509. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13510. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13511. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13512. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13513. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13514. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13515. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13516. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13517. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13518. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13519. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13520. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13521. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13522. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13523. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13524. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13525. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  13526. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13527. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13528. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13529. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13530. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13531. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13532. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13533. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13534. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13535. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13536. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13537. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13538. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13539. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13540. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13541. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13542. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  13543. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13544. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13545. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13546. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13547. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13548. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13549. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13550. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13551. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13552. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13553. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13554. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13555. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13556. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13557. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13558. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13559. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  13560. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13561. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13562. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13563. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13564. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13565. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13566. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13567. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13568. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13569. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13570. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13571. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13572. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13573. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13574. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13575. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13576. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  13577. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13578. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13579. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13580. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13581. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13582. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13583. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13584. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13585. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13586. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13587. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13588. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13589. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13590. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13591. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13592. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13593. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  13594. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13595. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13596. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13597. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13598. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13599. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13600. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13601. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13602. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13603. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13604. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13605. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13606. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13607. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13608. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13609. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13610. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  13611. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13612. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13613. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13614. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13615. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13616. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13617. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13618. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13619. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13620. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13621. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13622. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13623. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13624. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13625. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13626. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13627. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  13628. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13629. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13630. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13631. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13632. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13633. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13634. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13635. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13636. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13637. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13638. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13639. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13640. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13641. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13642. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13643. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13644. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  13645. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13646. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13647. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13648. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13649. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13650. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13651. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13652. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13653. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13654. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13655. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13656. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13657. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13658. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13659. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13660. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13661. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  13662. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13663. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13664. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13665. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13666. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13667. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13668. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13669. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13670. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13671. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13672. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13673. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13674. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13675. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13676. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13677. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13678. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  13679. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13680. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13681. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13682. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13683. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13684. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13685. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13686. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13687. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13688. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13689. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13690. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13691. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13692. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13693. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13694. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13695. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  13696. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13697. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13698. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13699. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13700. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13701. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13702. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13703. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13704. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13705. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13706. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13707. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13708. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13709. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13710. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13711. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13712. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  13713. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13714. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13715. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13716. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13717. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13718. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13719. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13720. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13721. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13722. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13723. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13724. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13725. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13726. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13727. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13728. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13729. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  13730. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13731. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13732. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13733. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13734. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13735. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13736. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13737. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13738. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13739. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13740. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13741. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13742. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13743. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13744. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13745. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13746. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  13747. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13748. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13749. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13750. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13751. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13752. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13753. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13754. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13755. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13756. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13757. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13758. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13759. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13760. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13761. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13762. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13763. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  13764. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13765. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13766. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13767. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13768. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13769. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13770. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13771. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13772. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13773. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  13774. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13775. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13776. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13777. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13778. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13779. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13780. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13781. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13782. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13783. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  13784. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13785. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13786. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13787. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13788. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13789. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13790. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13791. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13792. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13793. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  13794. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13795. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13796. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13797. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13798. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13799. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  13800. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13801. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13802. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  13803. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13804. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  13805. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  13806. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  13807. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  13808. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13809. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13810. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13811. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13812. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13813. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  13814. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13815. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13816. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13817. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  13818. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13819. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13820. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13821. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  13822. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13823. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13824. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13825. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  13826. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  13827. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13828. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13829. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  13830. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13831. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13832. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13833. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13834. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  13835. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13836. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13837. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13838. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13839. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13840. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  13841. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13842. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13843. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  13844. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  13845. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  13846. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13847. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  13848. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13849. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13850. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  13851. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13852. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13853. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  13854. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13855. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13856. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  13857. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  13858. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13859. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  13860. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13861. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13862. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  13863. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13864. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13865. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  13866. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13867. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13868. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  13869. {"STUB_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13870. {"STUB_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13871. {"STUB_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13872. {"STUB_RX", NULL, "STUB_RX Mixer"},
  13873. {"SLIMBUS_1_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13874. {"SLIMBUS_1_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13875. {"SLIMBUS_1_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13876. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  13877. {"AFE_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13878. {"AFE_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13879. {"AFE_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13880. {"SLIMBUS_3_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13881. {"SLIMBUS_3_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13882. {"SLIMBUS_3_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13883. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  13884. {"SLIM_7_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13885. {"SLIM_7_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13886. {"SLIM_7_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13887. {"SLIM_7_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13888. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13889. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13890. {"SLIM_7_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13891. {"SLIM_7_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13892. {"SLIM_7_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13893. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13894. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13895. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13896. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  13897. {"SLIM_8_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  13898. {"SLIM_8_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  13899. {"SLIM_8_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  13900. {"SLIM_8_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  13901. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  13902. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  13903. {"SLIM_8_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  13904. {"SLIM_8_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  13905. {"SLIM_8_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  13906. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  13907. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  13908. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  13909. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  13910. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13911. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  13912. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13913. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  13914. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13915. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13916. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  13917. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  13918. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  13919. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  13920. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  13921. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  13922. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  13923. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13924. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13925. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13926. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13927. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13928. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13929. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13930. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  13931. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13932. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13933. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13934. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13935. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  13936. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  13937. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  13938. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  13939. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  13940. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  13941. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  13942. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13943. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  13944. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  13945. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13946. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13947. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13948. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13949. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13950. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13951. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13952. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13953. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  13954. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13955. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13956. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13957. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13958. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13959. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13960. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13961. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  13962. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13963. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13964. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13965. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13966. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13967. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13968. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  13969. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13970. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13971. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13972. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13973. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13974. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13975. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13976. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13977. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  13978. /* Backend Enablement */
  13979. {"BE_OUT", NULL, "PRI_I2S_RX"},
  13980. {"BE_OUT", NULL, "SEC_I2S_RX"},
  13981. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  13982. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  13983. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  13984. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  13985. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  13986. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  13987. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  13988. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  13989. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  13990. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  13991. {"BE_OUT", NULL, "HDMI"},
  13992. {"BE_OUT", NULL, "DISPLAY_PORT"},
  13993. {"BE_OUT", NULL, "SPDIF_RX"},
  13994. {"BE_OUT", NULL, "MI2S_RX"},
  13995. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  13996. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  13997. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  13998. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  13999. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  14000. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  14001. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  14002. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  14003. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  14004. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  14005. {"BE_OUT", NULL, "INT_FM_RX"},
  14006. {"BE_OUT", NULL, "PCM_RX"},
  14007. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  14008. {"BE_OUT", NULL, "AUX_PCM_RX"},
  14009. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  14010. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  14011. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  14012. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  14013. {"BE_OUT", NULL, "INT_FM_RX"},
  14014. {"BE_OUT", NULL, "PCM_RX"},
  14015. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  14016. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  14017. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  14018. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  14019. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  14020. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  14021. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  14022. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  14023. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  14024. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  14025. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  14026. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  14027. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  14028. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  14029. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  14030. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  14031. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  14032. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  14033. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  14034. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  14035. {"PRI_I2S_TX", NULL, "BE_IN"},
  14036. {"MI2S_TX", NULL, "BE_IN"},
  14037. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  14038. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  14039. {"PRI_MI2S_TX", NULL, "BE_IN"},
  14040. {"TERT_MI2S_TX", NULL, "BE_IN"},
  14041. {"INT2_MI2S_TX", NULL, "BE_IN"},
  14042. {"INT3_MI2S_TX", NULL, "BE_IN"},
  14043. {"INT5_MI2S_TX", NULL, "BE_IN"},
  14044. {"SEC_MI2S_TX", NULL, "BE_IN"},
  14045. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  14046. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  14047. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  14048. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  14049. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  14050. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  14051. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  14052. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  14053. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  14054. {"USB_AUDIO_TX", NULL, "BE_IN" },
  14055. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  14056. {"INT_FM_TX", NULL, "BE_IN"},
  14057. {"PCM_TX", NULL, "BE_IN"},
  14058. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  14059. {"BE_OUT", NULL, "STUB_RX"},
  14060. {"STUB_TX", NULL, "BE_IN"},
  14061. {"STUB_1_TX", NULL, "BE_IN"},
  14062. {"BE_OUT", NULL, "AUX_PCM_RX"},
  14063. {"AUX_PCM_TX", NULL, "BE_IN"},
  14064. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  14065. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  14066. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  14067. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  14068. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  14069. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  14070. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  14071. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  14072. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  14073. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  14074. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  14075. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  14076. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  14077. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  14078. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  14079. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  14080. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  14081. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  14082. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  14083. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  14084. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  14085. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  14086. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  14087. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  14088. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  14089. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  14090. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  14091. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  14092. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  14093. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  14094. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  14095. };
  14096. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  14097. struct snd_pcm_hw_params *params)
  14098. {
  14099. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  14100. unsigned int be_id = rtd->dai_link->id;
  14101. if (be_id >= MSM_BACKEND_DAI_MAX) {
  14102. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  14103. return -EINVAL;
  14104. }
  14105. mutex_lock(&routing_lock);
  14106. msm_bedais[be_id].sample_rate = params_rate(params);
  14107. msm_bedais[be_id].channel = params_channels(params);
  14108. msm_bedais[be_id].format = params_format(params);
  14109. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  14110. __func__, msm_bedais[be_id].sample_rate,
  14111. msm_bedais[be_id].format, be_id);
  14112. mutex_unlock(&routing_lock);
  14113. return 0;
  14114. }
  14115. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  14116. {
  14117. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  14118. unsigned int be_id = rtd->dai_link->id;
  14119. int i, session_type, path_type, topology;
  14120. struct msm_pcm_routing_bdai_data *bedai;
  14121. struct msm_pcm_routing_fdai_data *fdai;
  14122. pr_debug("%s: substream->pcm->id:%s\n",
  14123. __func__, substream->pcm->id);
  14124. if (be_id >= MSM_BACKEND_DAI_MAX) {
  14125. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  14126. return -EINVAL;
  14127. }
  14128. bedai = &msm_bedais[be_id];
  14129. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  14130. 0 : 1);
  14131. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  14132. path_type = ADM_PATH_PLAYBACK;
  14133. else
  14134. path_type = ADM_PATH_LIVE_REC;
  14135. mutex_lock(&routing_lock);
  14136. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  14137. if (!is_mm_lsm_fe_id(i))
  14138. continue;
  14139. fdai = &fe_dai_map[i][session_type];
  14140. if (fdai->strm_id != INVALID_SESSION) {
  14141. int idx;
  14142. int port_id;
  14143. unsigned long copp =
  14144. session_copp_map[i][session_type][be_id];
  14145. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  14146. if (test_bit(idx, &copp))
  14147. break;
  14148. fdai->be_srate = bedai->sample_rate;
  14149. port_id = bedai->port_id;
  14150. topology = adm_get_topology_for_port_copp_idx(port_id,
  14151. idx);
  14152. adm_close(bedai->port_id, fdai->perf_mode, idx);
  14153. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  14154. __func__, copp, i, session_type, be_id,
  14155. topology);
  14156. clear_bit(idx,
  14157. &session_copp_map[i][session_type][be_id]);
  14158. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  14159. (bedai->passthr_mode[i] == LEGACY_PCM))
  14160. msm_pcm_routing_deinit_pp(bedai->port_id,
  14161. topology);
  14162. }
  14163. }
  14164. bedai->active = 0;
  14165. bedai->sample_rate = 0;
  14166. bedai->channel = 0;
  14167. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  14168. if (bedai->passthr_mode[i] != LISTEN)
  14169. bedai->passthr_mode[i] = LEGACY_PCM;
  14170. }
  14171. mutex_unlock(&routing_lock);
  14172. return 0;
  14173. }
  14174. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  14175. {
  14176. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  14177. unsigned int be_id = rtd->dai_link->id;
  14178. int i, path_type, topology;
  14179. int session_type = INVALID_SESSION;
  14180. struct msm_pcm_routing_bdai_data *bedai;
  14181. u32 channels, sample_rate;
  14182. uint16_t bits_per_sample = 16, voc_path_type;
  14183. struct msm_pcm_routing_fdai_data *fdai;
  14184. u32 session_id;
  14185. struct media_format_info voc_be_media_format;
  14186. bool is_lsm;
  14187. pr_debug("%s: substream->pcm->id:%s\n",
  14188. __func__, substream->pcm->id);
  14189. if (be_id >= MSM_BACKEND_DAI_MAX) {
  14190. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  14191. return -EINVAL;
  14192. }
  14193. bedai = &msm_bedais[be_id];
  14194. mutex_lock(&routing_lock);
  14195. if (bedai->active == 1)
  14196. goto done; /* Ignore prepare if back-end already active */
  14197. /* AFE port is not active at this point. However, still
  14198. * go ahead setting active flag under the notion that
  14199. * QDSP6 is able to handle ADM starting before AFE port
  14200. * is started.
  14201. */
  14202. bedai->active = 1;
  14203. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  14204. if (!(is_mm_lsm_fe_id(i) &&
  14205. route_check_fe_id_adm_support(i)))
  14206. continue;
  14207. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  14208. if (bedai->passthr_mode[i] != LEGACY_PCM)
  14209. path_type = ADM_PATH_COMPRESSED_RX;
  14210. else
  14211. path_type = ADM_PATH_PLAYBACK;
  14212. session_type = SESSION_TYPE_RX;
  14213. } else {
  14214. path_type = ADM_PATH_LIVE_REC;
  14215. session_type = SESSION_TYPE_TX;
  14216. }
  14217. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  14218. (i <= MSM_FRONTEND_DAI_LSM8);
  14219. fdai = &fe_dai_map[i][session_type];
  14220. if (fdai->strm_id != INVALID_SESSION) {
  14221. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  14222. if (session_type == SESSION_TYPE_TX &&
  14223. fdai->be_srate &&
  14224. (fdai->be_srate != bedai->sample_rate)) {
  14225. pr_debug("%s: flush strm %d diff BE rates\n",
  14226. __func__,
  14227. fdai->strm_id);
  14228. if (fdai->event_info.event_func)
  14229. fdai->event_info.event_func(
  14230. MSM_PCM_RT_EVT_BUF_RECFG,
  14231. fdai->event_info.priv_data);
  14232. fdai->be_srate = 0; /* might not need it */
  14233. }
  14234. bits_per_sample = msm_routing_get_bit_width(
  14235. bedai->format);
  14236. app_type =
  14237. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  14238. if (app_type && is_lsm) {
  14239. app_type_idx =
  14240. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  14241. sample_rate =
  14242. fe_dai_app_type_cfg[i][session_type][be_id]
  14243. .sample_rate;
  14244. bits_per_sample =
  14245. lsm_app_type_cfg[app_type_idx].bit_width;
  14246. } else if (app_type) {
  14247. app_type_idx =
  14248. msm_pcm_routing_get_app_type_idx(app_type);
  14249. sample_rate =
  14250. fe_dai_app_type_cfg[i][session_type]
  14251. [be_id].sample_rate;
  14252. bits_per_sample =
  14253. app_type_cfg[app_type_idx].bit_width;
  14254. } else
  14255. sample_rate = bedai->sample_rate;
  14256. /*
  14257. * check if ADM needs to be configured with different
  14258. * channel mapping than backend
  14259. */
  14260. if (!bedai->adm_override_ch)
  14261. channels = bedai->channel;
  14262. else
  14263. channels = bedai->adm_override_ch;
  14264. acdb_dev_id =
  14265. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  14266. topology = msm_routing_get_adm_topology(i, session_type,
  14267. be_id);
  14268. copp_idx = adm_open(bedai->port_id, path_type,
  14269. sample_rate, channels, topology,
  14270. fdai->perf_mode, bits_per_sample,
  14271. app_type, acdb_dev_id);
  14272. if ((copp_idx < 0) ||
  14273. (copp_idx >= MAX_COPPS_PER_PORT)) {
  14274. pr_err("%s: adm open failed\n", __func__);
  14275. mutex_unlock(&routing_lock);
  14276. return -EINVAL;
  14277. }
  14278. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  14279. __func__, i, session_type, be_id);
  14280. set_bit(copp_idx,
  14281. &session_copp_map[i][session_type][be_id]);
  14282. if (msm_is_resample_needed(
  14283. sample_rate,
  14284. bedai->sample_rate))
  14285. adm_copp_mfc_cfg(
  14286. bedai->port_id, copp_idx,
  14287. bedai->sample_rate);
  14288. msm_pcm_routing_build_matrix(i, session_type, path_type,
  14289. fdai->perf_mode,
  14290. bedai->passthr_mode[i]);
  14291. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  14292. (bedai->passthr_mode[i] == LEGACY_PCM))
  14293. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  14294. topology, channels);
  14295. }
  14296. }
  14297. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  14298. session_id = msm_pcm_routing_get_voc_sessionid(i);
  14299. if (session_id) {
  14300. pr_debug("%s voice session_id: 0x%x\n", __func__,
  14301. session_id);
  14302. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  14303. voc_path_type = RX_PATH;
  14304. else
  14305. voc_path_type = TX_PATH;
  14306. voc_set_route_flag(session_id, voc_path_type, 1);
  14307. memset(&voc_be_media_format, 0,
  14308. sizeof(struct media_format_info));
  14309. voc_be_media_format.port_id = bedai->port_id;
  14310. voc_be_media_format.num_channels = bedai->channel;
  14311. voc_be_media_format.sample_rate = bedai->sample_rate;
  14312. voc_be_media_format.bits_per_sample = bedai->format;
  14313. /* Defaulting this to 1 for voice call usecases */
  14314. voc_be_media_format.channel_mapping[0] = 1;
  14315. voc_set_device_config(session_id, voc_path_type,
  14316. &voc_be_media_format);
  14317. if (voc_get_route_flag(session_id, RX_PATH) &&
  14318. voc_get_route_flag(session_id, TX_PATH))
  14319. voc_enable_device(session_id);
  14320. }
  14321. }
  14322. /* Check if backend is an external ec ref port and set as needed */
  14323. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  14324. memset(&voc_be_media_format, 0,
  14325. sizeof(struct media_format_info));
  14326. /* Get format info for ec ref port from msm_bedais[] */
  14327. voc_be_media_format.port_id = bedai->port_id;
  14328. voc_be_media_format.num_channels = bedai->channel;
  14329. voc_be_media_format.bits_per_sample = bedai->format;
  14330. voc_be_media_format.sample_rate = bedai->sample_rate;
  14331. /* Defaulting this to 1 for voice call usecases */
  14332. voc_be_media_format.channel_mapping[0] = 1;
  14333. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  14334. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  14335. __func__, voc_be_media_format.port_id,
  14336. voc_be_media_format.num_channels,
  14337. voc_be_media_format.bits_per_sample,
  14338. voc_be_media_format.sample_rate);
  14339. }
  14340. done:
  14341. mutex_unlock(&routing_lock);
  14342. return 0;
  14343. }
  14344. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  14345. int fe_id)
  14346. {
  14347. int index, topo_id, be_idx;
  14348. unsigned long pp_config = 0;
  14349. bool mute_on;
  14350. int latency;
  14351. bool compr_passthr_mode = true;
  14352. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  14353. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  14354. pr_err("%s: Device pp params on invalid port %d\n",
  14355. __func__, port_id);
  14356. return -EINVAL;
  14357. }
  14358. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14359. if (port_id == msm_bedais[be_idx].port_id)
  14360. break;
  14361. }
  14362. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14363. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  14364. return -EINVAL;
  14365. }
  14366. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  14367. if (msm_bedais_pp_params[index].port_id == port_id)
  14368. break;
  14369. }
  14370. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  14371. pr_err("%s: Invalid backend pp params index %d\n",
  14372. __func__, index);
  14373. return -EINVAL;
  14374. }
  14375. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  14376. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  14377. pr_err("%s: Invalid passthrough topology 0x%x\n",
  14378. __func__, topo_id);
  14379. return -EINVAL;
  14380. }
  14381. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  14382. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  14383. compr_passthr_mode = false;
  14384. pp_config = msm_bedais_pp_params[index].pp_params_config;
  14385. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  14386. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  14387. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  14388. mute_on = msm_bedais_pp_params[index].mute_on;
  14389. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  14390. adm_send_compressed_device_mute(port_id,
  14391. copp_idx,
  14392. mute_on);
  14393. }
  14394. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  14395. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  14396. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  14397. &pp_config);
  14398. latency = msm_bedais_pp_params[index].latency;
  14399. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  14400. adm_send_compressed_device_latency(port_id,
  14401. copp_idx,
  14402. latency);
  14403. }
  14404. return 0;
  14405. }
  14406. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  14407. struct snd_ctl_elem_value *ucontrol)
  14408. {
  14409. int pp_id = ucontrol->value.integer.value[0];
  14410. int port_id = 0;
  14411. int index, be_idx, i, topo_id, idx;
  14412. bool mute;
  14413. int latency;
  14414. bool compr_passthr_mode = true;
  14415. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  14416. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14417. port_id = msm_bedais[be_idx].port_id;
  14418. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  14419. break;
  14420. }
  14421. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14422. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  14423. return -EINVAL;
  14424. }
  14425. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  14426. if (msm_bedais_pp_params[index].port_id == port_id)
  14427. break;
  14428. }
  14429. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  14430. pr_err("%s: Invalid pp params backend index %d\n",
  14431. __func__, index);
  14432. return -EINVAL;
  14433. }
  14434. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14435. MSM_FRONTEND_DAI_MM_SIZE) {
  14436. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  14437. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  14438. compr_passthr_mode = false;
  14439. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14440. unsigned long copp =
  14441. session_copp_map[i]
  14442. [SESSION_TYPE_RX][be_idx];
  14443. if (!test_bit(idx, &copp))
  14444. continue;
  14445. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  14446. idx);
  14447. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  14448. continue;
  14449. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  14450. __func__, port_id, copp, msm_bedais[be_idx].active,
  14451. msm_bedais[be_idx].passthr_mode[i]);
  14452. switch (pp_id) {
  14453. case ADM_PP_PARAM_MUTE_ID:
  14454. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  14455. mute = ucontrol->value.integer.value[1] ? true : false;
  14456. msm_bedais_pp_params[index].mute_on = mute;
  14457. set_bit(ADM_PP_PARAM_MUTE_BIT,
  14458. &msm_bedais_pp_params[index].pp_params_config);
  14459. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  14460. adm_send_compressed_device_mute(port_id,
  14461. idx, mute);
  14462. break;
  14463. case ADM_PP_PARAM_LATENCY_ID:
  14464. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  14465. msm_bedais_pp_params[index].latency =
  14466. ucontrol->value.integer.value[1];
  14467. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  14468. &msm_bedais_pp_params[index].pp_params_config);
  14469. latency = msm_bedais_pp_params[index].latency =
  14470. ucontrol->value.integer.value[1];
  14471. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  14472. adm_send_compressed_device_latency(port_id,
  14473. idx, latency);
  14474. break;
  14475. default:
  14476. pr_info("%s, device pp param %d not supported\n",
  14477. __func__, pp_id);
  14478. break;
  14479. }
  14480. }
  14481. }
  14482. return 0;
  14483. }
  14484. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  14485. struct snd_ctl_elem_value *ucontrol)
  14486. {
  14487. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  14488. return 0;
  14489. }
  14490. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  14491. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  14492. 0, 3, msm_routing_get_device_pp_params_mixer,
  14493. msm_routing_put_device_pp_params_mixer),
  14494. };
  14495. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  14496. struct snd_ctl_elem_value *ucontrol)
  14497. {
  14498. ucontrol->value.integer.value[0] =
  14499. core_get_license_status(ASM_MEDIA_FMT_APTX);
  14500. pr_debug("%s: status %ld\n", __func__,
  14501. ucontrol->value.integer.value[0]);
  14502. return 0;
  14503. }
  14504. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  14505. struct snd_ctl_elem_value *ucontrol)
  14506. {
  14507. int32_t status = 0;
  14508. status = core_set_license(ucontrol->value.integer.value[0],
  14509. APTX_CLASSIC_DEC_LICENSE_ID);
  14510. pr_debug("%s: status %d\n", __func__, status);
  14511. return status;
  14512. }
  14513. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  14514. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  14515. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  14516. msm_aptx_dec_license_control_put),
  14517. };
  14518. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  14519. struct snd_ctl_elem_info *uinfo)
  14520. {
  14521. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14522. uinfo->count = sizeof(be_dai_name_table);
  14523. return 0;
  14524. }
  14525. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  14526. unsigned int __user *bytes,
  14527. unsigned int size)
  14528. {
  14529. int i;
  14530. int ret;
  14531. if (size < sizeof(be_dai_name_table)) {
  14532. pr_err("%s: invalid size %d requested, returning\n",
  14533. __func__, size);
  14534. ret = -EINVAL;
  14535. goto done;
  14536. }
  14537. /*
  14538. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  14539. * needed when adding new backends
  14540. */
  14541. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  14542. be_dai_name_table[i].be_id = i;
  14543. strlcpy(be_dai_name_table[i].be_name,
  14544. msm_bedais[i].name,
  14545. LPASS_BE_NAME_MAX_LENGTH);
  14546. }
  14547. ret = copy_to_user(bytes, &be_dai_name_table,
  14548. sizeof(be_dai_name_table));
  14549. if (ret) {
  14550. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  14551. ret = -EFAULT;
  14552. }
  14553. done:
  14554. return ret;
  14555. }
  14556. static const struct snd_kcontrol_new
  14557. msm_routing_be_dai_name_table_mixer_controls[] = {
  14558. {
  14559. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  14560. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  14561. .info = msm_routing_be_dai_name_table_info,
  14562. .name = "Backend DAI Name Table",
  14563. .tlv.c = snd_soc_bytes_tlv_callback,
  14564. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  14565. .max = sizeof(be_dai_name_table),
  14566. .get = msm_routing_be_dai_name_table_tlv_get,
  14567. }
  14568. },
  14569. };
  14570. static int msm_routing_stereo_channel_reverse_control_get(
  14571. struct snd_kcontrol *kcontrol,
  14572. struct snd_ctl_elem_value *ucontrol)
  14573. {
  14574. ucontrol->value.integer.value[0] = swap_ch;
  14575. pr_debug("%s: Swap channel value: %ld\n", __func__,
  14576. ucontrol->value.integer.value[0]);
  14577. return 0;
  14578. }
  14579. static int msm_routing_stereo_channel_reverse_control_put(
  14580. struct snd_kcontrol *kcontrol,
  14581. struct snd_ctl_elem_value *ucontrol)
  14582. {
  14583. int i, idx, be_index, port_id;
  14584. int ret = 0;
  14585. unsigned long copp;
  14586. pr_debug("%s Swap channel value:%ld\n", __func__,
  14587. ucontrol->value.integer.value[0]);
  14588. swap_ch = ucontrol->value.integer.value[0];
  14589. mutex_lock(&routing_lock);
  14590. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  14591. port_id = msm_bedais[be_index].port_id;
  14592. if (!msm_bedais[be_index].active)
  14593. continue;
  14594. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  14595. MSM_FRONTEND_DAI_MM_SIZE) {
  14596. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  14597. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14598. if (!test_bit(idx, &copp))
  14599. continue;
  14600. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  14601. __func__, port_id, idx);
  14602. ret = adm_swap_speaker_channels(
  14603. port_id, idx,
  14604. msm_bedais[be_index].sample_rate,
  14605. swap_ch);
  14606. if (ret) {
  14607. pr_err("%s:Swap_channel failed, err=%d\n",
  14608. __func__, ret);
  14609. goto done;
  14610. }
  14611. }
  14612. }
  14613. }
  14614. done:
  14615. mutex_unlock(&routing_lock);
  14616. return ret;
  14617. }
  14618. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  14619. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  14620. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  14621. msm_routing_stereo_channel_reverse_control_put),
  14622. };
  14623. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  14624. .hw_params = msm_pcm_routing_hw_params,
  14625. .close = msm_pcm_routing_close,
  14626. .prepare = msm_pcm_routing_prepare,
  14627. };
  14628. /* Not used but frame seems to require it */
  14629. static int msm_routing_probe(struct snd_soc_platform *platform)
  14630. {
  14631. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  14632. ARRAY_SIZE(msm_qdsp6_widgets));
  14633. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  14634. ARRAY_SIZE(intercon));
  14635. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  14636. snd_soc_add_platform_controls(platform, lsm_controls,
  14637. ARRAY_SIZE(lsm_controls));
  14638. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  14639. ARRAY_SIZE(aanc_slim_0_rx_mux));
  14640. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  14641. ARRAY_SIZE(msm_voc_session_controls));
  14642. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  14643. ARRAY_SIZE(app_type_cfg_controls));
  14644. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  14645. ARRAY_SIZE(lsm_app_type_cfg_controls));
  14646. snd_soc_add_platform_controls(platform,
  14647. stereo_to_custom_stereo_controls,
  14648. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  14649. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  14650. ARRAY_SIZE(ec_ref_param_controls));
  14651. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  14652. ARRAY_SIZE(channel_mixer_controls));
  14653. msm_qti_pp_add_controls(platform);
  14654. msm_dts_srs_tm_add_controls(platform);
  14655. msm_dolby_dap_add_controls(platform);
  14656. snd_soc_add_platform_controls(platform,
  14657. use_ds1_or_ds2_controls,
  14658. ARRAY_SIZE(use_ds1_or_ds2_controls));
  14659. snd_soc_add_platform_controls(platform,
  14660. device_pp_params_mixer_controls,
  14661. ARRAY_SIZE(device_pp_params_mixer_controls));
  14662. snd_soc_add_platform_controls(platform,
  14663. msm_routing_be_dai_name_table_mixer_controls,
  14664. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  14665. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  14666. ARRAY_SIZE(msm_source_tracking_controls));
  14667. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  14668. ARRAY_SIZE(adm_channel_config_controls));
  14669. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  14670. ARRAY_SIZE(aptx_dec_license_controls));
  14671. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  14672. ARRAY_SIZE(stereo_channel_reverse_control));
  14673. return 0;
  14674. }
  14675. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  14676. {
  14677. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  14678. }
  14679. void msm_routing_pcm_free(struct snd_pcm *pcm)
  14680. {
  14681. msm_pcm_routing_hwdep_free(pcm);
  14682. }
  14683. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  14684. .ops = &msm_routing_pcm_ops,
  14685. .probe = msm_routing_probe,
  14686. .pcm_new = msm_routing_pcm_new,
  14687. .pcm_free = msm_routing_pcm_free,
  14688. };
  14689. static int msm_routing_pcm_probe(struct platform_device *pdev)
  14690. {
  14691. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  14692. return snd_soc_register_platform(&pdev->dev,
  14693. &msm_soc_routing_platform);
  14694. }
  14695. static int msm_routing_pcm_remove(struct platform_device *pdev)
  14696. {
  14697. snd_soc_unregister_platform(&pdev->dev);
  14698. return 0;
  14699. }
  14700. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  14701. {.compatible = "qcom,msm-pcm-routing"},
  14702. {}
  14703. };
  14704. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  14705. static struct platform_driver msm_routing_pcm_driver = {
  14706. .driver = {
  14707. .name = "msm-pcm-routing",
  14708. .owner = THIS_MODULE,
  14709. .of_match_table = msm_pcm_routing_dt_match,
  14710. },
  14711. .probe = msm_routing_pcm_probe,
  14712. .remove = msm_routing_pcm_remove,
  14713. };
  14714. int msm_routing_check_backend_enabled(int fedai_id)
  14715. {
  14716. int i;
  14717. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  14718. /* bad ID assigned in machine driver */
  14719. pr_err("%s: bad MM ID\n", __func__);
  14720. return 0;
  14721. }
  14722. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  14723. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  14724. return msm_bedais[i].active;
  14725. }
  14726. return 0;
  14727. }
  14728. static int msm_routing_set_cal(int32_t cal_type,
  14729. size_t data_size, void *data)
  14730. {
  14731. int ret = 0;
  14732. pr_debug("%s\n", __func__);
  14733. ret = cal_utils_set_cal(data_size, data, cal_data, 0, NULL);
  14734. if (ret < 0) {
  14735. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  14736. __func__, ret, cal_type);
  14737. ret = -EINVAL;
  14738. goto done;
  14739. }
  14740. done:
  14741. return ret;
  14742. }
  14743. static void msm_routing_delete_cal_data(void)
  14744. {
  14745. pr_debug("%s\n", __func__);
  14746. cal_utils_destroy_cal_types(1, &cal_data);
  14747. }
  14748. static int msm_routing_init_cal_data(void)
  14749. {
  14750. int ret = 0;
  14751. struct cal_type_info cal_type_info = {
  14752. {ADM_TOPOLOGY_CAL_TYPE,
  14753. {NULL, NULL, NULL,
  14754. msm_routing_set_cal, NULL, NULL} },
  14755. {NULL, NULL, cal_utils_match_buf_num}
  14756. };
  14757. pr_debug("%s\n", __func__);
  14758. ret = cal_utils_create_cal_types(1, &cal_data,
  14759. &cal_type_info);
  14760. if (ret < 0) {
  14761. pr_err("%s: could not create cal type!\n",
  14762. __func__);
  14763. ret = -EINVAL;
  14764. goto err;
  14765. }
  14766. return ret;
  14767. err:
  14768. msm_routing_delete_cal_data();
  14769. return ret;
  14770. }
  14771. static int __init msm_soc_routing_platform_init(void)
  14772. {
  14773. mutex_init(&routing_lock);
  14774. if (msm_routing_init_cal_data())
  14775. pr_err("%s: could not init cal data!\n", __func__);
  14776. afe_set_routing_callback(
  14777. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  14778. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  14779. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  14780. return platform_driver_register(&msm_routing_pcm_driver);
  14781. }
  14782. module_init(msm_soc_routing_platform_init);
  14783. static void __exit msm_soc_routing_platform_exit(void)
  14784. {
  14785. msm_routing_delete_cal_data();
  14786. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  14787. mutex_destroy(&routing_lock);
  14788. platform_driver_unregister(&msm_routing_pcm_driver);
  14789. }
  14790. module_exit(msm_soc_routing_platform_exit);
  14791. MODULE_DESCRIPTION("MSM routing platform driver");
  14792. MODULE_LICENSE("GPL v2");