msm-pcm-routing-v2.c 751 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808
  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 <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/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 quin_mi2s_switch_enable;
  64. static int fm_pcmrx_switch_enable;
  65. static int usb_switch_enable;
  66. static int lsm_port_index;
  67. static int slim0_rx_aanc_fb_port;
  68. static int msm_route_ec_ref_rx;
  69. static int msm_ec_ref_ch = 4;
  70. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  71. static int msm_ec_ref_sampling_rate = 48000;
  72. static uint32_t voc_session_id = ALL_SESSION_VSID;
  73. static int msm_route_ext_ec_ref;
  74. static bool is_custom_stereo_on;
  75. static bool is_ds2_on;
  76. static bool swap_ch;
  77. #define WEIGHT_0_DB 0x4000
  78. /* all the FEs which can support channel mixer */
  79. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  80. /* input BE for each FE */
  81. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  82. enum {
  83. MADNONE,
  84. MADAUDIO,
  85. MADBEACON,
  86. MADULTRASOUND,
  87. MADSWAUDIO,
  88. };
  89. #define ADM_LSM_PORT_INDEX 9
  90. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  91. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  92. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  93. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  94. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  95. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  96. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  97. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  98. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  99. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  100. #define LSM_FUNCTION_TEXT "LSM Function"
  101. static const char * const lsm_port_text[] = {
  102. "None",
  103. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  104. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  105. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  106. INT3_MI2S_TX_TEXT
  107. };
  108. struct msm_pcm_route_bdai_pp_params {
  109. u16 port_id; /* AFE port ID */
  110. unsigned long pp_params_config;
  111. bool mute_on;
  112. int latency;
  113. };
  114. static struct msm_pcm_route_bdai_pp_params
  115. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  116. {HDMI_RX, 0, 0, 0},
  117. {DISPLAY_PORT_RX, 0, 0, 0},
  118. };
  119. /*
  120. * The be_dai_name_table is passed to HAL so that it can specify the
  121. * BE ID for the BE it wants to enable based on the name. Thus there
  122. * is a matching table and structure in HAL that need to be updated
  123. * if any changes to these are made.
  124. */
  125. struct msm_pcm_route_bdai_name {
  126. unsigned int be_id;
  127. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  128. };
  129. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  130. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  131. int fe_id);
  132. static int msm_routing_get_bit_width(unsigned int format)
  133. {
  134. int bit_width;
  135. switch (format) {
  136. case SNDRV_PCM_FORMAT_S32_LE:
  137. bit_width = 32;
  138. break;
  139. case SNDRV_PCM_FORMAT_S24_LE:
  140. case SNDRV_PCM_FORMAT_S24_3LE:
  141. bit_width = 24;
  142. break;
  143. case SNDRV_PCM_FORMAT_S16_LE:
  144. default:
  145. bit_width = 16;
  146. }
  147. return bit_width;
  148. }
  149. static bool msm_is_resample_needed(int input_sr, int output_sr)
  150. {
  151. bool rc = false;
  152. if (input_sr != output_sr)
  153. rc = true;
  154. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  155. (rc ? "oh yes" : "not really"),
  156. input_sr, output_sr);
  157. return rc;
  158. }
  159. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  160. int channels)
  161. {
  162. int rc = 0;
  163. switch (topology) {
  164. case SRS_TRUMEDIA_TOPOLOGY_ID:
  165. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  166. msm_dts_srs_tm_init(port_id, copp_idx);
  167. break;
  168. case DS2_ADM_COPP_TOPOLOGY_ID:
  169. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  170. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  171. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  172. is_custom_stereo_on);
  173. if (rc < 0)
  174. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  175. __func__, topology, port_id,
  176. is_custom_stereo_on, rc);
  177. break;
  178. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  179. if (is_ds2_on) {
  180. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  185. __func__, topology, port_id, rc);
  186. } else {
  187. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  188. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. }
  194. break;
  195. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  196. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  197. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  198. if (rc < 0)
  199. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  200. __func__, topology, port_id, copp_idx, rc);
  201. break;
  202. default:
  203. /* custom topology specific feature param handlers */
  204. break;
  205. }
  206. }
  207. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  208. {
  209. switch (topology) {
  210. case SRS_TRUMEDIA_TOPOLOGY_ID:
  211. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  212. msm_dts_srs_tm_deinit(port_id);
  213. break;
  214. case DS2_ADM_COPP_TOPOLOGY_ID:
  215. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  216. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  217. msm_ds2_dap_deinit(port_id);
  218. break;
  219. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  220. if (is_ds2_on) {
  221. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  222. msm_ds2_dap_deinit(port_id);
  223. } else {
  224. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  225. msm_dolby_dap_deinit(port_id);
  226. }
  227. break;
  228. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  229. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  230. msm_qti_pp_asphere_deinit(port_id);
  231. break;
  232. default:
  233. /* custom topology specific feature deinit handlers */
  234. break;
  235. }
  236. }
  237. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  238. int path_type, int perf_mode)
  239. {
  240. int itr = 0, rc = 0;
  241. if ((path_type == ADM_PATH_PLAYBACK) &&
  242. (perf_mode == LEGACY_PCM_MODE) &&
  243. is_custom_stereo_on) {
  244. for (itr = 0; itr < payload.num_copps; itr++) {
  245. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  246. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  247. continue;
  248. }
  249. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  250. payload.port_id[itr],
  251. payload.copp_idx[itr],
  252. payload.session_id,
  253. Q14_GAIN_ZERO_POINT_FIVE,
  254. Q14_GAIN_ZERO_POINT_FIVE,
  255. Q14_GAIN_ZERO_POINT_FIVE,
  256. Q14_GAIN_ZERO_POINT_FIVE);
  257. if (rc < 0)
  258. pr_err("%s: err setting custom stereo\n",
  259. __func__);
  260. }
  261. }
  262. }
  263. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  264. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  265. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  266. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  267. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  268. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  269. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  270. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  271. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  272. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  273. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  274. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  275. LPASS_BE_AFE_PCM_RX},
  276. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  277. LPASS_BE_AFE_PCM_TX},
  278. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  279. LPASS_BE_AUXPCM_RX},
  280. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AUXPCM_TX},
  282. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_VOICE_PLAYBACK_TX},
  284. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_VOICE2_PLAYBACK_TX},
  286. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_INCALL_RECORD_RX},
  288. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_INCALL_RECORD_TX},
  290. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  291. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  292. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  293. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  294. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  295. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  296. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  297. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  298. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  299. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  300. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  301. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  302. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  303. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  304. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  305. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  306. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  307. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  308. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  309. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  310. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  311. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  312. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  313. LPASS_BE_QUAT_MI2S_RX},
  314. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  315. LPASS_BE_QUAT_MI2S_TX},
  316. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  317. LPASS_BE_SEC_MI2S_RX},
  318. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_SEC_MI2S_TX},
  320. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_PRI_MI2S_RX},
  322. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_PRI_MI2S_TX},
  324. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_TERT_MI2S_RX},
  326. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_TERT_MI2S_TX},
  328. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_AUDIO_I2S_RX},
  330. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_SEC_AUXPCM_RX},
  332. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_SEC_AUXPCM_TX},
  334. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_SPDIF_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_MI2S_RX_SD1},
  338. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_QUIN_MI2S_RX},
  340. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_QUIN_MI2S_TX},
  342. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_SENARY_MI2S_TX},
  344. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_PRI_TDM_RX_0},
  346. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_PRI_TDM_TX_0},
  348. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_PRI_TDM_RX_1},
  350. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_TX_1},
  352. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_RX_2},
  354. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_TX_2},
  356. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_RX_3},
  358. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_TX_3},
  360. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_RX_4},
  362. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_TX_4},
  364. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_RX_5},
  366. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_TX_5},
  368. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_RX_6},
  370. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_TX_6},
  372. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_RX_7},
  374. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_TX_7},
  376. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_SEC_TDM_RX_0},
  378. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_SEC_TDM_TX_0},
  380. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_SEC_TDM_RX_1},
  382. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_TX_1},
  384. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_RX_2},
  386. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_TX_2},
  388. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_RX_3},
  390. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_TX_3},
  392. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_RX_4},
  394. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_TX_4},
  396. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_RX_5},
  398. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_TX_5},
  400. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_RX_6},
  402. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_TX_6},
  404. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_RX_7},
  406. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_TX_7},
  408. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_TERT_TDM_RX_0},
  410. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_TERT_TDM_TX_0},
  412. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_TERT_TDM_RX_1},
  414. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_TX_1},
  416. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_RX_2},
  418. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_TX_2},
  420. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_RX_3},
  422. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_TX_3},
  424. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_RX_4},
  426. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_TX_4},
  428. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_RX_5},
  430. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_TX_5},
  432. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_RX_6},
  434. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_TX_6},
  436. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_RX_7},
  438. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_TX_7},
  440. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_QUAT_TDM_RX_0},
  442. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_QUAT_TDM_TX_0},
  444. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_QUAT_TDM_RX_1},
  446. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_TX_1},
  448. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_RX_2},
  450. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_TX_2},
  452. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_RX_3},
  454. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_TX_3},
  456. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_RX_4},
  458. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_TX_4},
  460. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_RX_5},
  462. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_TX_5},
  464. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_RX_6},
  466. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_TX_6},
  468. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_RX_7},
  470. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_TX_7},
  472. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUIN_TDM_RX_0},
  474. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUIN_TDM_TX_0},
  476. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUIN_TDM_RX_1},
  478. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_TX_1},
  480. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_RX_2},
  482. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_TX_2},
  484. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_RX_3},
  486. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_TX_3},
  488. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_RX_4},
  490. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_TX_4},
  492. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_RX_5},
  494. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_TX_5},
  496. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_RX_6},
  498. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_TX_6},
  500. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_RX_7},
  502. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_TX_7},
  504. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_INT_BT_A2DP_RX},
  506. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_USB_AUDIO_RX},
  508. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_USB_AUDIO_TX},
  510. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_DISPLAY_PORT},
  512. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_TERT_AUXPCM_RX},
  514. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_TERT_AUXPCM_TX},
  516. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_QUAT_AUXPCM_RX},
  518. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_QUAT_AUXPCM_TX},
  520. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_QUIN_AUXPCM_RX},
  522. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_QUIN_AUXPCM_TX},
  524. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_INT0_MI2S_RX},
  526. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_INT0_MI2S_TX},
  528. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_INT1_MI2S_RX},
  530. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_INT1_MI2S_TX},
  532. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT2_MI2S_RX},
  534. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT2_MI2S_TX},
  536. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT3_MI2S_RX},
  538. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT3_MI2S_TX},
  540. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT4_MI2S_RX},
  542. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT4_MI2S_TX},
  544. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT5_MI2S_RX},
  546. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT5_MI2S_TX},
  548. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT6_MI2S_RX},
  550. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT6_MI2S_TX},
  552. };
  553. /* Track ASM playback & capture sessions of DAI
  554. * Track LSM listen sessions
  555. */
  556. static struct msm_pcm_routing_fdai_data
  557. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  558. /* MULTIMEDIA1 */
  559. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  560. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  561. /* MULTIMEDIA2 */
  562. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  563. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  564. /* MULTIMEDIA3 */
  565. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  566. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  567. /* MULTIMEDIA4 */
  568. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  569. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  570. /* MULTIMEDIA5 */
  571. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  572. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  573. /* MULTIMEDIA6 */
  574. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  575. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  576. /* MULTIMEDIA7*/
  577. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  578. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  579. /* MULTIMEDIA8 */
  580. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  581. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  582. /* MULTIMEDIA9 */
  583. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  584. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  585. /* MULTIMEDIA10 */
  586. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  587. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  588. /* MULTIMEDIA11 */
  589. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  590. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  591. /* MULTIMEDIA12 */
  592. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  593. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  594. /* MULTIMEDIA13 */
  595. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  596. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  597. /* MULTIMEDIA14 */
  598. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  599. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  600. /* MULTIMEDIA15 */
  601. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  602. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  603. /* MULTIMEDIA16 */
  604. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  605. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  606. /* MULTIMEDIA17 */
  607. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  608. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  609. /* MULTIMEDIA18 */
  610. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  611. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  612. /* MULTIMEDIA19 */
  613. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  614. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  615. /* MULTIMEDIA20 */
  616. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  617. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  618. /* CS_VOICE */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  621. /* VOIP */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  624. /* AFE_RX */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  627. /* AFE_TX */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  630. /* VOICE_STUB */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  633. /* VOLTE */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  636. /* DTMF_RX */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  639. /* VOICE2 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  642. /* QCHAT */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  645. /* VOLTE_STUB */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  648. /* LSM1 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  651. /* LSM2 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  654. /* LSM3 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  657. /* LSM4 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  660. /* LSM5 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  663. /* LSM6 */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  666. /* LSM7 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  669. /* LSM8 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  672. /* VOICE2_STUB */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  675. /* VOWLAN */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  678. /* VOICEMMODE1 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  681. /* VOICEMMODE2 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  684. };
  685. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  686. [MSM_BACKEND_DAI_MAX];
  687. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  688. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  689. static struct msm_pcm_stream_app_type_cfg
  690. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  691. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  692. /* The caller of this should aqcuire routing lock */
  693. void msm_pcm_routing_get_bedai_info(int be_idx,
  694. struct msm_pcm_routing_bdai_data *be_dai)
  695. {
  696. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  697. memcpy(be_dai, &msm_bedais[be_idx],
  698. sizeof(struct msm_pcm_routing_bdai_data));
  699. }
  700. /* The caller of this should aqcuire routing lock */
  701. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  702. struct msm_pcm_routing_fdai_data *fe_dai)
  703. {
  704. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  705. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  706. sizeof(struct msm_pcm_routing_fdai_data));
  707. }
  708. void msm_pcm_routing_acquire_lock(void)
  709. {
  710. mutex_lock(&routing_lock);
  711. }
  712. void msm_pcm_routing_release_lock(void)
  713. {
  714. mutex_unlock(&routing_lock);
  715. }
  716. static int msm_pcm_routing_get_app_type_idx(int app_type)
  717. {
  718. int idx;
  719. pr_debug("%s: app_type: %d\n", __func__, app_type);
  720. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  721. if (app_type_cfg[idx].app_type == app_type)
  722. return idx;
  723. }
  724. pr_info("%s: App type not available, fallback to default\n", __func__);
  725. return 0;
  726. }
  727. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  728. {
  729. int idx;
  730. pr_debug("%s: app_type: %d\n", __func__, app_type);
  731. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  732. if (lsm_app_type_cfg[idx].app_type == app_type)
  733. return idx;
  734. }
  735. pr_debug("%s: App type not available, fallback to default\n", __func__);
  736. return 0;
  737. }
  738. static bool is_mm_lsm_fe_id(int fe_id)
  739. {
  740. bool rc = true;
  741. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  742. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  743. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  744. rc = false;
  745. }
  746. return rc;
  747. }
  748. int msm_pcm_routing_reg_stream_app_type_cfg(
  749. int fedai_id, int session_type, int be_id,
  750. struct msm_pcm_stream_app_type_cfg *cfg_data)
  751. {
  752. int ret = 0;
  753. if (cfg_data == NULL) {
  754. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  755. ret = -EINVAL;
  756. goto done;
  757. }
  758. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  759. __func__, fedai_id, session_type, be_id,
  760. cfg_data->app_type, cfg_data->acdb_dev_id,
  761. cfg_data->sample_rate);
  762. if (!is_mm_lsm_fe_id(fedai_id)) {
  763. pr_err("%s: Invalid machine driver ID %d\n",
  764. __func__, fedai_id);
  765. ret = -EINVAL;
  766. goto done;
  767. }
  768. if (session_type != SESSION_TYPE_RX &&
  769. session_type != SESSION_TYPE_TX) {
  770. pr_err("%s: Invalid session type %d\n",
  771. __func__, session_type);
  772. ret = -EINVAL;
  773. goto done;
  774. }
  775. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  776. pr_err("%s: Received out of bounds be_id %d\n",
  777. __func__, be_id);
  778. ret = -EINVAL;
  779. goto done;
  780. }
  781. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  782. /*
  783. * Store the BE ID of the configuration information set as the latest so
  784. * the get mixer control knows what to return.
  785. */
  786. last_be_id_configured[fedai_id][session_type] = be_id;
  787. done:
  788. return ret;
  789. }
  790. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  791. /**
  792. * msm_pcm_routing_get_stream_app_type_cfg
  793. *
  794. * Receives fedai_id, session_type, be_id, and populates app_type,
  795. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  796. * -EINVAL and does not alter passed values.
  797. *
  798. * fedai_id - Passed value, front end ID for which app type config is wanted
  799. * session_type - Passed value, session type for which app type config
  800. * is wanted
  801. * be_id - Returned value, back end device id the app type config data is for
  802. * cfg_data - Returned value, configuration data used by app type config
  803. */
  804. int msm_pcm_routing_get_stream_app_type_cfg(
  805. int fedai_id, int session_type, int *bedai_id,
  806. struct msm_pcm_stream_app_type_cfg *cfg_data)
  807. {
  808. int be_id;
  809. int ret = 0;
  810. if (bedai_id == NULL) {
  811. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  812. ret = -EINVAL;
  813. goto done;
  814. } else if (cfg_data == NULL) {
  815. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  816. ret = -EINVAL;
  817. goto done;
  818. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  819. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  820. ret = -EINVAL;
  821. goto done;
  822. } else if (session_type != SESSION_TYPE_RX &&
  823. session_type != SESSION_TYPE_TX) {
  824. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  825. ret = -EINVAL;
  826. goto done;
  827. }
  828. be_id = last_be_id_configured[fedai_id][session_type];
  829. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  830. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  831. ret = -EINVAL;
  832. goto done;
  833. }
  834. *bedai_id = be_id;
  835. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  836. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  837. __func__, fedai_id, session_type, *bedai_id,
  838. cfg_data->app_type, cfg_data->acdb_dev_id,
  839. cfg_data->sample_rate);
  840. done:
  841. return ret;
  842. }
  843. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  844. static struct cal_block_data *msm_routing_find_topology_by_path(int path)
  845. {
  846. struct list_head *ptr, *next;
  847. struct cal_block_data *cal_block = NULL;
  848. pr_debug("%s\n", __func__);
  849. list_for_each_safe(ptr, next,
  850. &cal_data->cal_blocks) {
  851. cal_block = list_entry(ptr,
  852. struct cal_block_data, list);
  853. if (((struct audio_cal_info_adm_top *)cal_block->cal_info)
  854. ->path == path) {
  855. return cal_block;
  856. }
  857. }
  858. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  859. return NULL;
  860. }
  861. static struct cal_block_data *msm_routing_find_topology(int path,
  862. int app_type,
  863. int acdb_id)
  864. {
  865. struct list_head *ptr, *next;
  866. struct cal_block_data *cal_block = NULL;
  867. struct audio_cal_info_adm_top *cal_info;
  868. pr_debug("%s\n", __func__);
  869. list_for_each_safe(ptr, next,
  870. &cal_data->cal_blocks) {
  871. cal_block = list_entry(ptr,
  872. struct cal_block_data, list);
  873. cal_info = (struct audio_cal_info_adm_top *)
  874. cal_block->cal_info;
  875. if ((cal_info->path == path) &&
  876. (cal_info->app_type == app_type) &&
  877. (cal_info->acdb_id == acdb_id)) {
  878. return cal_block;
  879. }
  880. }
  881. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  882. __func__, path, app_type, acdb_id);
  883. return msm_routing_find_topology_by_path(path);
  884. }
  885. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  886. int be_id)
  887. {
  888. int topology = NULL_COPP_TOPOLOGY;
  889. struct cal_block_data *cal_block = NULL;
  890. int app_type = 0, acdb_dev_id = 0;
  891. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  892. __func__, fedai_id, session_type, be_id);
  893. if (cal_data == NULL)
  894. goto done;
  895. mutex_lock(&cal_data->lock);
  896. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  897. acdb_dev_id =
  898. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  899. cal_block = msm_routing_find_topology(session_type, app_type,
  900. acdb_dev_id);
  901. if (cal_block == NULL)
  902. goto unlock;
  903. topology = ((struct audio_cal_info_adm_top *)
  904. cal_block->cal_info)->topology;
  905. unlock:
  906. mutex_unlock(&cal_data->lock);
  907. done:
  908. pr_debug("%s: Using topology %d\n", __func__, topology);
  909. return topology;
  910. }
  911. static uint8_t is_be_dai_extproc(int be_dai)
  912. {
  913. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  914. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  915. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  916. return 1;
  917. else
  918. return 0;
  919. }
  920. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  921. int path_type, int perf_mode,
  922. uint32_t passthr_mode)
  923. {
  924. int i, port_type, j, num_copps = 0;
  925. struct route_payload payload;
  926. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  927. path_type == ADM_PATH_COMPRESSED_RX) ?
  928. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  929. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  930. if (!is_be_dai_extproc(i) &&
  931. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  932. (msm_bedais[i].active) &&
  933. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  934. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  935. unsigned long copp =
  936. session_copp_map[fedai_id][sess_type][i];
  937. if (test_bit(j, &copp)) {
  938. payload.port_id[num_copps] =
  939. msm_bedais[i].port_id;
  940. payload.copp_idx[num_copps] = j;
  941. payload.app_type[num_copps] =
  942. fe_dai_app_type_cfg
  943. [fedai_id][sess_type][i]
  944. .app_type;
  945. payload.acdb_dev_id[num_copps] =
  946. fe_dai_app_type_cfg
  947. [fedai_id][sess_type][i]
  948. .acdb_dev_id;
  949. payload.sample_rate[num_copps] =
  950. fe_dai_app_type_cfg
  951. [fedai_id][sess_type][i]
  952. .sample_rate;
  953. num_copps++;
  954. }
  955. }
  956. }
  957. }
  958. if (num_copps) {
  959. payload.num_copps = num_copps;
  960. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  961. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  962. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  963. }
  964. }
  965. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  966. int stream_type)
  967. {
  968. int i, session_type, path_type, port_type;
  969. u32 mode = 0;
  970. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  971. /* bad ID assigned in machine driver */
  972. pr_err("%s: bad MM ID\n", __func__);
  973. return;
  974. }
  975. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  976. session_type = SESSION_TYPE_RX;
  977. path_type = ADM_PATH_PLAYBACK;
  978. port_type = MSM_AFE_PORT_TYPE_RX;
  979. } else {
  980. session_type = SESSION_TYPE_TX;
  981. path_type = ADM_PATH_LIVE_REC;
  982. port_type = MSM_AFE_PORT_TYPE_TX;
  983. }
  984. mutex_lock(&routing_lock);
  985. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  986. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  987. if (!is_be_dai_extproc(i) &&
  988. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  989. (msm_bedais[i].active) &&
  990. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  991. mode = afe_get_port_type(msm_bedais[i].port_id);
  992. adm_connect_afe_port(mode, dspst_id,
  993. msm_bedais[i].port_id);
  994. break;
  995. }
  996. }
  997. mutex_unlock(&routing_lock);
  998. }
  999. static bool route_check_fe_id_adm_support(int fe_id)
  1000. {
  1001. bool rc = true;
  1002. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1003. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1004. /* fe id is listen while port is set to afe */
  1005. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1006. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1007. __func__, fe_id, lsm_port_index);
  1008. rc = false;
  1009. }
  1010. }
  1011. return rc;
  1012. }
  1013. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1014. int dspst_id, int stream_type,
  1015. uint32_t passthr_mode)
  1016. {
  1017. int i, j, session_type, path_type, port_type, topology;
  1018. int num_copps = 0;
  1019. struct route_payload payload;
  1020. u32 channels, sample_rate;
  1021. u16 bit_width = 16;
  1022. bool is_lsm;
  1023. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1024. __func__, fe_id, perf_mode, dspst_id,
  1025. stream_type, passthr_mode);
  1026. if (!is_mm_lsm_fe_id(fe_id)) {
  1027. /* bad ID assigned in machine driver */
  1028. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1029. return -EINVAL;
  1030. }
  1031. if (!route_check_fe_id_adm_support(fe_id)) {
  1032. /* ignore adm open if not supported for fe_id */
  1033. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1034. return 0;
  1035. }
  1036. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1037. session_type = SESSION_TYPE_RX;
  1038. if (passthr_mode != LEGACY_PCM)
  1039. path_type = ADM_PATH_COMPRESSED_RX;
  1040. else
  1041. path_type = ADM_PATH_PLAYBACK;
  1042. port_type = MSM_AFE_PORT_TYPE_RX;
  1043. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1044. session_type = SESSION_TYPE_TX;
  1045. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1046. path_type = ADM_PATH_COMPRESSED_TX;
  1047. else
  1048. path_type = ADM_PATH_LIVE_REC;
  1049. port_type = MSM_AFE_PORT_TYPE_TX;
  1050. } else {
  1051. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1052. return -EINVAL;
  1053. }
  1054. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1055. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1056. mutex_lock(&routing_lock);
  1057. payload.num_copps = 0; /* only RX needs to use payload */
  1058. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1059. /* re-enable EQ if active */
  1060. msm_qti_pp_send_eq_values(fe_id);
  1061. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1062. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1063. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1064. if (!is_be_dai_extproc(i) &&
  1065. (afe_get_port_type(msm_bedais[i].port_id) ==
  1066. port_type) &&
  1067. (msm_bedais[i].active) &&
  1068. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1069. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1070. /*
  1071. * check if ADM needs to be configured with different
  1072. * channel mapping than backend
  1073. */
  1074. if (!msm_bedais[i].adm_override_ch)
  1075. channels = msm_bedais[i].channel;
  1076. else
  1077. channels = msm_bedais[i].adm_override_ch;
  1078. bit_width = msm_routing_get_bit_width(
  1079. msm_bedais[i].format);
  1080. app_type =
  1081. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1082. if (app_type && is_lsm) {
  1083. app_type_idx =
  1084. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1085. sample_rate =
  1086. fe_dai_app_type_cfg[fe_id][session_type][i]
  1087. .sample_rate;
  1088. bit_width =
  1089. lsm_app_type_cfg[app_type_idx].bit_width;
  1090. } else if (app_type) {
  1091. app_type_idx =
  1092. msm_pcm_routing_get_app_type_idx(
  1093. app_type);
  1094. sample_rate =
  1095. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1096. bit_width =
  1097. app_type_cfg[app_type_idx].bit_width;
  1098. } else {
  1099. sample_rate = msm_bedais[i].sample_rate;
  1100. }
  1101. acdb_dev_id =
  1102. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1103. topology = msm_routing_get_adm_topology(fe_id,
  1104. session_type,
  1105. i);
  1106. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1107. || (passthr_mode ==
  1108. COMPRESSED_PASSTHROUGH_GEN))
  1109. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1110. pr_debug("%s: Before adm open topology %d\n", __func__,
  1111. topology);
  1112. copp_idx =
  1113. adm_open(msm_bedais[i].port_id,
  1114. path_type, sample_rate, channels,
  1115. topology, perf_mode, bit_width,
  1116. app_type, acdb_dev_id);
  1117. if ((copp_idx < 0) ||
  1118. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1119. pr_err("%s:adm open failed coppid:%d\n",
  1120. __func__, copp_idx);
  1121. mutex_unlock(&routing_lock);
  1122. return -EINVAL;
  1123. }
  1124. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1125. __func__, fe_id, session_type, i);
  1126. set_bit(copp_idx,
  1127. &session_copp_map[fe_id][session_type][i]);
  1128. if (msm_is_resample_needed(
  1129. sample_rate,
  1130. msm_bedais[i].sample_rate))
  1131. adm_copp_mfc_cfg(
  1132. msm_bedais[i].port_id, copp_idx,
  1133. msm_bedais[i].sample_rate);
  1134. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1135. unsigned long copp =
  1136. session_copp_map[fe_id][session_type][i];
  1137. if (test_bit(j, &copp)) {
  1138. payload.port_id[num_copps] =
  1139. msm_bedais[i].port_id;
  1140. payload.copp_idx[num_copps] = j;
  1141. payload.app_type[num_copps] =
  1142. fe_dai_app_type_cfg
  1143. [fe_id][session_type][i]
  1144. .app_type;
  1145. payload.acdb_dev_id[num_copps] =
  1146. fe_dai_app_type_cfg
  1147. [fe_id][session_type][i]
  1148. .acdb_dev_id;
  1149. payload.sample_rate[num_copps] =
  1150. fe_dai_app_type_cfg
  1151. [fe_id][session_type][i]
  1152. .sample_rate;
  1153. num_copps++;
  1154. }
  1155. }
  1156. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1157. && passthr_mode !=
  1158. COMPRESSED_PASSTHROUGH_GEN) {
  1159. msm_routing_send_device_pp_params(
  1160. msm_bedais[i].port_id,
  1161. copp_idx, fe_id);
  1162. }
  1163. }
  1164. }
  1165. if (num_copps) {
  1166. payload.num_copps = num_copps;
  1167. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1168. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1169. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1170. }
  1171. mutex_unlock(&routing_lock);
  1172. return 0;
  1173. }
  1174. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1175. {
  1176. u32 session_id;
  1177. switch (val) {
  1178. case MSM_FRONTEND_DAI_CS_VOICE:
  1179. session_id = voc_get_session_id(VOICE_SESSION_NAME);
  1180. break;
  1181. case MSM_FRONTEND_DAI_VOLTE:
  1182. session_id = voc_get_session_id(VOLTE_SESSION_NAME);
  1183. break;
  1184. case MSM_FRONTEND_DAI_VOWLAN:
  1185. session_id = voc_get_session_id(VOWLAN_SESSION_NAME);
  1186. break;
  1187. case MSM_FRONTEND_DAI_VOICE2:
  1188. session_id = voc_get_session_id(VOICE2_SESSION_NAME);
  1189. break;
  1190. case MSM_FRONTEND_DAI_QCHAT:
  1191. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1192. break;
  1193. case MSM_FRONTEND_DAI_VOIP:
  1194. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1195. break;
  1196. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1197. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1198. break;
  1199. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1200. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1201. break;
  1202. default:
  1203. session_id = 0;
  1204. }
  1205. pr_debug("%s session_id 0x%x", __func__, session_id);
  1206. return session_id;
  1207. }
  1208. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1209. int dspst_id, int stream_type)
  1210. {
  1211. int copp_idx = 0;
  1212. int sess_type = 0;
  1213. int i = 0, j = 0, be_id;
  1214. int ret = 0;
  1215. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1216. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1217. return 0;
  1218. }
  1219. if (!(channel_mixer[fe_id].enable)) {
  1220. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1221. __func__, fe_id);
  1222. return 0;
  1223. }
  1224. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1225. sess_type = SESSION_TYPE_RX;
  1226. else
  1227. sess_type = SESSION_TYPE_TX;
  1228. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1229. ++i) {
  1230. be_id = channel_input[fe_id][i] - 1;
  1231. channel_mixer[fe_id].input_channels[i] =
  1232. msm_bedais[be_id].channel;
  1233. if ((msm_bedais[be_id].active) &&
  1234. test_bit(fe_id,
  1235. &msm_bedais[be_id].fe_sessions[0])) {
  1236. unsigned long copp =
  1237. session_copp_map[fe_id][sess_type][be_id];
  1238. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1239. if (test_bit(j, &copp)) {
  1240. copp_idx = j;
  1241. break;
  1242. }
  1243. }
  1244. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1245. __func__,
  1246. fe_id, be_id, msm_bedais[be_id].channel,
  1247. copp_idx);
  1248. ret = adm_programable_channel_mixer(
  1249. msm_bedais[be_id].port_id,
  1250. copp_idx, dspst_id, sess_type,
  1251. channel_mixer + fe_id, i);
  1252. }
  1253. }
  1254. return ret;
  1255. }
  1256. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1257. int dspst_id, int stream_type)
  1258. {
  1259. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1260. struct route_payload payload;
  1261. u32 channels, sample_rate;
  1262. uint16_t bits_per_sample = 16;
  1263. uint32_t passthr_mode = LEGACY_PCM;
  1264. int ret = 0;
  1265. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1266. /* bad ID assigned in machine driver */
  1267. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1268. return -EINVAL;
  1269. }
  1270. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1271. session_type = SESSION_TYPE_RX;
  1272. path_type = ADM_PATH_PLAYBACK;
  1273. port_type = MSM_AFE_PORT_TYPE_RX;
  1274. } else {
  1275. session_type = SESSION_TYPE_TX;
  1276. path_type = ADM_PATH_LIVE_REC;
  1277. port_type = MSM_AFE_PORT_TYPE_TX;
  1278. }
  1279. mutex_lock(&routing_lock);
  1280. payload.num_copps = 0; /* only RX needs to use payload */
  1281. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1282. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1283. /* re-enable EQ if active */
  1284. msm_qti_pp_send_eq_values(fedai_id);
  1285. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1286. if (!is_be_dai_extproc(i) &&
  1287. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1288. (msm_bedais[i].active) &&
  1289. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1290. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1291. /*
  1292. * check if ADM needs to be configured with different
  1293. * channel mapping than backend
  1294. */
  1295. if (!msm_bedais[i].adm_override_ch)
  1296. channels = msm_bedais[i].channel;
  1297. else
  1298. channels = msm_bedais[i].adm_override_ch;
  1299. msm_bedais[i].passthr_mode[fedai_id] =
  1300. LEGACY_PCM;
  1301. bits_per_sample = msm_routing_get_bit_width(
  1302. msm_bedais[i].format);
  1303. app_type =
  1304. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1305. if (app_type) {
  1306. app_type_idx =
  1307. msm_pcm_routing_get_app_type_idx(app_type);
  1308. sample_rate =
  1309. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1310. .sample_rate;
  1311. bits_per_sample =
  1312. app_type_cfg[app_type_idx].bit_width;
  1313. } else
  1314. sample_rate = msm_bedais[i].sample_rate;
  1315. acdb_dev_id =
  1316. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1317. .acdb_dev_id;
  1318. topology = msm_routing_get_adm_topology(fedai_id,
  1319. session_type,
  1320. i);
  1321. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1322. sample_rate, channels, topology,
  1323. perf_mode, bits_per_sample,
  1324. app_type, acdb_dev_id);
  1325. if ((copp_idx < 0) ||
  1326. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1327. pr_err("%s: adm open failed copp_idx:%d\n",
  1328. __func__, copp_idx);
  1329. mutex_unlock(&routing_lock);
  1330. return -EINVAL;
  1331. }
  1332. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1333. __func__, fedai_id, session_type, i);
  1334. set_bit(copp_idx,
  1335. &session_copp_map[fedai_id][session_type][i]);
  1336. if (msm_is_resample_needed(
  1337. sample_rate,
  1338. msm_bedais[i].sample_rate))
  1339. adm_copp_mfc_cfg(
  1340. msm_bedais[i].port_id, copp_idx,
  1341. msm_bedais[i].sample_rate);
  1342. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1343. unsigned long copp =
  1344. session_copp_map[fedai_id][session_type][i];
  1345. if (test_bit(j, &copp)) {
  1346. payload.port_id[num_copps] =
  1347. msm_bedais[i].port_id;
  1348. payload.copp_idx[num_copps] = j;
  1349. payload.app_type[num_copps] =
  1350. fe_dai_app_type_cfg
  1351. [fedai_id][session_type]
  1352. [i].app_type;
  1353. payload.acdb_dev_id[num_copps] =
  1354. fe_dai_app_type_cfg
  1355. [fedai_id][session_type]
  1356. [i].acdb_dev_id;
  1357. payload.sample_rate[num_copps] =
  1358. fe_dai_app_type_cfg
  1359. [fedai_id][session_type]
  1360. [i].sample_rate;
  1361. num_copps++;
  1362. }
  1363. }
  1364. if ((perf_mode == LEGACY_PCM_MODE) &&
  1365. (msm_bedais[i].passthr_mode[fedai_id] ==
  1366. LEGACY_PCM))
  1367. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1368. copp_idx, topology,
  1369. channels);
  1370. }
  1371. }
  1372. if (num_copps) {
  1373. payload.num_copps = num_copps;
  1374. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1375. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1376. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1377. }
  1378. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1379. dspst_id, stream_type);
  1380. mutex_unlock(&routing_lock);
  1381. return ret;
  1382. }
  1383. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1384. int dspst_id, int stream_type,
  1385. struct msm_pcm_routing_evt event_info)
  1386. {
  1387. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1388. stream_type)) {
  1389. pr_err("%s: failed to reg phy stream\n", __func__);
  1390. return -EINVAL;
  1391. }
  1392. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1393. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1394. else
  1395. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1396. return 0;
  1397. }
  1398. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1399. {
  1400. int i, port_type, session_type, path_type, topology;
  1401. struct msm_pcm_routing_fdai_data *fdai;
  1402. if (!is_mm_lsm_fe_id(fedai_id)) {
  1403. /* bad ID assigned in machine driver */
  1404. pr_err("%s: bad MM ID\n", __func__);
  1405. return;
  1406. }
  1407. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1408. port_type = MSM_AFE_PORT_TYPE_RX;
  1409. session_type = SESSION_TYPE_RX;
  1410. path_type = ADM_PATH_PLAYBACK;
  1411. } else {
  1412. port_type = MSM_AFE_PORT_TYPE_TX;
  1413. session_type = SESSION_TYPE_TX;
  1414. path_type = ADM_PATH_LIVE_REC;
  1415. }
  1416. mutex_lock(&routing_lock);
  1417. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1418. if (!is_be_dai_extproc(i) &&
  1419. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1420. (msm_bedais[i].active) &&
  1421. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1422. int idx;
  1423. unsigned long copp =
  1424. session_copp_map[fedai_id][session_type][i];
  1425. fdai = &fe_dai_map[fedai_id][session_type];
  1426. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1427. if (test_bit(idx, &copp))
  1428. break;
  1429. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1430. pr_debug("%s: copp idx is invalid, exiting\n",
  1431. __func__);
  1432. continue;
  1433. }
  1434. topology = adm_get_topology_for_port_copp_idx(
  1435. msm_bedais[i].port_id, idx);
  1436. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1437. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1438. __func__, copp, fedai_id, session_type, i);
  1439. clear_bit(idx,
  1440. &session_copp_map[fedai_id][session_type][i]);
  1441. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1442. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1443. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1444. (msm_bedais[i].passthr_mode[fedai_id] ==
  1445. LEGACY_PCM))
  1446. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1447. topology);
  1448. }
  1449. }
  1450. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1451. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1452. mutex_unlock(&routing_lock);
  1453. }
  1454. /* Check if FE/BE route is set */
  1455. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1456. {
  1457. bool rc = false;
  1458. if (!is_mm_lsm_fe_id(fe_id)) {
  1459. /* recheck FE ID in the mixer control defined in this file */
  1460. pr_err("%s: bad MM ID\n", __func__);
  1461. return rc;
  1462. }
  1463. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1464. rc = true;
  1465. return rc;
  1466. }
  1467. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1468. {
  1469. int session_type, path_type, topology;
  1470. u32 channels, sample_rate;
  1471. uint16_t bits_per_sample = 16;
  1472. struct msm_pcm_routing_fdai_data *fdai;
  1473. uint32_t passthr_mode;
  1474. bool is_lsm;
  1475. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1476. if (!is_mm_lsm_fe_id(val)) {
  1477. /* recheck FE ID in the mixer control defined in this file */
  1478. pr_err("%s: bad MM ID\n", __func__);
  1479. return;
  1480. }
  1481. if (!route_check_fe_id_adm_support(val)) {
  1482. /* ignore adm open if not supported for fe_id */
  1483. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1484. return;
  1485. }
  1486. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1487. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1488. MSM_AFE_PORT_TYPE_RX) {
  1489. session_type = SESSION_TYPE_RX;
  1490. if (passthr_mode != LEGACY_PCM)
  1491. path_type = ADM_PATH_COMPRESSED_RX;
  1492. else
  1493. path_type = ADM_PATH_PLAYBACK;
  1494. } else {
  1495. session_type = SESSION_TYPE_TX;
  1496. if (passthr_mode != LEGACY_PCM)
  1497. path_type = ADM_PATH_COMPRESSED_TX;
  1498. else
  1499. path_type = ADM_PATH_LIVE_REC;
  1500. }
  1501. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1502. (val <= MSM_FRONTEND_DAI_LSM8);
  1503. mutex_lock(&routing_lock);
  1504. if (set) {
  1505. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1506. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1507. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1508. voc_start_playback(set, msm_bedais[reg].port_id);
  1509. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1510. fdai = &fe_dai_map[val][session_type];
  1511. if (msm_bedais[reg].active && fdai->strm_id !=
  1512. INVALID_SESSION) {
  1513. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1514. /*
  1515. * check if ADM needs to be configured with different
  1516. * channel mapping than backend
  1517. */
  1518. if (!msm_bedais[reg].adm_override_ch)
  1519. channels = msm_bedais[reg].channel;
  1520. else
  1521. channels = msm_bedais[reg].adm_override_ch;
  1522. if (session_type == SESSION_TYPE_TX &&
  1523. fdai->be_srate &&
  1524. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1525. pr_debug("%s: flush strm %d diff BE rates\n",
  1526. __func__, fdai->strm_id);
  1527. if (fdai->event_info.event_func)
  1528. fdai->event_info.event_func(
  1529. MSM_PCM_RT_EVT_BUF_RECFG,
  1530. fdai->event_info.priv_data);
  1531. fdai->be_srate = 0; /* might not need it */
  1532. }
  1533. bits_per_sample = msm_routing_get_bit_width(
  1534. msm_bedais[reg].format);
  1535. app_type =
  1536. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1537. if (app_type && is_lsm) {
  1538. app_type_idx =
  1539. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1540. sample_rate =
  1541. fe_dai_app_type_cfg[val][session_type][reg]
  1542. .sample_rate;
  1543. bits_per_sample =
  1544. lsm_app_type_cfg[app_type_idx].bit_width;
  1545. } else if (app_type) {
  1546. app_type_idx =
  1547. msm_pcm_routing_get_app_type_idx(app_type);
  1548. sample_rate =
  1549. fe_dai_app_type_cfg[val][session_type][reg]
  1550. .sample_rate;
  1551. bits_per_sample =
  1552. app_type_cfg[app_type_idx].bit_width;
  1553. } else
  1554. sample_rate = msm_bedais[reg].sample_rate;
  1555. topology = msm_routing_get_adm_topology(val,
  1556. session_type,
  1557. reg);
  1558. acdb_dev_id =
  1559. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1560. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1561. sample_rate, channels, topology,
  1562. fdai->perf_mode, bits_per_sample,
  1563. app_type, acdb_dev_id);
  1564. if ((copp_idx < 0) ||
  1565. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1566. pr_err("%s: adm open failed\n", __func__);
  1567. mutex_unlock(&routing_lock);
  1568. return;
  1569. }
  1570. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1571. __func__, val, session_type, reg);
  1572. set_bit(copp_idx,
  1573. &session_copp_map[val][session_type][reg]);
  1574. if (msm_is_resample_needed(
  1575. sample_rate,
  1576. msm_bedais[reg].sample_rate))
  1577. adm_copp_mfc_cfg(
  1578. msm_bedais[reg].port_id, copp_idx,
  1579. msm_bedais[reg].sample_rate);
  1580. if (session_type == SESSION_TYPE_RX &&
  1581. fdai->event_info.event_func)
  1582. fdai->event_info.event_func(
  1583. MSM_PCM_RT_EVT_DEVSWITCH,
  1584. fdai->event_info.priv_data);
  1585. msm_pcm_routing_build_matrix(val, session_type,
  1586. path_type,
  1587. fdai->perf_mode,
  1588. passthr_mode);
  1589. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1590. (passthr_mode == LEGACY_PCM))
  1591. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1592. copp_idx, topology,
  1593. channels);
  1594. }
  1595. } else {
  1596. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1597. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1598. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1599. voc_start_playback(set, msm_bedais[reg].port_id);
  1600. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1601. fdai = &fe_dai_map[val][session_type];
  1602. if (msm_bedais[reg].active && fdai->strm_id !=
  1603. INVALID_SESSION) {
  1604. int idx;
  1605. int port_id;
  1606. unsigned long copp =
  1607. session_copp_map[val][session_type][reg];
  1608. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1609. if (test_bit(idx, &copp))
  1610. break;
  1611. port_id = msm_bedais[reg].port_id;
  1612. topology = adm_get_topology_for_port_copp_idx(port_id,
  1613. idx);
  1614. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1615. idx);
  1616. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1617. __func__, copp, val, session_type, reg,
  1618. topology);
  1619. clear_bit(idx,
  1620. &session_copp_map[val][session_type][reg]);
  1621. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1622. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1623. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1624. (passthr_mode == LEGACY_PCM))
  1625. msm_pcm_routing_deinit_pp(
  1626. msm_bedais[reg].port_id,
  1627. topology);
  1628. msm_pcm_routing_build_matrix(val, session_type,
  1629. path_type,
  1630. fdai->perf_mode,
  1631. passthr_mode);
  1632. }
  1633. }
  1634. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1635. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1636. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1637. mutex_unlock(&routing_lock);
  1638. }
  1639. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1640. struct snd_ctl_elem_value *ucontrol)
  1641. {
  1642. struct soc_mixer_control *mc =
  1643. (struct soc_mixer_control *)kcontrol->private_value;
  1644. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1645. ucontrol->value.integer.value[0] = 1;
  1646. else
  1647. ucontrol->value.integer.value[0] = 0;
  1648. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1649. ucontrol->value.integer.value[0]);
  1650. return 0;
  1651. }
  1652. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1653. struct snd_ctl_elem_value *ucontrol)
  1654. {
  1655. struct snd_soc_dapm_widget *widget =
  1656. snd_soc_dapm_kcontrol_widget(kcontrol);
  1657. struct soc_mixer_control *mc =
  1658. (struct soc_mixer_control *)kcontrol->private_value;
  1659. struct snd_soc_dapm_update *update = NULL;
  1660. if (ucontrol->value.integer.value[0] &&
  1661. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false) {
  1662. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1663. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1664. update);
  1665. } else if (!ucontrol->value.integer.value[0] &&
  1666. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true) {
  1667. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1668. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1669. update);
  1670. }
  1671. return 1;
  1672. }
  1673. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1674. struct snd_ctl_elem_value *ucontrol)
  1675. {
  1676. struct soc_mixer_control *mc =
  1677. (struct soc_mixer_control *)kcontrol->private_value;
  1678. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1679. ucontrol->value.integer.value[0] = 1;
  1680. else
  1681. ucontrol->value.integer.value[0] = 0;
  1682. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1683. ucontrol->value.integer.value[0]);
  1684. return 0;
  1685. }
  1686. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1687. struct snd_ctl_elem_value *ucontrol)
  1688. {
  1689. struct snd_soc_dapm_widget *widget =
  1690. snd_soc_dapm_kcontrol_widget(kcontrol);
  1691. struct soc_mixer_control *mc =
  1692. (struct soc_mixer_control *)kcontrol->private_value;
  1693. struct snd_soc_dapm_update *update = NULL;
  1694. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1695. ucontrol->value.integer.value[0]);
  1696. if (ucontrol->value.integer.value[0]) {
  1697. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false)
  1698. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1699. snd_soc_dapm_mixer_update_power(widget->dapm,
  1700. kcontrol, 1, update);
  1701. } else if (!ucontrol->value.integer.value[0]) {
  1702. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true)
  1703. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1704. snd_soc_dapm_mixer_update_power(widget->dapm,
  1705. kcontrol, 0, update);
  1706. }
  1707. return 1;
  1708. }
  1709. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1710. {
  1711. u32 session_id = 0;
  1712. u16 path_type;
  1713. struct media_format_info voc_be_media_format;
  1714. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1715. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1716. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1717. __func__, val, session_id);
  1718. mutex_lock(&routing_lock);
  1719. if (set)
  1720. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1721. else
  1722. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1723. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1724. afe_get_port_type(msm_bedais[reg].port_id) ==
  1725. MSM_AFE_PORT_TYPE_RX) {
  1726. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1727. __func__, set, msm_bedais[reg].port_id);
  1728. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1729. }
  1730. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1731. MSM_AFE_PORT_TYPE_RX)
  1732. path_type = RX_PATH;
  1733. else
  1734. path_type = TX_PATH;
  1735. if (set) {
  1736. if (msm_bedais[reg].active) {
  1737. voc_set_route_flag(session_id, path_type, 1);
  1738. memset(&voc_be_media_format, 0,
  1739. sizeof(struct media_format_info));
  1740. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1741. voc_be_media_format.num_channels =
  1742. msm_bedais[reg].channel;
  1743. voc_be_media_format.sample_rate =
  1744. msm_bedais[reg].sample_rate;
  1745. voc_be_media_format.bits_per_sample =
  1746. msm_bedais[reg].format;
  1747. /* Defaulting this to 1 for voice call usecases */
  1748. voc_be_media_format.channel_mapping[0] = 1;
  1749. voc_set_device_config(session_id, path_type,
  1750. &voc_be_media_format);
  1751. if (voc_get_route_flag(session_id, TX_PATH) &&
  1752. voc_get_route_flag(session_id, RX_PATH))
  1753. voc_enable_device(session_id);
  1754. } else {
  1755. pr_debug("%s BE is not active\n", __func__);
  1756. }
  1757. } else {
  1758. voc_set_route_flag(session_id, path_type, 0);
  1759. voc_disable_device(session_id);
  1760. }
  1761. mutex_unlock(&routing_lock);
  1762. }
  1763. static int msm_routing_get_voice_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_mixer(struct snd_kcontrol *kcontrol,
  1779. struct snd_ctl_elem_value *ucontrol)
  1780. {
  1781. struct snd_soc_dapm_widget *widget =
  1782. snd_soc_dapm_kcontrol_widget(kcontrol);
  1783. struct soc_mixer_control *mc =
  1784. (struct soc_mixer_control *)kcontrol->private_value;
  1785. struct snd_soc_dapm_update *update = NULL;
  1786. if (ucontrol->value.integer.value[0]) {
  1787. msm_pcm_routing_process_voice(mc->reg, mc->shift, 1);
  1788. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1789. update);
  1790. } else {
  1791. msm_pcm_routing_process_voice(mc->reg, mc->shift, 0);
  1792. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1793. update);
  1794. }
  1795. return 1;
  1796. }
  1797. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1798. struct snd_ctl_elem_value *ucontrol)
  1799. {
  1800. struct soc_mixer_control *mc =
  1801. (struct soc_mixer_control *)kcontrol->private_value;
  1802. mutex_lock(&routing_lock);
  1803. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1804. ucontrol->value.integer.value[0] = 1;
  1805. else
  1806. ucontrol->value.integer.value[0] = 0;
  1807. mutex_unlock(&routing_lock);
  1808. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1809. ucontrol->value.integer.value[0]);
  1810. return 0;
  1811. }
  1812. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1813. struct snd_ctl_elem_value *ucontrol)
  1814. {
  1815. struct snd_soc_dapm_widget *widget =
  1816. snd_soc_dapm_kcontrol_widget(kcontrol);
  1817. struct soc_mixer_control *mc =
  1818. (struct soc_mixer_control *)kcontrol->private_value;
  1819. struct snd_soc_dapm_update *update = NULL;
  1820. if (ucontrol->value.integer.value[0]) {
  1821. mutex_lock(&routing_lock);
  1822. set_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1823. mutex_unlock(&routing_lock);
  1824. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1825. update);
  1826. } else {
  1827. mutex_lock(&routing_lock);
  1828. clear_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1829. mutex_unlock(&routing_lock);
  1830. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1831. update);
  1832. }
  1833. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1834. ucontrol->value.integer.value[0]);
  1835. return 1;
  1836. }
  1837. /*
  1838. * Return the mapping between port ID and backend ID to enable the AFE callback
  1839. * to determine the acdb_dev_id from the port id
  1840. */
  1841. int msm_pcm_get_be_id_from_port_id(int port_id)
  1842. {
  1843. int i;
  1844. int be_id = -EINVAL;
  1845. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1846. if (msm_bedais[i].port_id == port_id) {
  1847. be_id = i;
  1848. break;
  1849. }
  1850. }
  1851. return be_id;
  1852. }
  1853. /*
  1854. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1855. * correct AFE calibration information by comparing the header information.
  1856. */
  1857. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1858. {
  1859. int acdb_id = -EINVAL;
  1860. int i = 0;
  1861. int session;
  1862. int port_type = afe_get_port_type(port_id);
  1863. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1864. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1865. __func__, port_id, be_id, port_type);
  1866. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1867. session = SESSION_TYPE_TX;
  1868. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1869. session = SESSION_TYPE_RX;
  1870. } else {
  1871. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1872. acdb_id = -EINVAL;
  1873. goto exit;
  1874. }
  1875. if (be_id < 0) {
  1876. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1877. goto exit;
  1878. }
  1879. mutex_lock(&routing_lock);
  1880. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1881. MSM_FRONTEND_DAI_MAX);
  1882. if (i < MSM_FRONTEND_DAI_MAX)
  1883. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1884. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1885. __func__, i, session, be_id, acdb_id);
  1886. mutex_unlock(&routing_lock);
  1887. exit:
  1888. return acdb_id;
  1889. }
  1890. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1891. struct snd_ctl_elem_value *ucontrol)
  1892. {
  1893. ucontrol->value.integer.value[0] = fm_switch_enable;
  1894. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1895. ucontrol->value.integer.value[0]);
  1896. return 0;
  1897. }
  1898. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1899. struct snd_ctl_elem_value *ucontrol)
  1900. {
  1901. struct snd_soc_dapm_widget *widget =
  1902. snd_soc_dapm_kcontrol_widget(kcontrol);
  1903. struct snd_soc_dapm_update *update = NULL;
  1904. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1905. ucontrol->value.integer.value[0]);
  1906. if (ucontrol->value.integer.value[0])
  1907. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1908. update);
  1909. else
  1910. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1911. update);
  1912. fm_switch_enable = ucontrol->value.integer.value[0];
  1913. return 1;
  1914. }
  1915. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1916. struct snd_ctl_elem_value *ucontrol)
  1917. {
  1918. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1919. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1920. ucontrol->value.integer.value[0]);
  1921. return 0;
  1922. }
  1923. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1924. struct snd_ctl_elem_value *ucontrol)
  1925. {
  1926. struct snd_soc_dapm_widget *widget =
  1927. snd_soc_dapm_kcontrol_widget(kcontrol);
  1928. struct snd_soc_dapm_update *update = NULL;
  1929. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1930. ucontrol->value.integer.value[0]);
  1931. if (ucontrol->value.integer.value[0])
  1932. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1933. 1, update);
  1934. else
  1935. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1936. 0, update);
  1937. hfp_switch_enable = ucontrol->value.integer.value[0];
  1938. return 1;
  1939. }
  1940. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1941. struct snd_ctl_elem_value *ucontrol)
  1942. {
  1943. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1944. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1945. ucontrol->value.integer.value[0]);
  1946. return 0;
  1947. }
  1948. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1949. struct snd_ctl_elem_value *ucontrol)
  1950. {
  1951. struct snd_soc_dapm_widget *widget =
  1952. snd_soc_dapm_kcontrol_widget(kcontrol);
  1953. struct snd_soc_dapm_update *update = NULL;
  1954. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1955. ucontrol->value.integer.value[0]);
  1956. if (ucontrol->value.integer.value[0])
  1957. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1958. update);
  1959. else
  1960. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1961. update);
  1962. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1963. return 1;
  1964. }
  1965. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1966. struct snd_ctl_elem_value *ucontrol)
  1967. {
  1968. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  1969. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1970. ucontrol->value.integer.value[0]);
  1971. return 0;
  1972. }
  1973. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1974. struct snd_ctl_elem_value *ucontrol)
  1975. {
  1976. struct snd_soc_dapm_widget *widget =
  1977. snd_soc_dapm_kcontrol_widget(kcontrol);
  1978. struct snd_soc_dapm_update *update = NULL;
  1979. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1980. ucontrol->value.integer.value[0]);
  1981. if (ucontrol->value.integer.value[0])
  1982. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1983. update);
  1984. else
  1985. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1986. update);
  1987. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1988. return 1;
  1989. }
  1990. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1991. struct snd_ctl_elem_value *ucontrol)
  1992. {
  1993. ucontrol->value.integer.value[0] = usb_switch_enable;
  1994. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1995. ucontrol->value.integer.value[0]);
  1996. return 0;
  1997. }
  1998. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1999. struct snd_ctl_elem_value *ucontrol)
  2000. {
  2001. struct snd_soc_dapm_widget *widget =
  2002. snd_soc_dapm_kcontrol_widget(kcontrol);
  2003. struct snd_soc_dapm_update *update = NULL;
  2004. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2005. ucontrol->value.integer.value[0]);
  2006. if (ucontrol->value.integer.value[0])
  2007. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2008. 1, update);
  2009. else
  2010. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2011. 0, update);
  2012. usb_switch_enable = ucontrol->value.integer.value[0];
  2013. return 1;
  2014. }
  2015. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2016. struct snd_ctl_elem_value *ucontrol)
  2017. {
  2018. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2019. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2020. ucontrol->value.integer.value[0]);
  2021. return 0;
  2022. }
  2023. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2024. struct snd_ctl_elem_value *ucontrol)
  2025. {
  2026. struct snd_soc_dapm_widget *widget =
  2027. snd_soc_dapm_kcontrol_widget(kcontrol);
  2028. struct snd_soc_dapm_update *update = NULL;
  2029. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2030. ucontrol->value.integer.value[0]);
  2031. if (ucontrol->value.integer.value[0])
  2032. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2033. update);
  2034. else
  2035. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2036. update);
  2037. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2038. return 1;
  2039. }
  2040. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2041. struct snd_ctl_elem_value *ucontrol)
  2042. {
  2043. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2044. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2045. ucontrol->value.integer.value[0]);
  2046. return 0;
  2047. }
  2048. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2049. struct snd_ctl_elem_value *ucontrol)
  2050. {
  2051. struct snd_soc_dapm_widget *widget =
  2052. snd_soc_dapm_kcontrol_widget(kcontrol);
  2053. struct snd_soc_dapm_update *update = NULL;
  2054. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2055. ucontrol->value.integer.value[0]);
  2056. if (ucontrol->value.integer.value[0])
  2057. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2058. update);
  2059. else
  2060. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2061. update);
  2062. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2063. return 1;
  2064. }
  2065. static int msm_routing_get_tert_mi2s_switch_mixer(
  2066. struct snd_kcontrol *kcontrol,
  2067. struct snd_ctl_elem_value *ucontrol)
  2068. {
  2069. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2070. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2071. ucontrol->value.integer.value[0]);
  2072. return 0;
  2073. }
  2074. static int msm_routing_put_tert_mi2s_switch_mixer(
  2075. struct snd_kcontrol *kcontrol,
  2076. struct snd_ctl_elem_value *ucontrol)
  2077. {
  2078. struct snd_soc_dapm_widget *widget =
  2079. snd_soc_dapm_kcontrol_widget(kcontrol);
  2080. struct snd_soc_dapm_update *update = NULL;
  2081. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2082. ucontrol->value.integer.value[0]);
  2083. if (ucontrol->value.integer.value[0])
  2084. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2085. update);
  2086. else
  2087. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2088. update);
  2089. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2090. return 1;
  2091. }
  2092. static int msm_routing_get_quat_mi2s_switch_mixer(
  2093. struct snd_kcontrol *kcontrol,
  2094. struct snd_ctl_elem_value *ucontrol)
  2095. {
  2096. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2097. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2098. ucontrol->value.integer.value[0]);
  2099. return 0;
  2100. }
  2101. static int msm_routing_put_quat_mi2s_switch_mixer(
  2102. struct snd_kcontrol *kcontrol,
  2103. struct snd_ctl_elem_value *ucontrol)
  2104. {
  2105. struct snd_soc_dapm_widget *widget =
  2106. snd_soc_dapm_kcontrol_widget(kcontrol);
  2107. struct snd_soc_dapm_update *update = NULL;
  2108. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2109. ucontrol->value.integer.value[0]);
  2110. if (ucontrol->value.integer.value[0])
  2111. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2112. update);
  2113. else
  2114. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2115. update);
  2116. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2117. return 1;
  2118. }
  2119. static int msm_routing_get_quin_mi2s_switch_mixer(
  2120. struct snd_kcontrol *kcontrol,
  2121. struct snd_ctl_elem_value *ucontrol)
  2122. {
  2123. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2124. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2125. ucontrol->value.integer.value[0]);
  2126. return 0;
  2127. }
  2128. static int msm_routing_put_quin_mi2s_switch_mixer(
  2129. struct snd_kcontrol *kcontrol,
  2130. struct snd_ctl_elem_value *ucontrol)
  2131. {
  2132. struct snd_soc_dapm_widget *widget =
  2133. snd_soc_dapm_kcontrol_widget(kcontrol);
  2134. struct snd_soc_dapm_update *update = NULL;
  2135. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2136. ucontrol->value.integer.value[0]);
  2137. if (ucontrol->value.integer.value[0])
  2138. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2139. update);
  2140. else
  2141. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2142. update);
  2143. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2144. return 1;
  2145. }
  2146. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2147. struct snd_ctl_elem_value *ucontrol)
  2148. {
  2149. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2150. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2151. ucontrol->value.integer.value[0]);
  2152. return 0;
  2153. }
  2154. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2155. struct snd_ctl_elem_value *ucontrol)
  2156. {
  2157. struct snd_soc_dapm_widget *widget =
  2158. snd_soc_dapm_kcontrol_widget(kcontrol);
  2159. struct snd_soc_dapm_update *update = NULL;
  2160. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2161. ucontrol->value.integer.value[0]);
  2162. if (ucontrol->value.integer.value[0])
  2163. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2164. update);
  2165. else
  2166. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2167. update);
  2168. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2169. return 1;
  2170. }
  2171. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2172. struct snd_ctl_elem_value *ucontrol)
  2173. {
  2174. ucontrol->value.integer.value[0] = lsm_port_index;
  2175. return 0;
  2176. }
  2177. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2178. struct snd_ctl_elem_value *ucontrol)
  2179. {
  2180. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2181. int mux = ucontrol->value.enumerated.item[0];
  2182. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2183. if (mux >= e->items) {
  2184. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2185. return -EINVAL;
  2186. }
  2187. pr_debug("%s: LSM enable %ld\n", __func__,
  2188. ucontrol->value.integer.value[0]);
  2189. switch (ucontrol->value.integer.value[0]) {
  2190. case 1:
  2191. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2192. break;
  2193. case 2:
  2194. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2195. break;
  2196. case 3:
  2197. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2198. break;
  2199. case 4:
  2200. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2201. break;
  2202. case 5:
  2203. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2204. break;
  2205. case 6:
  2206. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2207. break;
  2208. case 7:
  2209. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2210. break;
  2211. case 8:
  2212. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2213. break;
  2214. case 9:
  2215. lsm_port = ADM_LSM_PORT_ID;
  2216. break;
  2217. case 10:
  2218. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2219. break;
  2220. default:
  2221. pr_err("Default lsm port");
  2222. break;
  2223. }
  2224. set_lsm_port(lsm_port);
  2225. lsm_port_index = ucontrol->value.integer.value[0];
  2226. return 0;
  2227. }
  2228. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2229. struct snd_ctl_elem_value *ucontrol)
  2230. {
  2231. int i;
  2232. u16 port_id;
  2233. enum afe_mad_type mad_type;
  2234. pr_debug("%s: enter\n", __func__);
  2235. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2236. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2237. strlen(lsm_port_text[i])))
  2238. break;
  2239. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2240. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2241. return -EINVAL;
  2242. }
  2243. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2244. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2245. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2246. strlen(lsm_port_text[7])))
  2247. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2248. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2249. strlen(lsm_port_text[8])))
  2250. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2251. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2252. strlen(lsm_port_text[10])))
  2253. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2254. mad_type = afe_port_get_mad_type(port_id);
  2255. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2256. mad_type);
  2257. switch (mad_type) {
  2258. case MAD_HW_NONE:
  2259. ucontrol->value.integer.value[0] = MADNONE;
  2260. break;
  2261. case MAD_HW_AUDIO:
  2262. ucontrol->value.integer.value[0] = MADAUDIO;
  2263. break;
  2264. case MAD_HW_BEACON:
  2265. ucontrol->value.integer.value[0] = MADBEACON;
  2266. break;
  2267. case MAD_HW_ULTRASOUND:
  2268. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2269. break;
  2270. case MAD_SW_AUDIO:
  2271. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2272. break;
  2273. default:
  2274. WARN(1, "Unknown\n");
  2275. return -EINVAL;
  2276. }
  2277. return 0;
  2278. }
  2279. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2280. struct snd_ctl_elem_value *ucontrol)
  2281. {
  2282. int i;
  2283. u16 port_id;
  2284. enum afe_mad_type mad_type;
  2285. pr_debug("%s: enter\n", __func__);
  2286. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2287. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2288. strlen(lsm_port_text[i])))
  2289. break;
  2290. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2291. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2292. return -EINVAL;
  2293. }
  2294. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2295. switch (ucontrol->value.integer.value[0]) {
  2296. case MADNONE:
  2297. mad_type = MAD_HW_NONE;
  2298. break;
  2299. case MADAUDIO:
  2300. mad_type = MAD_HW_AUDIO;
  2301. break;
  2302. case MADBEACON:
  2303. mad_type = MAD_HW_BEACON;
  2304. break;
  2305. case MADULTRASOUND:
  2306. mad_type = MAD_HW_ULTRASOUND;
  2307. break;
  2308. case MADSWAUDIO:
  2309. mad_type = MAD_SW_AUDIO;
  2310. break;
  2311. default:
  2312. WARN(1, "Unknown\n");
  2313. return -EINVAL;
  2314. }
  2315. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2316. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2317. strlen(lsm_port_text[7])))
  2318. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2319. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2320. strlen(lsm_port_text[8])))
  2321. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2322. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2323. strlen(lsm_port_text[10])))
  2324. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2325. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2326. mad_type);
  2327. return afe_port_set_mad_type(port_id, mad_type);
  2328. }
  2329. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2330. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2331. adm_override_chs_text);
  2332. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2333. {
  2334. int backend_id;
  2335. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2336. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2337. } else {
  2338. pr_err("%s: unsupported backend id: %s",
  2339. __func__, kcontrol->id.name);
  2340. return -EINVAL;
  2341. }
  2342. return backend_id;
  2343. }
  2344. static int msm_routing_adm_channel_config_get(
  2345. struct snd_kcontrol *kcontrol,
  2346. struct snd_ctl_elem_value *ucontrol)
  2347. {
  2348. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2349. if (backend_id >= 0) {
  2350. mutex_lock(&routing_lock);
  2351. ucontrol->value.integer.value[0] =
  2352. msm_bedais[backend_id].adm_override_ch;
  2353. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2354. ucontrol->value.integer.value[0], backend_id);
  2355. mutex_unlock(&routing_lock);
  2356. }
  2357. return 0;
  2358. }
  2359. static int msm_routing_adm_channel_config_put(
  2360. struct snd_kcontrol *kcontrol,
  2361. struct snd_ctl_elem_value *ucontrol)
  2362. {
  2363. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2364. if (backend_id >= 0) {
  2365. mutex_lock(&routing_lock);
  2366. msm_bedais[backend_id].adm_override_ch =
  2367. ucontrol->value.integer.value[0];
  2368. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2369. __func__, backend_id,
  2370. msm_bedais[backend_id].adm_override_ch);
  2371. mutex_unlock(&routing_lock);
  2372. }
  2373. return 0;
  2374. }
  2375. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2376. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2377. msm_routing_adm_channel_config_get,
  2378. msm_routing_adm_channel_config_put),
  2379. };
  2380. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2381. struct snd_ctl_elem_value *ucontrol)
  2382. {
  2383. mutex_lock(&routing_lock);
  2384. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2385. mutex_unlock(&routing_lock);
  2386. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2387. ucontrol->value.integer.value[0]);
  2388. return 0;
  2389. };
  2390. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2391. struct snd_ctl_elem_value *ucontrol)
  2392. {
  2393. struct aanc_data aanc_info;
  2394. mutex_lock(&routing_lock);
  2395. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2396. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2397. ucontrol->value.integer.value[0]);
  2398. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2399. if (ucontrol->value.integer.value[0] == 0) {
  2400. aanc_info.aanc_active = false;
  2401. aanc_info.aanc_tx_port = 0;
  2402. aanc_info.aanc_rx_port = 0;
  2403. } else {
  2404. aanc_info.aanc_active = true;
  2405. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2406. aanc_info.aanc_tx_port =
  2407. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2408. }
  2409. afe_set_aanc_info(&aanc_info);
  2410. mutex_unlock(&routing_lock);
  2411. return 0;
  2412. };
  2413. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2414. struct snd_ctl_elem_value *ucontrol)
  2415. {
  2416. int idx = 0, shift = 0;
  2417. struct soc_mixer_control *mc =
  2418. (struct soc_mixer_control *)kcontrol->private_value;
  2419. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2420. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2421. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2422. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2423. return -EINVAL;
  2424. }
  2425. if (test_bit(shift,
  2426. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]))
  2427. ucontrol->value.integer.value[0] = 1;
  2428. else
  2429. ucontrol->value.integer.value[0] = 0;
  2430. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  2431. ucontrol->value.integer.value[0]);
  2432. return 0;
  2433. }
  2434. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2435. struct snd_ctl_elem_value *ucontrol)
  2436. {
  2437. int idx = 0, shift = 0;
  2438. struct soc_mixer_control *mc =
  2439. (struct soc_mixer_control *)kcontrol->private_value;
  2440. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2441. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2442. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2443. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2444. return -EINVAL;
  2445. }
  2446. pr_debug("%s: reg 0x%x shift 0x%x val %ld idx %d reminder shift %d\n",
  2447. __func__, mc->reg, mc->shift,
  2448. ucontrol->value.integer.value[0], idx, shift);
  2449. if (ucontrol->value.integer.value[0]) {
  2450. afe_loopback(1, msm_bedais[mc->reg].port_id,
  2451. msm_bedais[mc->shift].port_id);
  2452. set_bit(shift,
  2453. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2454. } else {
  2455. afe_loopback(0, msm_bedais[mc->reg].port_id,
  2456. msm_bedais[mc->shift].port_id);
  2457. clear_bit(shift,
  2458. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2459. }
  2460. return 1;
  2461. }
  2462. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2463. struct snd_ctl_elem_value *ucontrol)
  2464. {
  2465. u16 fe_id = 0;
  2466. fe_id = ((struct soc_mixer_control *)
  2467. kcontrol->private_value)->shift;
  2468. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2469. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2470. return -EINVAL;
  2471. }
  2472. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2473. return 0;
  2474. }
  2475. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2476. struct snd_ctl_elem_value *ucontrol)
  2477. {
  2478. u16 fe_id = 0;
  2479. fe_id = ((struct soc_mixer_control *)
  2480. kcontrol->private_value)->shift;
  2481. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2482. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2483. return -EINVAL;
  2484. }
  2485. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2486. return 1;
  2487. }
  2488. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2489. struct snd_ctl_elem_value *ucontrol)
  2490. {
  2491. u16 fe_id = 0;
  2492. fe_id = ((struct soc_multi_mixer_control *)
  2493. kcontrol->private_value)->shift;
  2494. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2495. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2496. return -EINVAL;
  2497. }
  2498. ucontrol->value.integer.value[0] =
  2499. channel_mixer[fe_id].output_channel;
  2500. return 0;
  2501. }
  2502. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2503. struct snd_ctl_elem_value *ucontrol)
  2504. {
  2505. u16 fe_id = 0;
  2506. fe_id = ((struct soc_multi_mixer_control *)
  2507. kcontrol->private_value)->shift;
  2508. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2509. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2510. return -EINVAL;
  2511. }
  2512. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2513. fe_id,
  2514. (unsigned int)(ucontrol->value.integer.value[0]));
  2515. channel_mixer[fe_id].output_channel =
  2516. (unsigned int)(ucontrol->value.integer.value[0]);
  2517. return 1;
  2518. }
  2519. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2520. /* If new backend is added, need update this array */
  2521. static const char *const be_name[] = {
  2522. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2523. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2524. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2525. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2526. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2527. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2528. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2529. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2530. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2531. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2532. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2533. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2534. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2535. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2536. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2537. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2538. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2539. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2540. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2541. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2542. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2543. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2544. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2545. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2546. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2547. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2548. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2549. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2550. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2551. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2552. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2553. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2554. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2555. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2556. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2557. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2558. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2559. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2560. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2561. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2562. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2563. };
  2564. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2565. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2566. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2567. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2568. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2569. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2570. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2571. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2572. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2573. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2574. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2575. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2576. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2577. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2578. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2579. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2580. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2581. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2582. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2583. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2584. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2585. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2586. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2587. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2588. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2589. unsigned int channels,
  2590. unsigned int items, const char *const names[])
  2591. {
  2592. if (uinfo->value.enumerated.item >= items)
  2593. uinfo->value.enumerated.item = items - 1;
  2594. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2595. sizeof(uinfo->value.enumerated.name),
  2596. "ALSA: too long item name '%s'\n",
  2597. names[uinfo->value.enumerated.item]);
  2598. strlcpy(uinfo->value.enumerated.name,
  2599. names[uinfo->value.enumerated.item],
  2600. sizeof(uinfo->value.enumerated.name));
  2601. return 0;
  2602. }
  2603. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2604. struct snd_ctl_elem_info *uinfo)
  2605. {
  2606. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2607. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2608. uinfo->count = 1;
  2609. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2610. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2611. return 0;
  2612. }
  2613. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2614. struct snd_ctl_elem_value *ucontrol)
  2615. {
  2616. u16 fe_id = 0;
  2617. fe_id = ((struct soc_enum *)
  2618. kcontrol->private_value)->shift_l;
  2619. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2620. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2621. return -EINVAL;
  2622. }
  2623. pr_debug("%s: FE %d %s\n", __func__,
  2624. fe_id,
  2625. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2626. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2627. return 0;
  2628. }
  2629. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2630. struct snd_ctl_elem_value *ucontrol)
  2631. {
  2632. u16 fe_id = 0;
  2633. fe_id = ((struct soc_enum *)
  2634. kcontrol->private_value)->shift_l;
  2635. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2636. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2637. return -EINVAL;
  2638. }
  2639. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2640. pr_debug("%s: %s FE %d\n", __func__,
  2641. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2642. fe_id);
  2643. return 0;
  2644. }
  2645. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2646. struct snd_ctl_elem_info *uinfo)
  2647. {
  2648. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2649. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2650. uinfo->count = 1;
  2651. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2652. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2653. return 0;
  2654. }
  2655. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2656. struct snd_ctl_elem_value *ucontrol)
  2657. {
  2658. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2659. u16 fe_id = 0, in_ch = 0;
  2660. fe_id = e->shift_l;
  2661. in_ch = e->shift_r;
  2662. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2663. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2664. return -EINVAL;
  2665. }
  2666. if (in_ch >= ADM_MAX_CHANNELS) {
  2667. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2668. return -EINVAL;
  2669. }
  2670. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2671. return 1;
  2672. }
  2673. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2674. struct snd_ctl_elem_value *ucontrol)
  2675. {
  2676. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2677. u16 fe_id = 0, in_ch = 0;
  2678. fe_id = e->shift_l;
  2679. in_ch = e->shift_r;
  2680. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2681. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2682. return -EINVAL;
  2683. }
  2684. if (in_ch >= ADM_MAX_CHANNELS) {
  2685. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2686. return -EINVAL;
  2687. }
  2688. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2689. return 1;
  2690. }
  2691. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2692. struct snd_ctl_elem_info *uinfo)
  2693. {
  2694. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2695. uinfo->count = ADM_MAX_CHANNELS;
  2696. uinfo->value.integer.min = 0;
  2697. uinfo->value.integer.max = WEIGHT_0_DB;
  2698. return 0;
  2699. }
  2700. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2701. struct snd_ctl_elem_value *ucontrol)
  2702. {
  2703. u16 fe_id = 0, out_ch = 0;
  2704. int i, weight;
  2705. fe_id = ((struct soc_multi_mixer_control *)
  2706. kcontrol->private_value)->shift;
  2707. out_ch = ((struct soc_multi_mixer_control *)
  2708. kcontrol->private_value)->rshift;
  2709. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2710. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2711. return -EINVAL;
  2712. }
  2713. if (out_ch >= ADM_MAX_CHANNELS) {
  2714. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2715. return -EINVAL;
  2716. }
  2717. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2718. __func__, fe_id,
  2719. ucontrol->value.integer.value[0],
  2720. ucontrol->value.integer.value[1],
  2721. ucontrol->value.integer.value[2],
  2722. ucontrol->value.integer.value[3],
  2723. ucontrol->value.integer.value[4],
  2724. ucontrol->value.integer.value[5],
  2725. ucontrol->value.integer.value[6],
  2726. ucontrol->value.integer.value[7]);
  2727. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2728. weight = ucontrol->value.integer.value[i];
  2729. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2730. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2731. __func__, fe_id, out_ch, i,
  2732. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2733. }
  2734. return 0;
  2735. }
  2736. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2737. struct snd_ctl_elem_value *ucontrol)
  2738. {
  2739. u16 fe_id = 0, out_ch = 0;
  2740. int i;
  2741. fe_id = ((struct soc_multi_mixer_control *)
  2742. kcontrol->private_value)->shift;
  2743. out_ch = ((struct soc_multi_mixer_control *)
  2744. kcontrol->private_value)->rshift;
  2745. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2746. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2747. return -EINVAL;
  2748. }
  2749. if (out_ch >= ADM_MAX_CHANNELS) {
  2750. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2751. return -EINVAL;
  2752. }
  2753. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2754. ucontrol->value.integer.value[i] =
  2755. channel_mixer[fe_id].channel_weight[out_ch][i];
  2756. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2757. __func__, fe_id,
  2758. ucontrol->value.integer.value[0],
  2759. ucontrol->value.integer.value[1],
  2760. ucontrol->value.integer.value[2],
  2761. ucontrol->value.integer.value[3],
  2762. ucontrol->value.integer.value[4],
  2763. ucontrol->value.integer.value[5],
  2764. ucontrol->value.integer.value[6],
  2765. ucontrol->value.integer.value[7]);
  2766. return 0;
  2767. }
  2768. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2769. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2770. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2771. msm_pcm_get_channel_rule_index,
  2772. msm_pcm_put_channel_rule_index),
  2773. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2774. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2775. msm_pcm_get_channel_rule_index,
  2776. msm_pcm_put_channel_rule_index),
  2777. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2778. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2779. msm_pcm_get_channel_rule_index,
  2780. msm_pcm_put_channel_rule_index),
  2781. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2782. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2783. msm_pcm_get_channel_rule_index,
  2784. msm_pcm_put_channel_rule_index),
  2785. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2786. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2787. msm_pcm_get_channel_rule_index,
  2788. msm_pcm_put_channel_rule_index),
  2789. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2790. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2791. msm_pcm_get_channel_rule_index,
  2792. msm_pcm_put_channel_rule_index),
  2793. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2794. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2795. msm_pcm_get_out_chs,
  2796. msm_pcm_put_out_chs),
  2797. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2798. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2799. msm_pcm_get_out_chs,
  2800. msm_pcm_put_out_chs),
  2801. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2802. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2803. msm_pcm_get_out_chs,
  2804. msm_pcm_put_out_chs),
  2805. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2806. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2807. msm_pcm_get_out_chs,
  2808. msm_pcm_put_out_chs),
  2809. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2810. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2811. msm_pcm_get_out_chs,
  2812. msm_pcm_put_out_chs),
  2813. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2814. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2815. msm_pcm_get_out_chs,
  2816. msm_pcm_put_out_chs),
  2817. {
  2818. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2819. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2820. .name = "MultiMedia1 Channel Mixer",
  2821. .info = msm_pcm_channel_mixer_info,
  2822. .get = msm_pcm_channel_mixer_get,
  2823. .put = msm_pcm_channel_mixer_put,
  2824. .private_value = (unsigned long)&(mm1_channel_mux)
  2825. },
  2826. {
  2827. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2828. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2829. .name = "MultiMedia2 Channel Mixer",
  2830. .info = msm_pcm_channel_mixer_info,
  2831. .get = msm_pcm_channel_mixer_get,
  2832. .put = msm_pcm_channel_mixer_put,
  2833. .private_value = (unsigned long)&(mm2_channel_mux)
  2834. },
  2835. {
  2836. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2837. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2838. .name = "MultiMedia3 Channel Mixer",
  2839. .info = msm_pcm_channel_mixer_info,
  2840. .get = msm_pcm_channel_mixer_get,
  2841. .put = msm_pcm_channel_mixer_put,
  2842. .private_value = (unsigned long)&(mm3_channel_mux)
  2843. },
  2844. {
  2845. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2846. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2847. .name = "MultiMedia4 Channel Mixer",
  2848. .info = msm_pcm_channel_mixer_info,
  2849. .get = msm_pcm_channel_mixer_get,
  2850. .put = msm_pcm_channel_mixer_put,
  2851. .private_value = (unsigned long)&(mm4_channel_mux)
  2852. },
  2853. {
  2854. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2855. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2856. .name = "MultiMedia1 Output Channel1",
  2857. .info = msm_pcm_channel_weight_info,
  2858. .get = msm_pcm_channel_weight_get,
  2859. .put = msm_pcm_channel_weight_put,
  2860. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2861. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2862. },
  2863. {
  2864. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2865. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2866. .name = "MultiMedia1 Output Channel2",
  2867. .info = msm_pcm_channel_weight_info,
  2868. .get = msm_pcm_channel_weight_get,
  2869. .put = msm_pcm_channel_weight_put,
  2870. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2871. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2872. },
  2873. {
  2874. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2875. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2876. .name = "MultiMedia1 Output Channel3",
  2877. .info = msm_pcm_channel_weight_info,
  2878. .get = msm_pcm_channel_weight_get,
  2879. .put = msm_pcm_channel_weight_put,
  2880. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2881. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2882. },
  2883. {
  2884. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2885. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2886. .name = "MultiMedia1 Output Channel4",
  2887. .info = msm_pcm_channel_weight_info,
  2888. .get = msm_pcm_channel_weight_get,
  2889. .put = msm_pcm_channel_weight_put,
  2890. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2891. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2892. },
  2893. {
  2894. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2895. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2896. .name = "MultiMedia1 Output Channel5",
  2897. .info = msm_pcm_channel_weight_info,
  2898. .get = msm_pcm_channel_weight_get,
  2899. .put = msm_pcm_channel_weight_put,
  2900. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2901. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2902. },
  2903. {
  2904. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2905. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2906. .name = "MultiMedia1 Output Channel6",
  2907. .info = msm_pcm_channel_weight_info,
  2908. .get = msm_pcm_channel_weight_get,
  2909. .put = msm_pcm_channel_weight_put,
  2910. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2911. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2912. },
  2913. {
  2914. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2915. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2916. .name = "MultiMedia1 Output Channel7",
  2917. .info = msm_pcm_channel_weight_info,
  2918. .get = msm_pcm_channel_weight_get,
  2919. .put = msm_pcm_channel_weight_put,
  2920. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2921. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2922. },
  2923. {
  2924. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2925. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2926. .name = "MultiMedia1 Output Channel8",
  2927. .info = msm_pcm_channel_weight_info,
  2928. .get = msm_pcm_channel_weight_get,
  2929. .put = msm_pcm_channel_weight_put,
  2930. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2931. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2932. },
  2933. {
  2934. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2935. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2936. .name = "MultiMedia2 Output Channel1",
  2937. .info = msm_pcm_channel_weight_info,
  2938. .get = msm_pcm_channel_weight_get,
  2939. .put = msm_pcm_channel_weight_put,
  2940. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2941. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2942. },
  2943. {
  2944. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2945. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2946. .name = "MultiMedia2 Output Channel2",
  2947. .info = msm_pcm_channel_weight_info,
  2948. .get = msm_pcm_channel_weight_get,
  2949. .put = msm_pcm_channel_weight_put,
  2950. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2951. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2952. },
  2953. {
  2954. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2955. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2956. .name = "MultiMedia2 Output Channel3",
  2957. .info = msm_pcm_channel_weight_info,
  2958. .get = msm_pcm_channel_weight_get,
  2959. .put = msm_pcm_channel_weight_put,
  2960. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2961. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2962. },
  2963. {
  2964. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2965. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2966. .name = "MultiMedia3 Output Channel1",
  2967. .info = msm_pcm_channel_weight_info,
  2968. .get = msm_pcm_channel_weight_get,
  2969. .put = msm_pcm_channel_weight_put,
  2970. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2971. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  2972. },
  2973. {
  2974. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2975. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2976. .name = "MultiMedia3 Output Channel2",
  2977. .info = msm_pcm_channel_weight_info,
  2978. .get = msm_pcm_channel_weight_get,
  2979. .put = msm_pcm_channel_weight_put,
  2980. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2981. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  2982. },
  2983. {
  2984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2985. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2986. .name = "MultiMedia1 Channel1",
  2987. .info = msm_pcm_channel_input_be_info,
  2988. .get = msm_pcm_channel_input_be_get,
  2989. .put = msm_pcm_channel_input_be_put,
  2990. .private_value = (unsigned long)&(mm1_ch1_enum)
  2991. },
  2992. {
  2993. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2994. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2995. .name = "MultiMedia1 Channel2",
  2996. .info = msm_pcm_channel_input_be_info,
  2997. .get = msm_pcm_channel_input_be_get,
  2998. .put = msm_pcm_channel_input_be_put,
  2999. .private_value = (unsigned long)&(mm1_ch2_enum)
  3000. },
  3001. {
  3002. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3003. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3004. .name = "MultiMedia1 Channel3",
  3005. .info = msm_pcm_channel_input_be_info,
  3006. .get = msm_pcm_channel_input_be_get,
  3007. .put = msm_pcm_channel_input_be_put,
  3008. .private_value = (unsigned long)&(mm1_ch3_enum)
  3009. },
  3010. {
  3011. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3012. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3013. .name = "MultiMedia1 Channel4",
  3014. .info = msm_pcm_channel_input_be_info,
  3015. .get = msm_pcm_channel_input_be_get,
  3016. .put = msm_pcm_channel_input_be_put,
  3017. .private_value = (unsigned long)&(mm1_ch4_enum)
  3018. },
  3019. {
  3020. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3021. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3022. .name = "MultiMedia1 Channel5",
  3023. .info = msm_pcm_channel_input_be_info,
  3024. .get = msm_pcm_channel_input_be_get,
  3025. .put = msm_pcm_channel_input_be_put,
  3026. .private_value = (unsigned long)&(mm1_ch5_enum)
  3027. },
  3028. {
  3029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3031. .name = "MultiMedia1 Channel6",
  3032. .info = msm_pcm_channel_input_be_info,
  3033. .get = msm_pcm_channel_input_be_get,
  3034. .put = msm_pcm_channel_input_be_put,
  3035. .private_value = (unsigned long)&(mm1_ch6_enum)
  3036. },
  3037. {
  3038. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3039. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3040. .name = "MultiMedia1 Channel7",
  3041. .info = msm_pcm_channel_input_be_info,
  3042. .get = msm_pcm_channel_input_be_get,
  3043. .put = msm_pcm_channel_input_be_put,
  3044. .private_value = (unsigned long)&(mm1_ch7_enum)
  3045. },
  3046. {
  3047. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3048. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3049. .name = "MultiMedia1 Channel8",
  3050. .info = msm_pcm_channel_input_be_info,
  3051. .get = msm_pcm_channel_input_be_get,
  3052. .put = msm_pcm_channel_input_be_put,
  3053. .private_value = (unsigned long)&(mm1_ch8_enum)
  3054. },
  3055. };
  3056. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3057. struct snd_ctl_elem_value *ucontrol)
  3058. {
  3059. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3060. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3061. ucontrol->value.integer.value[0]);
  3062. return 0;
  3063. }
  3064. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3065. struct snd_ctl_elem_value *ucontrol)
  3066. {
  3067. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3068. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3069. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3070. return 0;
  3071. }
  3072. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3073. "Four", "Five", "Six", "Seven", "Eight"};
  3074. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3075. struct snd_ctl_elem_value *ucontrol)
  3076. {
  3077. switch (msm_ec_ref_bit_format) {
  3078. case SNDRV_PCM_FORMAT_S24_LE:
  3079. ucontrol->value.integer.value[0] = 2;
  3080. break;
  3081. case SNDRV_PCM_FORMAT_S16_LE:
  3082. ucontrol->value.integer.value[0] = 1;
  3083. break;
  3084. default:
  3085. ucontrol->value.integer.value[0] = 0;
  3086. break;
  3087. }
  3088. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3089. __func__, ucontrol->value.integer.value[0]);
  3090. return 0;
  3091. }
  3092. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3093. struct snd_ctl_elem_value *ucontrol)
  3094. {
  3095. u16 bit_width = 0;
  3096. switch (ucontrol->value.integer.value[0]) {
  3097. case 2:
  3098. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3099. break;
  3100. case 1:
  3101. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3102. break;
  3103. default:
  3104. msm_ec_ref_bit_format = 0;
  3105. break;
  3106. }
  3107. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3108. bit_width = 16;
  3109. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3110. bit_width = 24;
  3111. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3112. __func__, msm_ec_ref_bit_format);
  3113. adm_ec_ref_rx_bit_width(bit_width);
  3114. return 0;
  3115. }
  3116. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3117. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3118. struct snd_ctl_elem_value *ucontrol)
  3119. {
  3120. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3121. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3122. __func__, ucontrol->value.integer.value[0]);
  3123. return 0;
  3124. }
  3125. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3126. struct snd_ctl_elem_value *ucontrol)
  3127. {
  3128. switch (ucontrol->value.integer.value[0]) {
  3129. case 0:
  3130. msm_ec_ref_sampling_rate = 0;
  3131. break;
  3132. case 1:
  3133. msm_ec_ref_sampling_rate = 8000;
  3134. break;
  3135. case 2:
  3136. msm_ec_ref_sampling_rate = 16000;
  3137. break;
  3138. case 3:
  3139. msm_ec_ref_sampling_rate = 32000;
  3140. break;
  3141. case 4:
  3142. msm_ec_ref_sampling_rate = 44100;
  3143. break;
  3144. case 5:
  3145. msm_ec_ref_sampling_rate = 48000;
  3146. break;
  3147. case 6:
  3148. msm_ec_ref_sampling_rate = 96000;
  3149. break;
  3150. case 7:
  3151. msm_ec_ref_sampling_rate = 192000;
  3152. break;
  3153. case 8:
  3154. msm_ec_ref_sampling_rate = 384000;
  3155. break;
  3156. default:
  3157. msm_ec_ref_sampling_rate = 48000;
  3158. break;
  3159. }
  3160. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3161. __func__, msm_ec_ref_sampling_rate);
  3162. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3163. return 0;
  3164. }
  3165. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3166. "32000", "44100", "48000", "96000", "192000", "384000"};
  3167. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3168. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3169. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3170. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3171. };
  3172. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3173. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3174. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3175. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3176. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3177. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3178. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3179. };
  3180. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3181. struct snd_ctl_elem_value *ucontrol)
  3182. {
  3183. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3184. mutex_lock(&routing_lock);
  3185. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3186. mutex_unlock(&routing_lock);
  3187. return 0;
  3188. }
  3189. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3190. struct snd_ctl_elem_value *ucontrol)
  3191. {
  3192. int ec_ref_port_id;
  3193. struct snd_soc_dapm_widget *widget =
  3194. snd_soc_dapm_kcontrol_widget(kcontrol);
  3195. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3196. struct snd_soc_dapm_update *update = NULL;
  3197. mutex_lock(&routing_lock);
  3198. switch (ucontrol->value.integer.value[0]) {
  3199. case 0:
  3200. msm_route_ec_ref_rx = 0;
  3201. ec_ref_port_id = AFE_PORT_INVALID;
  3202. break;
  3203. case 1:
  3204. msm_route_ec_ref_rx = 1;
  3205. ec_ref_port_id = SLIMBUS_0_RX;
  3206. break;
  3207. case 2:
  3208. msm_route_ec_ref_rx = 2;
  3209. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3210. break;
  3211. case 3:
  3212. msm_route_ec_ref_rx = 3;
  3213. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3214. break;
  3215. case 4:
  3216. msm_route_ec_ref_rx = 4;
  3217. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3218. break;
  3219. case 5:
  3220. msm_route_ec_ref_rx = 5;
  3221. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3222. break;
  3223. case 6:
  3224. msm_route_ec_ref_rx = 6;
  3225. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3226. break;
  3227. case 7:
  3228. msm_route_ec_ref_rx = 7;
  3229. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3230. break;
  3231. case 9:
  3232. msm_route_ec_ref_rx = 9;
  3233. ec_ref_port_id = SLIMBUS_5_RX;
  3234. break;
  3235. case 10:
  3236. msm_route_ec_ref_rx = 10;
  3237. ec_ref_port_id = SLIMBUS_1_TX;
  3238. break;
  3239. case 11:
  3240. msm_route_ec_ref_rx = 11;
  3241. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3242. break;
  3243. case 12:
  3244. msm_route_ec_ref_rx = 12;
  3245. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3246. break;
  3247. case 13:
  3248. msm_route_ec_ref_rx = 13;
  3249. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3250. break;
  3251. case 14:
  3252. msm_route_ec_ref_rx = 14;
  3253. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3254. break;
  3255. case 15:
  3256. msm_route_ec_ref_rx = 15;
  3257. ec_ref_port_id = SLIMBUS_6_RX;
  3258. break;
  3259. case 16:
  3260. msm_route_ec_ref_rx = 16;
  3261. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3262. break;
  3263. case 17:
  3264. msm_route_ec_ref_rx = 17;
  3265. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3266. break;
  3267. case 18:
  3268. msm_route_ec_ref_rx = 18;
  3269. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3270. break;
  3271. case 19:
  3272. msm_route_ec_ref_rx = 19;
  3273. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3274. break;
  3275. case 20:
  3276. msm_route_ec_ref_rx = 20;
  3277. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3278. break;
  3279. case 21:
  3280. msm_route_ec_ref_rx = 21;
  3281. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3282. break;
  3283. case 22:
  3284. msm_route_ec_ref_rx = 22;
  3285. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3286. break;
  3287. default:
  3288. msm_route_ec_ref_rx = 0; /* NONE */
  3289. pr_err("%s EC ref rx %ld not valid\n",
  3290. __func__, ucontrol->value.integer.value[0]);
  3291. ec_ref_port_id = AFE_PORT_INVALID;
  3292. break;
  3293. }
  3294. adm_ec_ref_rx_id(ec_ref_port_id);
  3295. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3296. __func__, msm_route_ec_ref_rx);
  3297. mutex_unlock(&routing_lock);
  3298. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3299. msm_route_ec_ref_rx, e, update);
  3300. return 0;
  3301. }
  3302. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3303. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3304. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3305. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3306. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3307. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3308. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX"};
  3309. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3310. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3311. };
  3312. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3313. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3314. msm_route_ec_ref_rx_enum[0],
  3315. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3316. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3317. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3318. msm_route_ec_ref_rx_enum[0],
  3319. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3320. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3321. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3322. msm_route_ec_ref_rx_enum[0],
  3323. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3324. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3325. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3326. msm_route_ec_ref_rx_enum[0],
  3327. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3328. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3329. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3330. msm_route_ec_ref_rx_enum[0],
  3331. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3332. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3333. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3334. msm_route_ec_ref_rx_enum[0],
  3335. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3336. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3337. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3338. msm_route_ec_ref_rx_enum[0],
  3339. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3340. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3341. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3342. msm_route_ec_ref_rx_enum[0],
  3343. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3344. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3345. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3346. msm_route_ec_ref_rx_enum[0],
  3347. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3348. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3349. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3350. msm_route_ec_ref_rx_enum[0],
  3351. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3352. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3353. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3354. msm_route_ec_ref_rx_enum[0],
  3355. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3356. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3357. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3358. msm_route_ec_ref_rx_enum[0],
  3359. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3360. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3361. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3362. msm_route_ec_ref_rx_enum[0],
  3363. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3364. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3365. struct snd_ctl_elem_value *ucontrol)
  3366. {
  3367. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3368. mutex_lock(&routing_lock);
  3369. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3370. mutex_unlock(&routing_lock);
  3371. return 0;
  3372. }
  3373. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3374. struct snd_ctl_elem_value *ucontrol)
  3375. {
  3376. struct snd_soc_dapm_widget *widget =
  3377. snd_soc_dapm_kcontrol_widget(kcontrol);
  3378. int mux = ucontrol->value.enumerated.item[0];
  3379. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3380. int ret = 1;
  3381. bool state = true;
  3382. uint16_t ext_ec_ref_port_id;
  3383. struct snd_soc_dapm_update *update = NULL;
  3384. if (mux >= e->items) {
  3385. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3386. return -EINVAL;
  3387. }
  3388. mutex_lock(&routing_lock);
  3389. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3390. switch (msm_route_ext_ec_ref) {
  3391. case EXT_EC_REF_PRI_MI2S_TX:
  3392. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3393. break;
  3394. case EXT_EC_REF_SEC_MI2S_TX:
  3395. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3396. break;
  3397. case EXT_EC_REF_TERT_MI2S_TX:
  3398. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3399. break;
  3400. case EXT_EC_REF_QUAT_MI2S_TX:
  3401. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3402. break;
  3403. case EXT_EC_REF_QUIN_MI2S_TX:
  3404. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3405. break;
  3406. case EXT_EC_REF_SLIM_1_TX:
  3407. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3408. break;
  3409. case EXT_EC_REF_NONE:
  3410. default:
  3411. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3412. state = false;
  3413. break;
  3414. }
  3415. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3416. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3417. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3418. mutex_unlock(&routing_lock);
  3419. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3420. update);
  3421. } else {
  3422. ret = -EINVAL;
  3423. mutex_unlock(&routing_lock);
  3424. }
  3425. return ret;
  3426. }
  3427. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3428. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3429. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3430. "SLIM_1_TX"};
  3431. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3432. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3433. };
  3434. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3435. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3436. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3437. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3438. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX,
  3439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3440. msm_routing_put_audio_mixer),
  3441. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3443. msm_routing_put_audio_mixer),
  3444. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
  3445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3446. msm_routing_put_audio_mixer),
  3447. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
  3448. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3449. msm_routing_put_audio_mixer),
  3450. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
  3451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3452. msm_routing_put_audio_mixer),
  3453. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3455. msm_routing_put_audio_mixer),
  3456. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
  3457. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3458. msm_routing_put_audio_mixer),
  3459. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
  3460. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3461. msm_routing_put_audio_mixer),
  3462. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
  3463. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3464. msm_routing_put_audio_mixer),
  3465. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3467. msm_routing_put_audio_mixer),
  3468. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
  3469. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3470. msm_routing_put_audio_mixer),
  3471. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
  3472. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3473. msm_routing_put_audio_mixer),
  3474. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
  3475. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3476. msm_routing_put_audio_mixer),
  3477. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
  3478. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3479. msm_routing_put_audio_mixer),
  3480. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
  3481. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3482. msm_routing_put_audio_mixer),
  3483. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
  3484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3485. msm_routing_put_audio_mixer),
  3486. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_I2S_RX,
  3487. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3488. msm_routing_put_audio_mixer),
  3489. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_I2S_RX,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3491. msm_routing_put_audio_mixer),
  3492. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_I2S_RX,
  3493. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3494. msm_routing_put_audio_mixer),
  3495. };
  3496. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3497. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX,
  3498. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3499. msm_routing_put_audio_mixer),
  3500. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
  3501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3502. msm_routing_put_audio_mixer),
  3503. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
  3504. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3505. msm_routing_put_audio_mixer),
  3506. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
  3507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3508. msm_routing_put_audio_mixer),
  3509. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
  3510. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3511. msm_routing_put_audio_mixer),
  3512. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
  3513. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3514. msm_routing_put_audio_mixer),
  3515. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
  3516. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3517. msm_routing_put_audio_mixer),
  3518. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
  3519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3520. msm_routing_put_audio_mixer),
  3521. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
  3522. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3523. msm_routing_put_audio_mixer),
  3524. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
  3525. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3526. msm_routing_put_audio_mixer),
  3527. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
  3528. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3529. msm_routing_put_audio_mixer),
  3530. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
  3531. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3532. msm_routing_put_audio_mixer),
  3533. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
  3534. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3535. msm_routing_put_audio_mixer),
  3536. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
  3537. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3538. msm_routing_put_audio_mixer),
  3539. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
  3540. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3541. msm_routing_put_audio_mixer),
  3542. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
  3543. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3544. msm_routing_put_audio_mixer),
  3545. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_I2S_RX,
  3546. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3547. msm_routing_put_audio_mixer),
  3548. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_I2S_RX,
  3549. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3550. msm_routing_put_audio_mixer),
  3551. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_I2S_RX,
  3552. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3553. msm_routing_put_audio_mixer),
  3554. };
  3555. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3556. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX,
  3557. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3558. msm_routing_put_audio_mixer),
  3559. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
  3560. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3561. msm_routing_put_audio_mixer),
  3562. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
  3563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3564. msm_routing_put_audio_mixer),
  3565. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
  3566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3567. msm_routing_put_audio_mixer),
  3568. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
  3569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3570. msm_routing_put_audio_mixer),
  3571. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
  3572. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3573. msm_routing_put_audio_mixer),
  3574. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
  3575. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3576. msm_routing_put_audio_mixer),
  3577. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
  3578. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3579. msm_routing_put_audio_mixer),
  3580. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
  3581. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3582. msm_routing_put_audio_mixer),
  3583. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
  3584. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3585. msm_routing_put_audio_mixer),
  3586. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
  3587. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3588. msm_routing_put_audio_mixer),
  3589. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
  3590. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3591. msm_routing_put_audio_mixer),
  3592. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
  3593. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3594. msm_routing_put_audio_mixer),
  3595. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
  3596. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3597. msm_routing_put_audio_mixer),
  3598. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
  3599. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3600. msm_routing_put_audio_mixer),
  3601. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
  3602. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3603. msm_routing_put_audio_mixer),
  3604. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SPDIF_RX,
  3605. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3606. msm_routing_put_audio_mixer),
  3607. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SPDIF_RX,
  3608. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3609. msm_routing_put_audio_mixer),
  3610. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SPDIF_RX,
  3611. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3612. msm_routing_put_audio_mixer),
  3613. };
  3614. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3615. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3616. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3617. msm_routing_put_audio_mixer),
  3618. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3619. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3620. msm_routing_put_audio_mixer),
  3621. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3622. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3623. msm_routing_put_audio_mixer),
  3624. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3625. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3626. msm_routing_put_audio_mixer),
  3627. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3628. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3629. msm_routing_put_audio_mixer),
  3630. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3632. msm_routing_put_audio_mixer),
  3633. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3635. msm_routing_put_audio_mixer),
  3636. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3637. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3638. msm_routing_put_audio_mixer),
  3639. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3640. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3641. msm_routing_put_audio_mixer),
  3642. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3643. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3644. msm_routing_put_audio_mixer),
  3645. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3647. msm_routing_put_audio_mixer),
  3648. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3649. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3650. msm_routing_put_audio_mixer),
  3651. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3653. msm_routing_put_audio_mixer),
  3654. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3655. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3656. msm_routing_put_audio_mixer),
  3657. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3662. msm_routing_put_audio_mixer),
  3663. };
  3664. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3665. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3666. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3667. msm_routing_put_audio_mixer),
  3668. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3669. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3670. msm_routing_put_audio_mixer),
  3671. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3672. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3673. msm_routing_put_audio_mixer),
  3674. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3675. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3676. msm_routing_put_audio_mixer),
  3677. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3678. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3679. msm_routing_put_audio_mixer),
  3680. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3681. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3682. msm_routing_put_audio_mixer),
  3683. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3684. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3685. msm_routing_put_audio_mixer),
  3686. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3688. msm_routing_put_audio_mixer),
  3689. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3690. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3691. msm_routing_put_audio_mixer),
  3692. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3693. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3694. msm_routing_put_audio_mixer),
  3695. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3696. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3697. msm_routing_put_audio_mixer),
  3698. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3699. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3700. msm_routing_put_audio_mixer),
  3701. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3702. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3703. msm_routing_put_audio_mixer),
  3704. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3705. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3706. msm_routing_put_audio_mixer),
  3707. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3711. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3712. msm_routing_put_audio_mixer),
  3713. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3714. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3715. msm_routing_put_audio_mixer),
  3716. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3718. msm_routing_put_audio_mixer),
  3719. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. };
  3723. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3724. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3726. msm_routing_put_audio_mixer),
  3727. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3731. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3732. msm_routing_put_audio_mixer),
  3733. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3735. msm_routing_put_audio_mixer),
  3736. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3743. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3744. msm_routing_put_audio_mixer),
  3745. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3747. msm_routing_put_audio_mixer),
  3748. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3755. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3756. msm_routing_put_audio_mixer),
  3757. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3758. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3759. msm_routing_put_audio_mixer),
  3760. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3767. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3768. msm_routing_put_audio_mixer),
  3769. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3770. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3771. msm_routing_put_audio_mixer),
  3772. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. };
  3782. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3783. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX,
  3784. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3785. msm_routing_put_audio_mixer),
  3786. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
  3787. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3788. msm_routing_put_audio_mixer),
  3789. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
  3790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3791. msm_routing_put_audio_mixer),
  3792. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
  3796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3797. msm_routing_put_audio_mixer),
  3798. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
  3799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3800. msm_routing_put_audio_mixer),
  3801. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
  3805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3806. msm_routing_put_audio_mixer),
  3807. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
  3808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3809. msm_routing_put_audio_mixer),
  3810. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
  3811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3812. msm_routing_put_audio_mixer),
  3813. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
  3817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3818. msm_routing_put_audio_mixer),
  3819. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
  3820. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3821. msm_routing_put_audio_mixer),
  3822. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
  3823. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3824. msm_routing_put_audio_mixer),
  3825. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
  3829. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3830. msm_routing_put_audio_mixer),
  3831. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_MI2S_RX,
  3832. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3833. msm_routing_put_audio_mixer),
  3834. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_MI2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_MI2S_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. };
  3841. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  3842. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3846. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3847. msm_routing_put_audio_mixer),
  3848. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3849. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3850. msm_routing_put_audio_mixer),
  3851. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3852. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3853. msm_routing_put_audio_mixer),
  3854. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3858. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3859. msm_routing_put_audio_mixer),
  3860. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3861. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3862. msm_routing_put_audio_mixer),
  3863. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3864. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3865. msm_routing_put_audio_mixer),
  3866. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3870. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3871. msm_routing_put_audio_mixer),
  3872. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3873. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3874. msm_routing_put_audio_mixer),
  3875. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3876. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3877. msm_routing_put_audio_mixer),
  3878. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3882. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3883. msm_routing_put_audio_mixer),
  3884. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3885. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3886. msm_routing_put_audio_mixer),
  3887. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3894. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3895. msm_routing_put_audio_mixer),
  3896. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3897. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3898. msm_routing_put_audio_mixer),
  3899. };
  3900. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  3901. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3903. msm_routing_put_audio_mixer),
  3904. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3905. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3906. msm_routing_put_audio_mixer),
  3907. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3911. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3912. msm_routing_put_audio_mixer),
  3913. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3915. msm_routing_put_audio_mixer),
  3916. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3920. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3921. msm_routing_put_audio_mixer),
  3922. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3923. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3924. msm_routing_put_audio_mixer),
  3925. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3926. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3927. msm_routing_put_audio_mixer),
  3928. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3932. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3933. msm_routing_put_audio_mixer),
  3934. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3935. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3936. msm_routing_put_audio_mixer),
  3937. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3938. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3939. msm_routing_put_audio_mixer),
  3940. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3944. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3945. msm_routing_put_audio_mixer),
  3946. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3947. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3948. msm_routing_put_audio_mixer),
  3949. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3956. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3957. msm_routing_put_audio_mixer),
  3958. };
  3959. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  3960. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3962. msm_routing_put_audio_mixer),
  3963. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3964. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3965. msm_routing_put_audio_mixer),
  3966. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3967. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3968. msm_routing_put_audio_mixer),
  3969. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_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_TERTIARY_MI2S_RX,
  3979. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3980. msm_routing_put_audio_mixer),
  3981. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3988. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3989. msm_routing_put_audio_mixer),
  3990. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3991. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3992. msm_routing_put_audio_mixer),
  3993. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3997. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3998. msm_routing_put_audio_mixer),
  3999. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4000. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4001. msm_routing_put_audio_mixer),
  4002. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4003. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4004. msm_routing_put_audio_mixer),
  4005. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4009. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4010. msm_routing_put_audio_mixer),
  4011. };
  4012. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4013. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. };
  4017. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4018. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4025. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4026. msm_routing_put_audio_mixer),
  4027. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4029. msm_routing_put_audio_mixer),
  4030. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4034. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4035. msm_routing_put_audio_mixer),
  4036. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4037. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4038. msm_routing_put_audio_mixer),
  4039. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4043. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4044. msm_routing_put_audio_mixer),
  4045. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4046. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4047. msm_routing_put_audio_mixer),
  4048. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4049. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4050. msm_routing_put_audio_mixer),
  4051. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4055. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4056. msm_routing_put_audio_mixer),
  4057. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4058. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4059. msm_routing_put_audio_mixer),
  4060. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4062. msm_routing_put_audio_mixer),
  4063. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4073. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4074. msm_routing_put_audio_mixer),
  4075. };
  4076. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4077. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4079. msm_routing_put_audio_mixer),
  4080. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4082. msm_routing_put_audio_mixer),
  4083. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4088. msm_routing_put_audio_mixer),
  4089. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4090. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4091. msm_routing_put_audio_mixer),
  4092. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4093. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4094. msm_routing_put_audio_mixer),
  4095. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4100. msm_routing_put_audio_mixer),
  4101. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4102. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4103. msm_routing_put_audio_mixer),
  4104. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4105. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4106. msm_routing_put_audio_mixer),
  4107. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4108. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4109. msm_routing_put_audio_mixer),
  4110. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4111. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4112. msm_routing_put_audio_mixer),
  4113. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4114. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4115. msm_routing_put_audio_mixer),
  4116. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4120. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4121. msm_routing_put_audio_mixer),
  4122. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4124. msm_routing_put_audio_mixer),
  4125. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4132. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4133. msm_routing_put_audio_mixer),
  4134. };
  4135. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4136. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4138. msm_routing_put_audio_mixer),
  4139. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4141. msm_routing_put_audio_mixer),
  4142. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4144. msm_routing_put_audio_mixer),
  4145. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4152. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4153. msm_routing_put_audio_mixer),
  4154. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4155. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4156. msm_routing_put_audio_mixer),
  4157. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4161. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4162. msm_routing_put_audio_mixer),
  4163. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4164. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4165. msm_routing_put_audio_mixer),
  4166. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4173. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4174. msm_routing_put_audio_mixer),
  4175. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. };
  4185. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4186. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4190. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4191. msm_routing_put_audio_mixer),
  4192. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4194. msm_routing_put_audio_mixer),
  4195. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4202. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4203. msm_routing_put_audio_mixer),
  4204. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4205. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4206. msm_routing_put_audio_mixer),
  4207. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4211. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4212. msm_routing_put_audio_mixer),
  4213. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4214. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4215. msm_routing_put_audio_mixer),
  4216. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4217. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4218. msm_routing_put_audio_mixer),
  4219. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4223. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4224. msm_routing_put_audio_mixer),
  4225. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4226. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4227. msm_routing_put_audio_mixer),
  4228. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. };
  4235. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4236. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
  4237. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4238. msm_routing_put_audio_mixer),
  4239. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
  4243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4244. msm_routing_put_audio_mixer),
  4245. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
  4246. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4247. msm_routing_put_audio_mixer),
  4248. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
  4249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4250. msm_routing_put_audio_mixer),
  4251. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
  4255. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4256. msm_routing_put_audio_mixer),
  4257. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
  4258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4259. msm_routing_put_audio_mixer),
  4260. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
  4267. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4268. msm_routing_put_audio_mixer),
  4269. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
  4270. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4271. msm_routing_put_audio_mixer),
  4272. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
  4273. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4274. msm_routing_put_audio_mixer),
  4275. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
  4276. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4277. msm_routing_put_audio_mixer),
  4278. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
  4279. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4280. msm_routing_put_audio_mixer),
  4281. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_HDMI_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_HDMI_RX,
  4288. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4289. msm_routing_put_audio_mixer),
  4290. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_HDMI_RX,
  4291. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4292. msm_routing_put_audio_mixer),
  4293. };
  4294. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4295. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4296. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4297. msm_routing_put_audio_mixer),
  4298. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4299. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4300. msm_routing_put_audio_mixer),
  4301. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4305. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4306. msm_routing_put_audio_mixer),
  4307. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4308. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4309. msm_routing_put_audio_mixer),
  4310. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4312. msm_routing_put_audio_mixer),
  4313. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4320. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4321. msm_routing_put_audio_mixer),
  4322. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4324. msm_routing_put_audio_mixer),
  4325. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4332. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4333. msm_routing_put_audio_mixer),
  4334. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4335. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4336. msm_routing_put_audio_mixer),
  4337. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4342. msm_routing_put_audio_mixer),
  4343. };
  4344. /* incall music delivery mixer */
  4345. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4346. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4353. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4354. msm_routing_put_audio_mixer),
  4355. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. };
  4359. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4360. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4362. msm_routing_put_audio_mixer),
  4363. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. };
  4373. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4374. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4378. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4379. msm_routing_put_audio_mixer),
  4380. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4382. msm_routing_put_audio_mixer),
  4383. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. };
  4387. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4388. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4390. msm_routing_put_audio_mixer),
  4391. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4395. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4396. msm_routing_put_audio_mixer),
  4397. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4398. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4399. msm_routing_put_audio_mixer),
  4400. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4402. msm_routing_put_audio_mixer),
  4403. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4407. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4408. msm_routing_put_audio_mixer),
  4409. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4410. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4411. msm_routing_put_audio_mixer),
  4412. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4413. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4414. msm_routing_put_audio_mixer),
  4415. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4422. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4423. msm_routing_put_audio_mixer),
  4424. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4425. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4426. msm_routing_put_audio_mixer),
  4427. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. };
  4437. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4438. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4440. msm_routing_put_audio_mixer),
  4441. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4442. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4443. msm_routing_put_audio_mixer),
  4444. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4452. msm_routing_put_audio_mixer),
  4453. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4460. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4461. msm_routing_put_audio_mixer),
  4462. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4463. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4464. msm_routing_put_audio_mixer),
  4465. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4475. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4476. msm_routing_put_audio_mixer),
  4477. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4478. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4479. msm_routing_put_audio_mixer),
  4480. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. };
  4487. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  4488. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_USB_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_USB_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_USB_RX,
  4495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4496. msm_routing_put_audio_mixer),
  4497. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_USB_RX,
  4498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4499. msm_routing_put_audio_mixer),
  4500. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_USB_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_USB_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_USB_RX,
  4507. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4508. msm_routing_put_audio_mixer),
  4509. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_USB_RX,
  4510. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4511. msm_routing_put_audio_mixer),
  4512. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_USB_RX,
  4513. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4514. msm_routing_put_audio_mixer),
  4515. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_USB_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_USB_RX,
  4519. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4520. msm_routing_put_audio_mixer),
  4521. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_USB_RX,
  4522. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4523. msm_routing_put_audio_mixer),
  4524. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_USB_RX,
  4525. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4526. msm_routing_put_audio_mixer),
  4527. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_USB_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_USB_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_USB_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. };
  4537. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  4538. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4539. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4540. msm_routing_put_audio_mixer),
  4541. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4542. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4543. msm_routing_put_audio_mixer),
  4544. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4546. msm_routing_put_audio_mixer),
  4547. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4552. msm_routing_put_audio_mixer),
  4553. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4557. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4558. msm_routing_put_audio_mixer),
  4559. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4560. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4561. msm_routing_put_audio_mixer),
  4562. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4569. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4570. msm_routing_put_audio_mixer),
  4571. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4572. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4573. msm_routing_put_audio_mixer),
  4574. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4575. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4576. msm_routing_put_audio_mixer),
  4577. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4581. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4582. msm_routing_put_audio_mixer),
  4583. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4584. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4585. msm_routing_put_audio_mixer),
  4586. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. };
  4596. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  4597. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4601. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4602. msm_routing_put_audio_mixer),
  4603. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4613. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4614. msm_routing_put_audio_mixer),
  4615. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4616. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4617. msm_routing_put_audio_mixer),
  4618. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4619. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4620. msm_routing_put_audio_mixer),
  4621. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4623. msm_routing_put_audio_mixer),
  4624. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4625. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4626. msm_routing_put_audio_mixer),
  4627. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4628. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4629. msm_routing_put_audio_mixer),
  4630. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4631. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4632. msm_routing_put_audio_mixer),
  4633. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4634. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4635. msm_routing_put_audio_mixer),
  4636. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4638. msm_routing_put_audio_mixer),
  4639. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4644. msm_routing_put_audio_mixer),
  4645. };
  4646. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  4647. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
  4651. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4652. msm_routing_put_audio_mixer),
  4653. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
  4654. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4655. msm_routing_put_audio_mixer),
  4656. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
  4663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4664. msm_routing_put_audio_mixer),
  4665. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
  4666. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4667. msm_routing_put_audio_mixer),
  4668. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
  4675. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4676. msm_routing_put_audio_mixer),
  4677. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
  4678. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4679. msm_routing_put_audio_mixer),
  4680. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
  4687. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4688. msm_routing_put_audio_mixer),
  4689. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
  4690. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4691. msm_routing_put_audio_mixer),
  4692. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
  4693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4694. msm_routing_put_audio_mixer),
  4695. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_FM_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_FM_RX,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_FM_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. };
  4705. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  4706. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
  4707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4708. msm_routing_put_audio_mixer),
  4709. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
  4713. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4714. msm_routing_put_audio_mixer),
  4715. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
  4716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4717. msm_routing_put_audio_mixer),
  4718. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
  4719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4720. msm_routing_put_audio_mixer),
  4721. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
  4728. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4729. msm_routing_put_audio_mixer),
  4730. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
  4731. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4732. msm_routing_put_audio_mixer),
  4733. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
  4740. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4741. msm_routing_put_audio_mixer),
  4742. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
  4743. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4744. msm_routing_put_audio_mixer),
  4745. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
  4752. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4753. msm_routing_put_audio_mixer),
  4754. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AFE_PCM_RX,
  4755. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4756. msm_routing_put_audio_mixer),
  4757. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AFE_PCM_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AFE_PCM_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. };
  4764. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  4765. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
  4769. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4770. msm_routing_put_audio_mixer),
  4771. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
  4775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4776. msm_routing_put_audio_mixer),
  4777. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
  4778. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4779. msm_routing_put_audio_mixer),
  4780. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
  4787. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4788. msm_routing_put_audio_mixer),
  4789. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
  4790. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4791. msm_routing_put_audio_mixer),
  4792. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
  4793. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4794. msm_routing_put_audio_mixer),
  4795. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
  4799. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4800. msm_routing_put_audio_mixer),
  4801. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
  4802. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4803. msm_routing_put_audio_mixer),
  4804. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
  4805. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4806. msm_routing_put_audio_mixer),
  4807. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
  4811. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4812. msm_routing_put_audio_mixer),
  4813. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AUXPCM_RX,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AUXPCM_RX,
  4817. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4818. msm_routing_put_audio_mixer),
  4819. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AUXPCM_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. };
  4823. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  4824. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4826. msm_routing_put_audio_mixer),
  4827. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4832. msm_routing_put_audio_mixer),
  4833. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4834. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4835. msm_routing_put_audio_mixer),
  4836. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4837. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4838. msm_routing_put_audio_mixer),
  4839. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4843. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4844. msm_routing_put_audio_mixer),
  4845. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4846. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4847. msm_routing_put_audio_mixer),
  4848. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4849. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4850. msm_routing_put_audio_mixer),
  4851. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4861. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4862. msm_routing_put_audio_mixer),
  4863. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4864. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4865. msm_routing_put_audio_mixer),
  4866. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4873. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4874. msm_routing_put_audio_mixer),
  4875. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. };
  4882. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  4883. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4888. msm_routing_put_audio_mixer),
  4889. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4893. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4894. msm_routing_put_audio_mixer),
  4895. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4900. msm_routing_put_audio_mixer),
  4901. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4905. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4906. msm_routing_put_audio_mixer),
  4907. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4908. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4909. msm_routing_put_audio_mixer),
  4910. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4911. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4912. msm_routing_put_audio_mixer),
  4913. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4917. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4918. msm_routing_put_audio_mixer),
  4919. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4923. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4924. msm_routing_put_audio_mixer),
  4925. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. };
  4932. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  4933. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4934. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4935. msm_routing_put_audio_mixer),
  4936. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4943. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4944. msm_routing_put_audio_mixer),
  4945. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4946. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4947. msm_routing_put_audio_mixer),
  4948. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4950. msm_routing_put_audio_mixer),
  4951. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4959. msm_routing_put_audio_mixer),
  4960. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4962. msm_routing_put_audio_mixer),
  4963. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4968. msm_routing_put_audio_mixer),
  4969. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4970. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4971. msm_routing_put_audio_mixer),
  4972. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. };
  4982. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  4983. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4985. msm_routing_put_audio_mixer),
  4986. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4990. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4991. msm_routing_put_audio_mixer),
  4992. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4993. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4994. msm_routing_put_audio_mixer),
  4995. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4996. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4997. msm_routing_put_audio_mixer),
  4998. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5002. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5003. msm_routing_put_audio_mixer),
  5004. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5005. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5006. msm_routing_put_audio_mixer),
  5007. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5008. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5009. msm_routing_put_audio_mixer),
  5010. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5012. msm_routing_put_audio_mixer),
  5013. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5020. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5021. msm_routing_put_audio_mixer),
  5022. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. };
  5032. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5033. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5040. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5041. msm_routing_put_audio_mixer),
  5042. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5043. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5044. msm_routing_put_audio_mixer),
  5045. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5052. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5053. msm_routing_put_audio_mixer),
  5054. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5055. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5056. msm_routing_put_audio_mixer),
  5057. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5058. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5059. msm_routing_put_audio_mixer),
  5060. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5064. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5065. msm_routing_put_audio_mixer),
  5066. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5067. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5068. msm_routing_put_audio_mixer),
  5069. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5070. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5071. msm_routing_put_audio_mixer),
  5072. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. };
  5082. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  5083. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5087. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5088. msm_routing_put_audio_mixer),
  5089. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5090. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5091. msm_routing_put_audio_mixer),
  5092. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5096. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5097. msm_routing_put_audio_mixer),
  5098. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5099. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5100. msm_routing_put_audio_mixer),
  5101. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5102. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5103. msm_routing_put_audio_mixer),
  5104. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5106. msm_routing_put_audio_mixer),
  5107. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5108. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5109. msm_routing_put_audio_mixer),
  5110. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5114. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5115. msm_routing_put_audio_mixer),
  5116. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5117. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5118. msm_routing_put_audio_mixer),
  5119. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. };
  5132. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  5133. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5134. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5135. msm_routing_put_audio_mixer),
  5136. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5138. msm_routing_put_audio_mixer),
  5139. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5140. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5141. msm_routing_put_audio_mixer),
  5142. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5146. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5147. msm_routing_put_audio_mixer),
  5148. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5149. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5150. msm_routing_put_audio_mixer),
  5151. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5152. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5153. msm_routing_put_audio_mixer),
  5154. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5158. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5159. msm_routing_put_audio_mixer),
  5160. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5161. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5162. msm_routing_put_audio_mixer),
  5163. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5164. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5165. msm_routing_put_audio_mixer),
  5166. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5170. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5171. msm_routing_put_audio_mixer),
  5172. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5180. msm_routing_put_audio_mixer),
  5181. };
  5182. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5183. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5185. msm_routing_put_audio_mixer),
  5186. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5187. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5188. msm_routing_put_audio_mixer),
  5189. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5196. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5197. msm_routing_put_audio_mixer),
  5198. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5199. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5200. msm_routing_put_audio_mixer),
  5201. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5208. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5209. msm_routing_put_audio_mixer),
  5210. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5211. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5212. msm_routing_put_audio_mixer),
  5213. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5220. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5221. msm_routing_put_audio_mixer),
  5222. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5223. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5224. msm_routing_put_audio_mixer),
  5225. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. };
  5232. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  5233. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5243. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5244. msm_routing_put_audio_mixer),
  5245. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5247. msm_routing_put_audio_mixer),
  5248. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5250. msm_routing_put_audio_mixer),
  5251. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5255. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5256. msm_routing_put_audio_mixer),
  5257. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5258. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5259. msm_routing_put_audio_mixer),
  5260. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5261. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5262. msm_routing_put_audio_mixer),
  5263. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5270. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5271. msm_routing_put_audio_mixer),
  5272. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5273. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5274. msm_routing_put_audio_mixer),
  5275. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. };
  5282. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  5283. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5290. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5291. msm_routing_put_audio_mixer),
  5292. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5294. msm_routing_put_audio_mixer),
  5295. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5299. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5300. msm_routing_put_audio_mixer),
  5301. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5312. msm_routing_put_audio_mixer),
  5313. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5323. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5324. msm_routing_put_audio_mixer),
  5325. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. };
  5332. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  5333. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5344. msm_routing_put_audio_mixer),
  5345. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5356. msm_routing_put_audio_mixer),
  5357. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. };
  5382. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  5383. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5394. msm_routing_put_audio_mixer),
  5395. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5405. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5406. msm_routing_put_audio_mixer),
  5407. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5417. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5418. msm_routing_put_audio_mixer),
  5419. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. };
  5432. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  5433. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5449. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5450. msm_routing_put_audio_mixer),
  5451. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5467. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5468. msm_routing_put_audio_mixer),
  5469. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. };
  5482. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  5483. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5487. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5488. msm_routing_put_audio_mixer),
  5489. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5499. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5500. msm_routing_put_audio_mixer),
  5501. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. };
  5532. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  5533. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. };
  5582. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  5583. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5596. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5597. msm_routing_put_audio_mixer),
  5598. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5612. msm_routing_put_audio_mixer),
  5613. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. };
  5632. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  5633. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. };
  5682. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  5683. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5693. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5694. msm_routing_put_audio_mixer),
  5695. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5705. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5706. msm_routing_put_audio_mixer),
  5707. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5717. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5718. msm_routing_put_audio_mixer),
  5719. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. };
  5732. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  5733. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. };
  5782. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  5783. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5787. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5788. msm_routing_put_audio_mixer),
  5789. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. };
  5832. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  5833. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5846. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5847. msm_routing_put_audio_mixer),
  5848. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. };
  5885. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  5886. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. };
  5935. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  5936. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. };
  5988. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  5989. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6017. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6018. msm_routing_put_audio_mixer),
  6019. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. };
  6041. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  6042. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. };
  6094. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  6095. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. };
  6147. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  6148. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. };
  6197. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  6198. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. };
  6250. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  6251. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. };
  6303. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  6304. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6332. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6333. msm_routing_put_audio_mixer),
  6334. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6344. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6345. msm_routing_put_audio_mixer),
  6346. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. };
  6356. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  6357. SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6398. msm_routing_put_audio_mixer),
  6399. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6409. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6410. msm_routing_put_audio_mixer),
  6411. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6421. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6422. msm_routing_put_audio_mixer),
  6423. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6434. msm_routing_put_audio_mixer),
  6435. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. };
  6493. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  6494. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6507. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6508. msm_routing_put_audio_mixer),
  6509. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. };
  6597. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  6598. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. };
  6701. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  6702. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA4, 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_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. };
  6802. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  6803. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. };
  6921. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  6922. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6966. msm_routing_put_audio_mixer),
  6967. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. };
  7025. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  7026. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. };
  7132. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  7133. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7140. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7141. msm_routing_put_audio_mixer),
  7142. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7152. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7153. msm_routing_put_audio_mixer),
  7154. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7182. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7183. msm_routing_put_audio_mixer),
  7184. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7194. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7195. msm_routing_put_audio_mixer),
  7196. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7206. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7207. msm_routing_put_audio_mixer),
  7208. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7218. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7219. msm_routing_put_audio_mixer),
  7220. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. };
  7239. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  7240. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7268. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7269. msm_routing_put_audio_mixer),
  7270. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7280. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7281. msm_routing_put_audio_mixer),
  7282. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7292. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7293. msm_routing_put_audio_mixer),
  7294. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. };
  7301. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  7302. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7312. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7313. msm_routing_put_audio_mixer),
  7314. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7330. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7331. msm_routing_put_audio_mixer),
  7332. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7342. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7343. msm_routing_put_audio_mixer),
  7344. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7354. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7355. msm_routing_put_audio_mixer),
  7356. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. };
  7381. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  7382. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7392. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7393. msm_routing_put_audio_mixer),
  7394. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. };
  7404. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  7405. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7412. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7413. msm_routing_put_audio_mixer),
  7414. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7424. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7425. msm_routing_put_audio_mixer),
  7426. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. };
  7430. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  7431. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7432. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7433. msm_routing_put_audio_mixer),
  7434. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. };
  7453. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  7454. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7458. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7459. msm_routing_put_audio_mixer),
  7460. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7470. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7471. msm_routing_put_audio_mixer),
  7472. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7482. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7483. msm_routing_put_audio_mixer),
  7484. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7494. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7495. msm_routing_put_audio_mixer),
  7496. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7518. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7519. msm_routing_put_audio_mixer),
  7520. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. };
  7530. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  7531. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_PRI_I2S_RX,
  7532. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7533. msm_routing_put_voice_mixer),
  7534. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_PRI_I2S_RX,
  7535. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7536. msm_routing_put_voice_mixer),
  7537. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
  7538. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7539. msm_routing_put_voice_mixer),
  7540. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_PRI_I2S_RX,
  7541. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7542. msm_routing_put_voice_mixer),
  7543. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_PRI_I2S_RX,
  7544. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7545. msm_routing_put_voice_mixer),
  7546. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
  7547. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7548. msm_routing_put_voice_mixer),
  7549. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
  7550. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7551. msm_routing_put_voice_mixer),
  7552. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
  7553. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7554. msm_routing_put_voice_mixer),
  7555. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
  7556. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7557. msm_routing_put_voice_mixer),
  7558. };
  7559. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  7560. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SEC_I2S_RX,
  7561. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7562. msm_routing_put_voice_mixer),
  7563. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SEC_I2S_RX,
  7564. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7565. msm_routing_put_voice_mixer),
  7566. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
  7567. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7568. msm_routing_put_voice_mixer),
  7569. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SEC_I2S_RX,
  7570. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7571. msm_routing_put_voice_mixer),
  7572. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SEC_I2S_RX,
  7573. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7574. msm_routing_put_voice_mixer),
  7575. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
  7576. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7577. msm_routing_put_voice_mixer),
  7578. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
  7579. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7580. msm_routing_put_voice_mixer),
  7581. };
  7582. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  7583. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7584. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7585. msm_routing_put_voice_mixer),
  7586. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7587. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7588. msm_routing_put_voice_mixer),
  7589. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7590. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7591. msm_routing_put_voice_mixer),
  7592. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7593. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7594. msm_routing_put_voice_mixer),
  7595. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7596. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7597. msm_routing_put_voice_mixer),
  7598. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7599. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7600. msm_routing_put_voice_mixer),
  7601. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7602. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7603. msm_routing_put_voice_mixer),
  7604. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7605. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7606. msm_routing_put_voice_mixer),
  7607. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7608. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7609. msm_routing_put_voice_mixer),
  7610. };
  7611. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  7612. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7613. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7614. msm_routing_put_voice_mixer),
  7615. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7616. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7617. msm_routing_put_voice_mixer),
  7618. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7619. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7620. msm_routing_put_voice_mixer),
  7621. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7622. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7623. msm_routing_put_voice_stub_mixer),
  7624. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7625. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7626. msm_routing_put_voice_stub_mixer),
  7627. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7628. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7629. msm_routing_put_voice_mixer),
  7630. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7631. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7632. msm_routing_put_voice_stub_mixer),
  7633. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7634. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7635. msm_routing_put_voice_mixer),
  7636. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7637. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7638. msm_routing_put_voice_mixer),
  7639. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7640. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7641. msm_routing_put_voice_mixer),
  7642. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7643. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7644. msm_routing_put_voice_mixer),
  7645. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7646. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7647. msm_routing_put_voice_mixer),
  7648. };
  7649. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  7650. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7651. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7652. msm_routing_put_voice_mixer),
  7653. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7654. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7655. msm_routing_put_voice_mixer),
  7656. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7657. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7658. msm_routing_put_voice_mixer),
  7659. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7660. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7661. msm_routing_put_voice_stub_mixer),
  7662. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7663. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7664. msm_routing_put_voice_stub_mixer),
  7665. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7666. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7667. msm_routing_put_voice_mixer),
  7668. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7669. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7670. msm_routing_put_voice_stub_mixer),
  7671. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7672. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7673. msm_routing_put_voice_mixer),
  7674. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7675. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7676. msm_routing_put_voice_mixer),
  7677. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7678. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7679. msm_routing_put_voice_mixer),
  7680. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7681. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7682. msm_routing_put_voice_mixer),
  7683. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7684. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7685. msm_routing_put_voice_mixer),
  7686. };
  7687. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  7688. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_USB_RX,
  7689. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7690. msm_routing_put_voice_mixer),
  7691. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_USB_RX,
  7692. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7693. msm_routing_put_voice_mixer),
  7694. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_USB_RX,
  7695. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7696. msm_routing_put_voice_mixer),
  7697. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_USB_RX,
  7698. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7699. msm_routing_put_voice_stub_mixer),
  7700. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_USB_RX,
  7701. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7702. msm_routing_put_voice_stub_mixer),
  7703. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_USB_RX,
  7704. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7705. msm_routing_put_voice_mixer),
  7706. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_USB_RX,
  7707. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7708. msm_routing_put_voice_stub_mixer),
  7709. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_USB_RX,
  7710. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7711. msm_routing_put_voice_mixer),
  7712. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_USB_RX,
  7713. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7714. msm_routing_put_voice_mixer),
  7715. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_USB_RX,
  7716. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7717. msm_routing_put_voice_mixer),
  7718. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_USB_RX,
  7719. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7720. msm_routing_put_voice_mixer),
  7721. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_USB_RX,
  7722. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7723. msm_routing_put_voice_mixer),
  7724. };
  7725. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  7726. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7727. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7728. msm_routing_put_voice_mixer),
  7729. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7730. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7731. msm_routing_put_voice_mixer),
  7732. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7733. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7734. msm_routing_put_voice_mixer),
  7735. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7736. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7737. msm_routing_put_voice_stub_mixer),
  7738. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7739. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7740. msm_routing_put_voice_stub_mixer),
  7741. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7742. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7743. msm_routing_put_voice_mixer),
  7744. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7745. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7746. msm_routing_put_voice_mixer),
  7747. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7748. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7749. msm_routing_put_voice_mixer),
  7750. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7751. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7752. msm_routing_put_voice_mixer),
  7753. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7754. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7755. msm_routing_put_voice_mixer),
  7756. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7757. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7758. msm_routing_put_voice_mixer),
  7759. };
  7760. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  7761. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_MI2S_RX,
  7762. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7763. msm_routing_put_voice_mixer),
  7764. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_MI2S_RX,
  7765. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7766. msm_routing_put_voice_mixer),
  7767. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
  7768. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7769. msm_routing_put_voice_mixer),
  7770. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_MI2S_RX,
  7771. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7772. msm_routing_put_voice_stub_mixer),
  7773. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_MI2S_RX,
  7774. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7775. msm_routing_put_voice_mixer),
  7776. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_MI2S_RX,
  7777. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7778. msm_routing_put_voice_mixer),
  7779. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
  7780. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7781. msm_routing_put_voice_mixer),
  7782. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
  7783. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7784. msm_routing_put_voice_mixer),
  7785. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
  7786. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7787. msm_routing_put_voice_mixer),
  7788. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
  7789. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7790. msm_routing_put_voice_mixer),
  7791. };
  7792. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  7793. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7794. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7795. msm_routing_put_voice_mixer),
  7796. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7797. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7798. msm_routing_put_voice_mixer),
  7799. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7800. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7801. msm_routing_put_voice_mixer),
  7802. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7803. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7804. msm_routing_put_voice_stub_mixer),
  7805. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7806. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7807. msm_routing_put_voice_stub_mixer),
  7808. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7809. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7810. msm_routing_put_voice_mixer),
  7811. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7812. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7813. msm_routing_put_voice_mixer),
  7814. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7815. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7816. msm_routing_put_voice_mixer),
  7817. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7818. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7819. msm_routing_put_voice_mixer),
  7820. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7821. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7822. msm_routing_put_voice_mixer),
  7823. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7824. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7825. msm_routing_put_voice_mixer),
  7826. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7827. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7828. msm_routing_put_voice_mixer),
  7829. };
  7830. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  7831. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7833. msm_routing_put_voice_mixer),
  7834. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7835. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7836. msm_routing_put_voice_mixer),
  7837. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7838. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7839. msm_routing_put_voice_mixer),
  7840. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7841. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7842. msm_routing_put_voice_mixer),
  7843. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7844. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7845. msm_routing_put_voice_mixer),
  7846. };
  7847. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  7848. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7849. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7850. msm_routing_put_voice_mixer),
  7851. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7852. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7853. msm_routing_put_voice_mixer),
  7854. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7855. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7856. msm_routing_put_voice_mixer),
  7857. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7858. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7859. msm_routing_put_voice_mixer),
  7860. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7861. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7862. msm_routing_put_voice_mixer),
  7863. };
  7864. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  7865. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7866. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7867. msm_routing_put_voice_mixer),
  7868. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7869. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7870. msm_routing_put_voice_mixer),
  7871. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7872. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7873. msm_routing_put_voice_mixer),
  7874. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7875. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7876. msm_routing_put_voice_stub_mixer),
  7877. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7878. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7879. msm_routing_put_voice_stub_mixer),
  7880. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7881. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7882. msm_routing_put_voice_mixer),
  7883. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7884. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7885. msm_routing_put_voice_mixer),
  7886. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7887. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7888. msm_routing_put_voice_mixer),
  7889. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7890. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7891. msm_routing_put_voice_mixer),
  7892. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7893. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7894. msm_routing_put_voice_mixer),
  7895. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7896. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7897. msm_routing_put_voice_mixer),
  7898. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7899. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7900. msm_routing_put_voice_mixer),
  7901. };
  7902. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  7903. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7904. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7905. msm_routing_put_voice_mixer),
  7906. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7907. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7908. msm_routing_put_voice_mixer),
  7909. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7910. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7911. msm_routing_put_voice_mixer),
  7912. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7913. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7914. msm_routing_put_voice_stub_mixer),
  7915. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7916. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7917. msm_routing_put_voice_stub_mixer),
  7918. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7919. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7920. msm_routing_put_voice_mixer),
  7921. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7922. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7923. msm_routing_put_voice_mixer),
  7924. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7925. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7926. msm_routing_put_voice_mixer),
  7927. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7928. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7929. msm_routing_put_voice_mixer),
  7930. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7931. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7932. msm_routing_put_voice_mixer),
  7933. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7934. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7935. msm_routing_put_voice_mixer),
  7936. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7937. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7938. msm_routing_put_voice_mixer),
  7939. };
  7940. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  7941. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7942. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7943. msm_routing_put_voice_mixer),
  7944. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7945. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7946. msm_routing_put_voice_mixer),
  7947. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7948. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7949. msm_routing_put_voice_mixer),
  7950. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7951. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7952. msm_routing_put_voice_stub_mixer),
  7953. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7954. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7955. msm_routing_put_voice_stub_mixer),
  7956. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7957. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7958. msm_routing_put_voice_mixer),
  7959. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7960. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  7961. msm_routing_put_voice_mixer),
  7962. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7963. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  7964. msm_routing_put_voice_mixer),
  7965. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7966. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7967. msm_routing_put_voice_mixer),
  7968. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7969. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7970. msm_routing_put_voice_mixer),
  7971. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7972. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7973. msm_routing_put_voice_mixer),
  7974. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7975. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7976. msm_routing_put_voice_mixer),
  7977. };
  7978. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  7979. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_AFE_PCM_RX,
  7980. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  7981. msm_routing_put_voice_mixer),
  7982. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7983. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  7984. msm_routing_put_voice_mixer),
  7985. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
  7986. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7987. msm_routing_put_voice_mixer),
  7988. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  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("Voice2 Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7992. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7993. msm_routing_put_voice_stub_mixer),
  7994. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_AFE_PCM_RX,
  7995. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  7996. msm_routing_put_voice_mixer),
  7997. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
  7998. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  7999. msm_routing_put_voice_stub_mixer),
  8000. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_AFE_PCM_RX,
  8001. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8002. msm_routing_put_voice_mixer),
  8003. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
  8004. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8005. msm_routing_put_voice_mixer),
  8006. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
  8007. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8008. msm_routing_put_voice_mixer),
  8009. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
  8010. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8011. msm_routing_put_voice_mixer),
  8012. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
  8013. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8014. msm_routing_put_voice_mixer),
  8015. };
  8016. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  8017. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_AUXPCM_RX,
  8018. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8019. msm_routing_put_voice_mixer),
  8020. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_AUXPCM_RX,
  8021. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8022. msm_routing_put_voice_mixer),
  8023. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
  8024. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8025. msm_routing_put_voice_mixer),
  8026. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  8027. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8028. msm_routing_put_voice_stub_mixer),
  8029. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  8030. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8031. msm_routing_put_voice_stub_mixer),
  8032. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_AUXPCM_RX,
  8033. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8034. msm_routing_put_voice_mixer),
  8035. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AUXPCM_RX,
  8036. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8037. msm_routing_put_voice_stub_mixer),
  8038. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_AUXPCM_RX,
  8039. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8040. msm_routing_put_voice_mixer),
  8041. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
  8042. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8043. msm_routing_put_voice_mixer),
  8044. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
  8045. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8046. msm_routing_put_voice_mixer),
  8047. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
  8048. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8049. msm_routing_put_voice_mixer),
  8050. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
  8051. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8052. msm_routing_put_voice_mixer),
  8053. };
  8054. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  8055. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8056. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8057. msm_routing_put_voice_mixer),
  8058. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8059. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8060. msm_routing_put_voice_mixer),
  8061. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8062. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8063. msm_routing_put_voice_mixer),
  8064. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8065. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8066. msm_routing_put_voice_stub_mixer),
  8067. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8068. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8069. msm_routing_put_voice_mixer),
  8070. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8071. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8072. msm_routing_put_voice_mixer),
  8073. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8074. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8075. msm_routing_put_voice_mixer),
  8076. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8077. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8078. msm_routing_put_voice_mixer),
  8079. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8080. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8081. msm_routing_put_voice_mixer),
  8082. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8083. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8084. msm_routing_put_voice_mixer),
  8085. };
  8086. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  8087. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8088. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8089. msm_routing_put_voice_mixer),
  8090. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8091. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8092. msm_routing_put_voice_mixer),
  8093. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8094. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8095. msm_routing_put_voice_mixer),
  8096. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8097. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8098. msm_routing_put_voice_stub_mixer),
  8099. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8100. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8101. msm_routing_put_voice_mixer),
  8102. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8103. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8104. msm_routing_put_voice_mixer),
  8105. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8106. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8107. msm_routing_put_voice_mixer),
  8108. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8109. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8110. msm_routing_put_voice_mixer),
  8111. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8112. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8113. msm_routing_put_voice_mixer),
  8114. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8115. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8116. msm_routing_put_voice_mixer),
  8117. };
  8118. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  8119. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8120. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8121. msm_routing_put_voice_mixer),
  8122. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8123. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8124. msm_routing_put_voice_mixer),
  8125. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8126. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8127. msm_routing_put_voice_mixer),
  8128. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8129. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8130. msm_routing_put_voice_stub_mixer),
  8131. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8132. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8133. msm_routing_put_voice_mixer),
  8134. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8135. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8136. msm_routing_put_voice_mixer),
  8137. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8138. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8139. msm_routing_put_voice_mixer),
  8140. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8141. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8142. msm_routing_put_voice_mixer),
  8143. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8144. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8145. msm_routing_put_voice_mixer),
  8146. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8147. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8148. msm_routing_put_voice_mixer),
  8149. };
  8150. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  8151. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8152. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8153. msm_routing_put_voice_mixer),
  8154. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8155. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8156. msm_routing_put_voice_mixer),
  8157. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8158. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8159. msm_routing_put_voice_mixer),
  8160. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8161. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8162. msm_routing_put_voice_stub_mixer),
  8163. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8164. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8165. msm_routing_put_voice_mixer),
  8166. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8167. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8168. msm_routing_put_voice_mixer),
  8169. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8170. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8171. msm_routing_put_voice_mixer),
  8172. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8173. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8174. msm_routing_put_voice_mixer),
  8175. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8176. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8177. msm_routing_put_voice_mixer),
  8178. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8179. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8180. msm_routing_put_voice_mixer),
  8181. };
  8182. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  8183. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_HDMI_RX,
  8184. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8185. msm_routing_put_voice_mixer),
  8186. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_HDMI_RX,
  8187. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8188. msm_routing_put_voice_mixer),
  8189. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
  8190. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8191. msm_routing_put_voice_mixer),
  8192. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_HDMI_RX,
  8193. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8194. msm_routing_put_voice_mixer),
  8195. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_HDMI_RX,
  8196. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8197. msm_routing_put_voice_mixer),
  8198. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_HDMI_RX,
  8199. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8200. msm_routing_put_voice_stub_mixer),
  8201. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_HDMI_RX,
  8202. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8203. msm_routing_put_voice_stub_mixer),
  8204. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_HDMI_RX,
  8205. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8206. msm_routing_put_voice_stub_mixer),
  8207. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
  8208. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8209. msm_routing_put_voice_mixer),
  8210. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
  8211. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8212. msm_routing_put_voice_mixer),
  8213. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
  8214. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8215. msm_routing_put_voice_mixer),
  8216. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
  8217. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8218. msm_routing_put_voice_mixer),
  8219. };
  8220. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  8221. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8222. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8223. msm_routing_put_voice_mixer),
  8224. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8225. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8226. msm_routing_put_voice_mixer),
  8227. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8228. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8229. msm_routing_put_voice_mixer),
  8230. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8231. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8232. msm_routing_put_voice_stub_mixer),
  8233. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8234. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8235. msm_routing_put_voice_stub_mixer),
  8236. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8237. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8238. msm_routing_put_voice_mixer),
  8239. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8240. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8241. msm_routing_put_voice_stub_mixer),
  8242. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8243. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8244. msm_routing_put_voice_mixer),
  8245. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8246. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8247. msm_routing_put_voice_mixer),
  8248. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8249. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8250. msm_routing_put_voice_mixer),
  8251. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8252. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8253. msm_routing_put_voice_mixer),
  8254. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8255. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8256. msm_routing_put_voice_mixer),
  8257. };
  8258. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  8259. SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8260. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8261. msm_routing_put_voice_mixer),
  8262. SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8263. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8264. msm_routing_put_voice_mixer),
  8265. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8266. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8267. msm_routing_put_voice_mixer),
  8268. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8269. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8270. msm_routing_put_voice_stub_mixer),
  8271. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8272. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8273. msm_routing_put_voice_stub_mixer),
  8274. SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8275. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8276. msm_routing_put_voice_mixer),
  8277. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8278. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8279. msm_routing_put_voice_stub_mixer),
  8280. SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8281. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8282. msm_routing_put_voice_mixer),
  8283. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8284. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  8285. msm_routing_put_voice_mixer),
  8286. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8287. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8288. msm_routing_put_voice_mixer),
  8289. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8290. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8291. msm_routing_put_voice_mixer),
  8292. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  8293. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8294. msm_routing_put_voice_mixer),
  8295. };
  8296. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  8297. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8298. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8299. msm_routing_put_voice_mixer),
  8300. };
  8301. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  8302. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  8303. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8304. msm_routing_put_voice_stub_mixer),
  8305. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  8306. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8307. msm_routing_put_voice_stub_mixer),
  8308. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_EXTPROC_RX,
  8309. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8310. msm_routing_put_voice_stub_mixer),
  8311. };
  8312. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  8313. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8314. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8315. msm_routing_put_voice_stub_mixer),
  8316. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8317. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8318. msm_routing_put_voice_stub_mixer),
  8319. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8320. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8321. msm_routing_put_voice_stub_mixer),
  8322. };
  8323. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  8324. SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8325. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8326. msm_routing_put_voice_stub_mixer),
  8327. SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8328. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8329. msm_routing_put_voice_stub_mixer),
  8330. SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8331. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8332. msm_routing_put_voice_stub_mixer),
  8333. };
  8334. static const struct snd_kcontrol_new tx_voice_mixer_controls[] = {
  8335. SOC_SINGLE_EXT("PRI_TX_Voice", MSM_BACKEND_DAI_PRI_I2S_TX,
  8336. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8337. msm_routing_put_voice_mixer),
  8338. SOC_SINGLE_EXT("MI2S_TX_Voice", MSM_BACKEND_DAI_MI2S_TX,
  8339. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8340. msm_routing_put_voice_mixer),
  8341. SOC_SINGLE_EXT("SLIM_0_TX_Voice", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8342. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8343. msm_routing_put_voice_mixer),
  8344. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voice",
  8345. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_CS_VOICE, 1, 0,
  8346. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8347. SOC_SINGLE_EXT("AFE_PCM_TX_Voice", MSM_BACKEND_DAI_AFE_PCM_TX,
  8348. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8349. msm_routing_put_voice_mixer),
  8350. SOC_SINGLE_EXT("AUX_PCM_TX_Voice", MSM_BACKEND_DAI_AUXPCM_TX,
  8351. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8352. msm_routing_put_voice_mixer),
  8353. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voice", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8354. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8355. msm_routing_put_voice_mixer),
  8356. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voice", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8357. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8358. msm_routing_put_voice_mixer),
  8359. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voice", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8360. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8361. msm_routing_put_voice_mixer),
  8362. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voice", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8363. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8364. msm_routing_put_voice_mixer),
  8365. SOC_SINGLE_EXT("PRI_MI2S_TX_Voice", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8366. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8367. msm_routing_put_voice_mixer),
  8368. SOC_SINGLE_EXT("SEC_MI2S_TX_Voice", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8369. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8370. msm_routing_put_voice_mixer),
  8371. SOC_SINGLE_EXT("TERT_MI2S_TX_Voice", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8372. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8373. msm_routing_put_voice_mixer),
  8374. SOC_SINGLE_EXT("SLIM_7_TX_Voice", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8375. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8376. msm_routing_put_voice_mixer),
  8377. SOC_SINGLE_EXT("SLIM_8_TX_Voice", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8378. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8379. msm_routing_put_voice_mixer),
  8380. SOC_SINGLE_EXT("USB_AUDIO_TX_Voice", MSM_BACKEND_DAI_USB_TX,
  8381. MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
  8382. msm_routing_put_voice_mixer),
  8383. };
  8384. static const struct snd_kcontrol_new tx_voice2_mixer_controls[] = {
  8385. SOC_SINGLE_EXT("PRI_TX_Voice2", MSM_BACKEND_DAI_PRI_I2S_TX,
  8386. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8387. msm_routing_put_voice_mixer),
  8388. SOC_SINGLE_EXT("MI2S_TX_Voice2", MSM_BACKEND_DAI_MI2S_TX,
  8389. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8390. msm_routing_put_voice_mixer),
  8391. SOC_SINGLE_EXT("SLIM_0_TX_Voice2", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8392. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8393. msm_routing_put_voice_mixer),
  8394. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voice2",
  8395. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICE2, 1, 0,
  8396. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8397. SOC_SINGLE_EXT("AFE_PCM_TX_Voice2", MSM_BACKEND_DAI_AFE_PCM_TX,
  8398. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8399. msm_routing_put_voice_mixer),
  8400. SOC_SINGLE_EXT("AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_AUXPCM_TX,
  8401. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8402. msm_routing_put_voice_mixer),
  8403. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8404. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8405. msm_routing_put_voice_mixer),
  8406. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8407. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8408. msm_routing_put_voice_mixer),
  8409. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8410. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8411. msm_routing_put_voice_mixer),
  8412. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8413. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8414. msm_routing_put_voice_mixer),
  8415. SOC_SINGLE_EXT("PRI_MI2S_TX_Voice2", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8416. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8417. msm_routing_put_voice_mixer),
  8418. SOC_SINGLE_EXT("TERT_MI2S_TX_Voice2", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8419. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8420. msm_routing_put_voice_mixer),
  8421. SOC_SINGLE_EXT("SLIM_7_TX_Voice2", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8422. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8423. msm_routing_put_voice_mixer),
  8424. SOC_SINGLE_EXT("SLIM_8_TX_Voice2", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8425. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8426. msm_routing_put_voice_mixer),
  8427. SOC_SINGLE_EXT("USB_AUDIO_TX_Voice2", MSM_BACKEND_DAI_USB_TX,
  8428. MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
  8429. msm_routing_put_voice_mixer),
  8430. };
  8431. static const struct snd_kcontrol_new tx_volte_mixer_controls[] = {
  8432. SOC_SINGLE_EXT("PRI_TX_VoLTE", MSM_BACKEND_DAI_PRI_I2S_TX,
  8433. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8434. msm_routing_put_voice_mixer),
  8435. SOC_SINGLE_EXT("SLIM_0_TX_VoLTE", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8436. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8437. msm_routing_put_voice_mixer),
  8438. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_VoLTE",
  8439. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOLTE, 1, 0,
  8440. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8441. SOC_SINGLE_EXT("AFE_PCM_TX_VoLTE", MSM_BACKEND_DAI_AFE_PCM_TX,
  8442. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8443. msm_routing_put_voice_mixer),
  8444. SOC_SINGLE_EXT("AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_AUXPCM_TX,
  8445. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8446. msm_routing_put_voice_mixer),
  8447. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8448. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8449. msm_routing_put_voice_mixer),
  8450. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8451. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8452. msm_routing_put_voice_mixer),
  8453. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8454. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8455. msm_routing_put_voice_mixer),
  8456. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8457. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8458. msm_routing_put_voice_mixer),
  8459. SOC_SINGLE_EXT("MI2S_TX_VoLTE", MSM_BACKEND_DAI_MI2S_TX,
  8460. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8461. msm_routing_put_voice_mixer),
  8462. SOC_SINGLE_EXT("PRI_MI2S_TX_VoLTE", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8463. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8464. msm_routing_put_voice_mixer),
  8465. SOC_SINGLE_EXT("TERT_MI2S_TX_VoLTE", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8466. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8467. msm_routing_put_voice_mixer),
  8468. SOC_SINGLE_EXT("SLIM_7_TX_VoLTE", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8469. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8470. msm_routing_put_voice_mixer),
  8471. SOC_SINGLE_EXT("SLIM_8_TX_VoLTE", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8472. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8473. msm_routing_put_voice_mixer),
  8474. SOC_SINGLE_EXT("USB_AUDIO_TX_VoLTE", MSM_BACKEND_DAI_USB_TX,
  8475. MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
  8476. msm_routing_put_voice_mixer),
  8477. };
  8478. static const struct snd_kcontrol_new tx_vowlan_mixer_controls[] = {
  8479. SOC_SINGLE_EXT("PRI_TX_VoWLAN", MSM_BACKEND_DAI_PRI_I2S_TX,
  8480. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8481. msm_routing_put_voice_mixer),
  8482. SOC_SINGLE_EXT("SLIM_0_TX_VoWLAN", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8483. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8484. msm_routing_put_voice_mixer),
  8485. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_VoWLAN",
  8486. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOWLAN, 1, 0,
  8487. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8488. SOC_SINGLE_EXT("AFE_PCM_TX_VoWLAN", MSM_BACKEND_DAI_AFE_PCM_TX,
  8489. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8490. msm_routing_put_voice_mixer),
  8491. SOC_SINGLE_EXT("AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_AUXPCM_TX,
  8492. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8493. msm_routing_put_voice_mixer),
  8494. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8495. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8496. msm_routing_put_voice_mixer),
  8497. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8498. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8499. msm_routing_put_voice_mixer),
  8500. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8501. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8502. msm_routing_put_voice_mixer),
  8503. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8504. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8505. msm_routing_put_voice_mixer),
  8506. SOC_SINGLE_EXT("MI2S_TX_VoWLAN", MSM_BACKEND_DAI_MI2S_TX,
  8507. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8508. msm_routing_put_voice_mixer),
  8509. SOC_SINGLE_EXT("PRI_MI2S_TX_VoWLAN", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8510. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8511. msm_routing_put_voice_mixer),
  8512. SOC_SINGLE_EXT("TERT_MI2S_TX_VoWLAN", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8513. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8514. msm_routing_put_voice_mixer),
  8515. SOC_SINGLE_EXT("SLIM_7_TX_VoWLAN", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8516. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8517. msm_routing_put_voice_mixer),
  8518. SOC_SINGLE_EXT("SLIM_8_TX_VoWLAN", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8519. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8520. msm_routing_put_voice_mixer),
  8521. SOC_SINGLE_EXT("USB_AUDIO_TX_VoWLAN", MSM_BACKEND_DAI_USB_TX,
  8522. MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
  8523. msm_routing_put_voice_mixer),
  8524. };
  8525. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  8526. SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
  8527. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8528. msm_routing_put_voice_mixer),
  8529. SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
  8530. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8531. msm_routing_put_voice_mixer),
  8532. SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
  8533. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8534. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8535. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
  8536. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8537. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8538. SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
  8539. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8540. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8541. SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
  8542. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8543. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8544. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
  8545. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8546. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8547. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode1",
  8548. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8549. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8550. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode1",
  8551. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8552. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8553. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode1",
  8554. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8555. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8556. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
  8557. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  8558. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8559. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
  8560. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  8561. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8562. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode1",
  8563. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  8564. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8565. SOC_SINGLE_EXT("SLIM_7_TX_MMode1",
  8566. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8567. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8568. SOC_SINGLE_EXT("SLIM_8_TX_MMode1",
  8569. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  8570. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8571. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode1", MSM_BACKEND_DAI_USB_TX,
  8572. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8573. msm_routing_put_voice_mixer),
  8574. SOC_SINGLE_EXT("QUAT_TDM_TX_0_MMode1",
  8575. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  8576. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8577. };
  8578. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  8579. SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
  8580. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8581. msm_routing_put_voice_mixer),
  8582. SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
  8583. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8584. msm_routing_put_voice_mixer),
  8585. SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
  8586. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8587. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8588. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
  8589. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8590. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8591. SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
  8592. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8593. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8594. SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
  8595. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8596. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8597. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
  8598. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8599. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8600. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode2",
  8601. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8602. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8603. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode2",
  8604. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8605. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8606. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode2",
  8607. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8608. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8609. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
  8610. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8611. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8612. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
  8613. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8614. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8615. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode2",
  8616. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8617. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8618. SOC_SINGLE_EXT("SLIM_7_TX_MMode2",
  8619. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8620. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8621. SOC_SINGLE_EXT("SLIM_8_TX_MMode2",
  8622. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8623. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8624. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode2",
  8625. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8626. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8627. };
  8628. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  8629. SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
  8630. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8631. msm_routing_put_voice_mixer),
  8632. SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
  8633. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8634. msm_routing_put_voice_mixer),
  8635. SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8636. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8637. msm_routing_put_voice_mixer),
  8638. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8639. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8640. msm_routing_put_voice_mixer),
  8641. SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
  8642. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8643. msm_routing_put_voice_mixer),
  8644. SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
  8645. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8646. msm_routing_put_voice_mixer),
  8647. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8648. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8649. msm_routing_put_voice_mixer),
  8650. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8651. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8652. msm_routing_put_voice_mixer),
  8653. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8654. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8655. msm_routing_put_voice_mixer),
  8656. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8657. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8658. msm_routing_put_voice_mixer),
  8659. SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8660. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8661. msm_routing_put_voice_mixer),
  8662. SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8663. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8664. msm_routing_put_voice_mixer),
  8665. SOC_SINGLE_EXT("INT3_MI2S_TX_Voip", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8666. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8667. msm_routing_put_voice_mixer),
  8668. SOC_SINGLE_EXT("SLIM_7_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8669. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8670. msm_routing_put_voice_mixer),
  8671. SOC_SINGLE_EXT("SLIM_8_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8672. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8673. msm_routing_put_voice_mixer),
  8674. SOC_SINGLE_EXT("USB_AUDIO_TX_Voip", MSM_BACKEND_DAI_USB_TX,
  8675. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8676. msm_routing_put_voice_mixer),
  8677. };
  8678. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  8679. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8680. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8681. msm_routing_put_voice_stub_mixer),
  8682. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8683. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8684. msm_routing_put_voice_stub_mixer),
  8685. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8686. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8687. msm_routing_put_voice_stub_mixer),
  8688. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8689. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8690. msm_routing_put_voice_stub_mixer),
  8691. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  8692. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8693. msm_routing_put_voice_stub_mixer),
  8694. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8695. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8696. msm_routing_put_voice_stub_mixer),
  8697. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8698. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8699. msm_routing_put_voice_stub_mixer),
  8700. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8701. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8702. msm_routing_put_voice_stub_mixer),
  8703. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8704. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8705. msm_routing_put_voice_stub_mixer),
  8706. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8707. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8708. msm_routing_put_voice_stub_mixer),
  8709. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8710. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8711. msm_routing_put_voice_stub_mixer),
  8712. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8713. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8714. msm_routing_put_voice_stub_mixer),
  8715. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8716. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8717. msm_routing_put_voice_stub_mixer),
  8718. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8719. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8720. msm_routing_put_voice_stub_mixer),
  8721. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8722. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8723. msm_routing_put_voice_stub_mixer),
  8724. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8725. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8726. msm_routing_put_voice_stub_mixer),
  8727. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8728. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8729. msm_routing_put_voice_stub_mixer),
  8730. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8731. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8732. msm_routing_put_voice_stub_mixer),
  8733. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8734. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8735. msm_routing_put_voice_stub_mixer),
  8736. };
  8737. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  8738. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8739. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8740. msm_routing_put_voice_stub_mixer),
  8741. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8742. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8743. msm_routing_put_voice_stub_mixer),
  8744. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8745. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8746. msm_routing_put_voice_stub_mixer),
  8747. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8748. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8749. msm_routing_put_voice_stub_mixer),
  8750. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8751. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8752. msm_routing_put_voice_stub_mixer),
  8753. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8754. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8755. msm_routing_put_voice_stub_mixer),
  8756. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8757. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8758. msm_routing_put_voice_stub_mixer),
  8759. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8760. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8761. msm_routing_put_voice_stub_mixer),
  8762. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8763. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8764. msm_routing_put_voice_stub_mixer),
  8765. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8766. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8767. msm_routing_put_voice_stub_mixer),
  8768. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8769. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8770. msm_routing_put_voice_stub_mixer),
  8771. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8772. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8773. msm_routing_put_voice_stub_mixer),
  8774. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8775. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8776. msm_routing_put_voice_stub_mixer),
  8777. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8778. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8779. msm_routing_put_voice_stub_mixer),
  8780. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8781. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8782. msm_routing_put_voice_stub_mixer),
  8783. };
  8784. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  8785. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8786. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8787. msm_routing_put_voice_stub_mixer),
  8788. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8789. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8790. msm_routing_put_voice_stub_mixer),
  8791. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8792. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8793. msm_routing_put_voice_stub_mixer),
  8794. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8795. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8796. msm_routing_put_voice_stub_mixer),
  8797. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8798. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8799. msm_routing_put_voice_stub_mixer),
  8800. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8801. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8802. msm_routing_put_voice_stub_mixer),
  8803. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8804. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8805. msm_routing_put_voice_stub_mixer),
  8806. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8807. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8808. msm_routing_put_voice_stub_mixer),
  8809. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8810. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8811. msm_routing_put_voice_stub_mixer),
  8812. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8813. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8814. msm_routing_put_voice_stub_mixer),
  8815. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8816. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8817. msm_routing_put_voice_stub_mixer),
  8818. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8819. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8820. msm_routing_put_voice_stub_mixer),
  8821. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8822. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8823. msm_routing_put_voice_stub_mixer),
  8824. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8825. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8826. msm_routing_put_voice_stub_mixer),
  8827. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8828. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8829. msm_routing_put_voice_stub_mixer),
  8830. };
  8831. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  8832. SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
  8833. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8834. msm_routing_put_voice_mixer),
  8835. SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8836. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8837. msm_routing_put_voice_mixer),
  8838. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
  8839. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
  8840. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8841. SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
  8842. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8843. msm_routing_put_voice_mixer),
  8844. SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
  8845. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8846. msm_routing_put_voice_mixer),
  8847. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8848. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8849. msm_routing_put_voice_mixer),
  8850. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8851. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8852. msm_routing_put_voice_mixer),
  8853. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8854. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8855. msm_routing_put_voice_mixer),
  8856. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8857. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8858. msm_routing_put_voice_mixer),
  8859. SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
  8860. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8861. msm_routing_put_voice_mixer),
  8862. SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8863. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8864. msm_routing_put_voice_mixer),
  8865. SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8866. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8867. msm_routing_put_voice_mixer),
  8868. SOC_SINGLE_EXT("INT3_MI2S_TX_QCHAT", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8869. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8870. msm_routing_put_voice_mixer),
  8871. SOC_SINGLE_EXT("SLIM_7_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8872. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8873. msm_routing_put_voice_mixer),
  8874. SOC_SINGLE_EXT("SLIM_8_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8875. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8876. msm_routing_put_voice_mixer),
  8877. SOC_SINGLE_EXT("USB_AUDIO_TX_QCHAT", MSM_BACKEND_DAI_USB_TX,
  8878. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8879. msm_routing_put_voice_mixer),
  8880. };
  8881. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  8882. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8883. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8884. msm_routing_put_port_mixer),
  8885. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8886. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8887. msm_routing_put_port_mixer),
  8888. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8889. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8890. msm_routing_put_port_mixer),
  8891. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8892. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8893. msm_routing_put_port_mixer),
  8894. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8895. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8896. msm_routing_put_port_mixer),
  8897. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8898. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8899. msm_routing_put_port_mixer),
  8900. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8901. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8902. msm_routing_put_port_mixer),
  8903. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8904. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8905. msm_routing_put_port_mixer),
  8906. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8907. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8908. msm_routing_put_port_mixer),
  8909. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8910. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8911. msm_routing_put_port_mixer),
  8912. };
  8913. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  8914. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8915. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8916. msm_routing_put_port_mixer),
  8917. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8918. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8919. msm_routing_put_port_mixer),
  8920. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8921. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8922. msm_routing_put_port_mixer),
  8923. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8924. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8925. msm_routing_put_port_mixer),
  8926. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8927. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8928. msm_routing_put_port_mixer),
  8929. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8930. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8931. msm_routing_put_port_mixer),
  8932. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8933. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8934. msm_routing_put_port_mixer),
  8935. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8936. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8937. msm_routing_put_port_mixer),
  8938. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8939. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8940. msm_routing_put_port_mixer),
  8941. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8942. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8943. msm_routing_put_port_mixer),
  8944. };
  8945. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  8946. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8947. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8948. msm_routing_put_port_mixer),
  8949. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8950. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8951. msm_routing_put_port_mixer),
  8952. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8953. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8954. msm_routing_put_port_mixer),
  8955. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8956. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8957. msm_routing_put_port_mixer),
  8958. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8959. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8960. msm_routing_put_port_mixer),
  8961. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8962. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8963. msm_routing_put_port_mixer),
  8964. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8965. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8966. msm_routing_put_port_mixer),
  8967. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8968. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8969. msm_routing_put_port_mixer),
  8970. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8971. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8972. msm_routing_put_port_mixer),
  8973. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8974. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8975. msm_routing_put_port_mixer),
  8976. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8977. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8978. msm_routing_put_port_mixer),
  8979. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8980. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8981. msm_routing_put_port_mixer),
  8982. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8983. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8984. msm_routing_put_port_mixer),
  8985. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8986. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8987. msm_routing_put_port_mixer),
  8988. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8989. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8990. msm_routing_put_port_mixer),
  8991. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8992. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8993. msm_routing_put_port_mixer),
  8994. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8995. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8996. msm_routing_put_port_mixer),
  8997. SOC_SINGLE_EXT("PRI_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8998. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8999. msm_routing_put_port_mixer),
  9000. SOC_SINGLE_EXT("SEC_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9001. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  9002. msm_routing_put_port_mixer),
  9003. SOC_SINGLE_EXT("TERT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9004. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  9005. msm_routing_put_port_mixer),
  9006. SOC_SINGLE_EXT("QUAT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9007. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  9008. msm_routing_put_port_mixer),
  9009. SOC_SINGLE_EXT("QUIN_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9010. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  9011. msm_routing_put_port_mixer),
  9012. };
  9013. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  9014. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  9015. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9016. msm_routing_put_port_mixer),
  9017. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  9018. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9019. msm_routing_put_port_mixer),
  9020. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  9021. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  9022. msm_routing_put_port_mixer),
  9023. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  9024. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9025. msm_routing_put_port_mixer),
  9026. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
  9027. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  9028. msm_routing_put_port_mixer),
  9029. };
  9030. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  9031. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9032. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9033. msm_routing_put_port_mixer),
  9034. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9035. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9036. msm_routing_put_port_mixer),
  9037. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9038. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9039. msm_routing_put_port_mixer),
  9040. };
  9041. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  9042. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9043. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9044. msm_routing_put_port_mixer),
  9045. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9046. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9047. msm_routing_put_port_mixer),
  9048. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9049. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9050. msm_routing_put_port_mixer),
  9051. };
  9052. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  9053. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9054. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9055. msm_routing_put_port_mixer),
  9056. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9057. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9058. msm_routing_put_port_mixer),
  9059. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9060. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9061. msm_routing_put_port_mixer),
  9062. };
  9063. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  9064. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9065. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9066. msm_routing_put_port_mixer),
  9067. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9068. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9069. msm_routing_put_port_mixer),
  9070. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9071. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9072. msm_routing_put_port_mixer),
  9073. };
  9074. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  9075. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  9076. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  9077. msm_routing_put_port_mixer),
  9078. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  9079. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  9080. msm_routing_put_port_mixer),
  9081. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  9082. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9083. msm_routing_put_port_mixer),
  9084. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  9085. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9086. msm_routing_put_port_mixer),
  9087. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  9088. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9089. msm_routing_put_port_mixer),
  9090. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  9091. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9092. msm_routing_put_port_mixer),
  9093. };
  9094. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  9095. SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  9096. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  9097. msm_routing_put_port_mixer),
  9098. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  9099. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9100. msm_routing_put_port_mixer),
  9101. SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  9102. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  9103. msm_routing_put_port_mixer),
  9104. SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  9105. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  9106. msm_routing_put_port_mixer),
  9107. SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  9108. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  9109. msm_routing_put_port_mixer),
  9110. };
  9111. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  9112. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9113. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  9114. msm_routing_put_port_mixer),
  9115. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9116. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9117. msm_routing_put_port_mixer),
  9118. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9119. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  9120. msm_routing_put_port_mixer),
  9121. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9122. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  9123. msm_routing_put_port_mixer),
  9124. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9125. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  9126. msm_routing_put_port_mixer),
  9127. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9128. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9129. msm_routing_put_port_mixer),
  9130. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9131. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9132. msm_routing_put_port_mixer),
  9133. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9134. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9135. msm_routing_put_port_mixer),
  9136. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9137. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9138. msm_routing_put_port_mixer),
  9139. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9140. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9141. msm_routing_put_port_mixer),
  9142. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9143. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9144. msm_routing_put_port_mixer),
  9145. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9146. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  9147. msm_routing_put_port_mixer),
  9148. };
  9149. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  9150. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9151. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  9152. msm_routing_put_port_mixer),
  9153. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9154. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9155. msm_routing_put_port_mixer),
  9156. };
  9157. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  9158. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  9159. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  9160. msm_routing_put_port_mixer),
  9161. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  9162. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  9163. msm_routing_put_port_mixer),
  9164. };
  9165. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  9166. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
  9167. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9168. msm_routing_put_port_mixer),
  9169. };
  9170. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  9171. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9172. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9173. msm_routing_put_port_mixer),
  9174. };
  9175. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  9176. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
  9177. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9178. msm_routing_put_port_mixer),
  9179. };
  9180. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  9181. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
  9182. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  9183. msm_routing_put_port_mixer),
  9184. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
  9185. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9186. msm_routing_put_port_mixer),
  9187. };
  9188. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  9189. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  9190. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9191. msm_routing_put_port_mixer),
  9192. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  9193. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9194. msm_routing_put_port_mixer),
  9195. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  9196. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  9197. msm_routing_put_port_mixer),
  9198. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  9199. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9200. msm_routing_put_port_mixer),
  9201. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  9202. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  9203. msm_routing_put_port_mixer),
  9204. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  9205. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9206. msm_routing_put_port_mixer),
  9207. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  9208. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9209. msm_routing_put_port_mixer),
  9210. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  9211. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9212. msm_routing_put_port_mixer),
  9213. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  9214. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  9215. msm_routing_put_port_mixer),
  9216. };
  9217. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  9218. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_RX,
  9219. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  9220. msm_routing_put_port_mixer),
  9221. };
  9222. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  9223. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9224. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9225. msm_routing_put_port_mixer),
  9226. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9227. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9228. msm_routing_put_port_mixer),
  9229. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  9231. msm_routing_put_port_mixer),
  9232. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9233. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  9234. msm_routing_put_port_mixer),
  9235. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9236. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9237. msm_routing_put_port_mixer),
  9238. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9239. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9240. msm_routing_put_port_mixer),
  9241. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9242. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9243. msm_routing_put_port_mixer),
  9244. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9245. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9246. msm_routing_put_port_mixer),
  9247. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  9248. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  9249. msm_routing_put_port_mixer),
  9250. };
  9251. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  9252. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9253. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9254. msm_routing_put_port_mixer),
  9255. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9256. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9257. msm_routing_put_port_mixer),
  9258. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9259. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  9260. msm_routing_put_port_mixer),
  9261. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9262. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9263. msm_routing_put_port_mixer),
  9264. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9265. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9266. msm_routing_put_port_mixer),
  9267. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9268. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  9269. msm_routing_put_port_mixer),
  9270. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  9271. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  9272. msm_routing_put_port_mixer),
  9273. };
  9274. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  9275. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9276. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9277. msm_routing_get_port_mixer,
  9278. msm_routing_put_port_mixer),
  9279. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9280. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9281. msm_routing_get_port_mixer,
  9282. msm_routing_put_port_mixer),
  9283. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9284. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9285. msm_routing_get_port_mixer,
  9286. msm_routing_put_port_mixer),
  9287. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9288. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9289. msm_routing_get_port_mixer,
  9290. msm_routing_put_port_mixer),
  9291. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9292. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9293. msm_routing_get_port_mixer,
  9294. msm_routing_put_port_mixer),
  9295. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9296. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9297. msm_routing_get_port_mixer,
  9298. msm_routing_put_port_mixer),
  9299. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9300. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9301. msm_routing_get_port_mixer,
  9302. msm_routing_put_port_mixer),
  9303. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9304. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9305. msm_routing_get_port_mixer,
  9306. msm_routing_put_port_mixer),
  9307. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9308. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9309. msm_routing_get_port_mixer,
  9310. msm_routing_put_port_mixer),
  9311. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9312. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9313. msm_routing_get_port_mixer,
  9314. msm_routing_put_port_mixer),
  9315. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9316. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9317. msm_routing_get_port_mixer,
  9318. msm_routing_put_port_mixer),
  9319. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9320. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9321. msm_routing_get_port_mixer,
  9322. msm_routing_put_port_mixer),
  9323. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9324. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9325. msm_routing_get_port_mixer,
  9326. msm_routing_put_port_mixer),
  9327. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9328. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9329. msm_routing_get_port_mixer,
  9330. msm_routing_put_port_mixer),
  9331. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9332. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9333. msm_routing_get_port_mixer,
  9334. msm_routing_put_port_mixer),
  9335. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9336. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9337. msm_routing_get_port_mixer,
  9338. msm_routing_put_port_mixer),
  9339. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9340. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9341. msm_routing_get_port_mixer,
  9342. msm_routing_put_port_mixer),
  9343. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9344. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9345. msm_routing_get_port_mixer,
  9346. msm_routing_put_port_mixer),
  9347. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9348. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9349. msm_routing_get_port_mixer,
  9350. msm_routing_put_port_mixer),
  9351. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9352. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9353. msm_routing_get_port_mixer,
  9354. msm_routing_put_port_mixer),
  9355. };
  9356. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  9357. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9358. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9359. msm_routing_get_port_mixer,
  9360. msm_routing_put_port_mixer),
  9361. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9362. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9363. msm_routing_get_port_mixer,
  9364. msm_routing_put_port_mixer),
  9365. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9366. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9367. msm_routing_get_port_mixer,
  9368. msm_routing_put_port_mixer),
  9369. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9370. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9371. msm_routing_get_port_mixer,
  9372. msm_routing_put_port_mixer),
  9373. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9374. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9375. msm_routing_get_port_mixer,
  9376. msm_routing_put_port_mixer),
  9377. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9378. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9379. msm_routing_get_port_mixer,
  9380. msm_routing_put_port_mixer),
  9381. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9382. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9383. msm_routing_get_port_mixer,
  9384. msm_routing_put_port_mixer),
  9385. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9386. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9387. msm_routing_get_port_mixer,
  9388. msm_routing_put_port_mixer),
  9389. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9390. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9391. msm_routing_get_port_mixer,
  9392. msm_routing_put_port_mixer),
  9393. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9394. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9395. msm_routing_get_port_mixer,
  9396. msm_routing_put_port_mixer),
  9397. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9398. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9399. msm_routing_get_port_mixer,
  9400. msm_routing_put_port_mixer),
  9401. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9402. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9403. msm_routing_get_port_mixer,
  9404. msm_routing_put_port_mixer),
  9405. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9406. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9407. msm_routing_get_port_mixer,
  9408. msm_routing_put_port_mixer),
  9409. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9410. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9411. msm_routing_get_port_mixer,
  9412. msm_routing_put_port_mixer),
  9413. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9414. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9415. msm_routing_get_port_mixer,
  9416. msm_routing_put_port_mixer),
  9417. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9418. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9419. msm_routing_get_port_mixer,
  9420. msm_routing_put_port_mixer),
  9421. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9422. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9423. msm_routing_get_port_mixer,
  9424. msm_routing_put_port_mixer),
  9425. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9426. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9427. msm_routing_get_port_mixer,
  9428. msm_routing_put_port_mixer),
  9429. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9430. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9431. msm_routing_get_port_mixer,
  9432. msm_routing_put_port_mixer),
  9433. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9434. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9435. msm_routing_get_port_mixer,
  9436. msm_routing_put_port_mixer),
  9437. };
  9438. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  9439. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9440. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9441. msm_routing_get_port_mixer,
  9442. msm_routing_put_port_mixer),
  9443. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9444. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9445. msm_routing_get_port_mixer,
  9446. msm_routing_put_port_mixer),
  9447. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9448. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9449. msm_routing_get_port_mixer,
  9450. msm_routing_put_port_mixer),
  9451. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9452. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9453. msm_routing_get_port_mixer,
  9454. msm_routing_put_port_mixer),
  9455. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9456. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9457. msm_routing_get_port_mixer,
  9458. msm_routing_put_port_mixer),
  9459. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9460. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9461. msm_routing_get_port_mixer,
  9462. msm_routing_put_port_mixer),
  9463. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9464. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9465. msm_routing_get_port_mixer,
  9466. msm_routing_put_port_mixer),
  9467. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9468. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9469. msm_routing_get_port_mixer,
  9470. msm_routing_put_port_mixer),
  9471. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9472. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9473. msm_routing_get_port_mixer,
  9474. msm_routing_put_port_mixer),
  9475. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9476. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9477. msm_routing_get_port_mixer,
  9478. msm_routing_put_port_mixer),
  9479. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9480. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9481. msm_routing_get_port_mixer,
  9482. msm_routing_put_port_mixer),
  9483. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9484. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9485. msm_routing_get_port_mixer,
  9486. msm_routing_put_port_mixer),
  9487. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9488. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9489. msm_routing_get_port_mixer,
  9490. msm_routing_put_port_mixer),
  9491. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9492. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9493. msm_routing_get_port_mixer,
  9494. msm_routing_put_port_mixer),
  9495. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9496. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9497. msm_routing_get_port_mixer,
  9498. msm_routing_put_port_mixer),
  9499. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9500. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9501. msm_routing_get_port_mixer,
  9502. msm_routing_put_port_mixer),
  9503. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9504. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9505. msm_routing_get_port_mixer,
  9506. msm_routing_put_port_mixer),
  9507. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9508. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9509. msm_routing_get_port_mixer,
  9510. msm_routing_put_port_mixer),
  9511. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9512. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9513. msm_routing_get_port_mixer,
  9514. msm_routing_put_port_mixer),
  9515. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9516. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9517. msm_routing_get_port_mixer,
  9518. msm_routing_put_port_mixer),
  9519. };
  9520. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  9521. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9522. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9523. msm_routing_get_port_mixer,
  9524. msm_routing_put_port_mixer),
  9525. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9526. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9527. msm_routing_get_port_mixer,
  9528. msm_routing_put_port_mixer),
  9529. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9530. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9531. msm_routing_get_port_mixer,
  9532. msm_routing_put_port_mixer),
  9533. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9534. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9535. msm_routing_get_port_mixer,
  9536. msm_routing_put_port_mixer),
  9537. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9538. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9539. msm_routing_get_port_mixer,
  9540. msm_routing_put_port_mixer),
  9541. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9542. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9543. msm_routing_get_port_mixer,
  9544. msm_routing_put_port_mixer),
  9545. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9546. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9547. msm_routing_get_port_mixer,
  9548. msm_routing_put_port_mixer),
  9549. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9550. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9551. msm_routing_get_port_mixer,
  9552. msm_routing_put_port_mixer),
  9553. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9554. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  9555. msm_routing_get_port_mixer,
  9556. msm_routing_put_port_mixer),
  9557. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9558. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  9559. msm_routing_get_port_mixer,
  9560. msm_routing_put_port_mixer),
  9561. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9562. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  9563. msm_routing_get_port_mixer,
  9564. msm_routing_put_port_mixer),
  9565. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9566. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  9567. msm_routing_get_port_mixer,
  9568. msm_routing_put_port_mixer),
  9569. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9570. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9571. msm_routing_get_port_mixer,
  9572. msm_routing_put_port_mixer),
  9573. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9574. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9575. msm_routing_get_port_mixer,
  9576. msm_routing_put_port_mixer),
  9577. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9578. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9579. msm_routing_get_port_mixer,
  9580. msm_routing_put_port_mixer),
  9581. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9582. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9583. msm_routing_get_port_mixer,
  9584. msm_routing_put_port_mixer),
  9585. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9586. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9587. msm_routing_get_port_mixer,
  9588. msm_routing_put_port_mixer),
  9589. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9590. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9591. msm_routing_get_port_mixer,
  9592. msm_routing_put_port_mixer),
  9593. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9594. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9595. msm_routing_get_port_mixer,
  9596. msm_routing_put_port_mixer),
  9597. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9598. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9599. msm_routing_get_port_mixer,
  9600. msm_routing_put_port_mixer),
  9601. };
  9602. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  9603. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9604. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9605. msm_routing_get_port_mixer,
  9606. msm_routing_put_port_mixer),
  9607. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9608. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9609. msm_routing_get_port_mixer,
  9610. msm_routing_put_port_mixer),
  9611. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9612. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9613. msm_routing_get_port_mixer,
  9614. msm_routing_put_port_mixer),
  9615. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9616. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9617. msm_routing_get_port_mixer,
  9618. msm_routing_put_port_mixer),
  9619. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9620. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9621. msm_routing_get_port_mixer,
  9622. msm_routing_put_port_mixer),
  9623. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9624. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9625. msm_routing_get_port_mixer,
  9626. msm_routing_put_port_mixer),
  9627. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9628. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9629. msm_routing_get_port_mixer,
  9630. msm_routing_put_port_mixer),
  9631. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9632. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9633. msm_routing_get_port_mixer,
  9634. msm_routing_put_port_mixer),
  9635. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9636. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9637. msm_routing_get_port_mixer,
  9638. msm_routing_put_port_mixer),
  9639. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9640. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9641. msm_routing_get_port_mixer,
  9642. msm_routing_put_port_mixer),
  9643. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9644. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9645. msm_routing_get_port_mixer,
  9646. msm_routing_put_port_mixer),
  9647. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9648. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9649. msm_routing_get_port_mixer,
  9650. msm_routing_put_port_mixer),
  9651. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9652. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9653. msm_routing_get_port_mixer,
  9654. msm_routing_put_port_mixer),
  9655. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9656. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9657. msm_routing_get_port_mixer,
  9658. msm_routing_put_port_mixer),
  9659. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9660. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9661. msm_routing_get_port_mixer,
  9662. msm_routing_put_port_mixer),
  9663. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9664. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9665. msm_routing_get_port_mixer,
  9666. msm_routing_put_port_mixer),
  9667. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9668. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9669. msm_routing_get_port_mixer,
  9670. msm_routing_put_port_mixer),
  9671. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9672. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9673. msm_routing_get_port_mixer,
  9674. msm_routing_put_port_mixer),
  9675. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9676. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9677. msm_routing_get_port_mixer,
  9678. msm_routing_put_port_mixer),
  9679. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9680. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9681. msm_routing_get_port_mixer,
  9682. msm_routing_put_port_mixer),
  9683. };
  9684. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  9685. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9686. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9687. msm_routing_get_port_mixer,
  9688. msm_routing_put_port_mixer),
  9689. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9690. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9691. msm_routing_get_port_mixer,
  9692. msm_routing_put_port_mixer),
  9693. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9694. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9695. msm_routing_get_port_mixer,
  9696. msm_routing_put_port_mixer),
  9697. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9698. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9699. msm_routing_get_port_mixer,
  9700. msm_routing_put_port_mixer),
  9701. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9702. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9703. msm_routing_get_port_mixer,
  9704. msm_routing_put_port_mixer),
  9705. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9706. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9707. msm_routing_get_port_mixer,
  9708. msm_routing_put_port_mixer),
  9709. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9710. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9711. msm_routing_get_port_mixer,
  9712. msm_routing_put_port_mixer),
  9713. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9714. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9715. msm_routing_get_port_mixer,
  9716. msm_routing_put_port_mixer),
  9717. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9718. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9719. msm_routing_get_port_mixer,
  9720. msm_routing_put_port_mixer),
  9721. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9722. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9723. msm_routing_get_port_mixer,
  9724. msm_routing_put_port_mixer),
  9725. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9726. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9727. msm_routing_get_port_mixer,
  9728. msm_routing_put_port_mixer),
  9729. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9730. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9731. msm_routing_get_port_mixer,
  9732. msm_routing_put_port_mixer),
  9733. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9734. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9735. msm_routing_get_port_mixer,
  9736. msm_routing_put_port_mixer),
  9737. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9738. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9739. msm_routing_get_port_mixer,
  9740. msm_routing_put_port_mixer),
  9741. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9742. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9743. msm_routing_get_port_mixer,
  9744. msm_routing_put_port_mixer),
  9745. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9746. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9747. msm_routing_get_port_mixer,
  9748. msm_routing_put_port_mixer),
  9749. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9750. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9751. msm_routing_get_port_mixer,
  9752. msm_routing_put_port_mixer),
  9753. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9754. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9755. msm_routing_get_port_mixer,
  9756. msm_routing_put_port_mixer),
  9757. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9758. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9759. msm_routing_get_port_mixer,
  9760. msm_routing_put_port_mixer),
  9761. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9762. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9763. msm_routing_get_port_mixer,
  9764. msm_routing_put_port_mixer),
  9765. };
  9766. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  9767. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9768. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9769. msm_routing_get_port_mixer,
  9770. msm_routing_put_port_mixer),
  9771. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9772. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9773. msm_routing_get_port_mixer,
  9774. msm_routing_put_port_mixer),
  9775. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9776. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9777. msm_routing_get_port_mixer,
  9778. msm_routing_put_port_mixer),
  9779. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9780. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9781. msm_routing_get_port_mixer,
  9782. msm_routing_put_port_mixer),
  9783. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9784. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9785. msm_routing_get_port_mixer,
  9786. msm_routing_put_port_mixer),
  9787. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9788. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9789. msm_routing_get_port_mixer,
  9790. msm_routing_put_port_mixer),
  9791. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9792. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9793. msm_routing_get_port_mixer,
  9794. msm_routing_put_port_mixer),
  9795. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9796. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9797. msm_routing_get_port_mixer,
  9798. msm_routing_put_port_mixer),
  9799. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9800. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9801. msm_routing_get_port_mixer,
  9802. msm_routing_put_port_mixer),
  9803. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9804. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9805. msm_routing_get_port_mixer,
  9806. msm_routing_put_port_mixer),
  9807. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9808. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9809. msm_routing_get_port_mixer,
  9810. msm_routing_put_port_mixer),
  9811. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9812. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9813. msm_routing_get_port_mixer,
  9814. msm_routing_put_port_mixer),
  9815. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9816. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9817. msm_routing_get_port_mixer,
  9818. msm_routing_put_port_mixer),
  9819. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9820. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9821. msm_routing_get_port_mixer,
  9822. msm_routing_put_port_mixer),
  9823. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9824. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9825. msm_routing_get_port_mixer,
  9826. msm_routing_put_port_mixer),
  9827. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9828. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9829. msm_routing_get_port_mixer,
  9830. msm_routing_put_port_mixer),
  9831. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9832. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9833. msm_routing_get_port_mixer,
  9834. msm_routing_put_port_mixer),
  9835. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9836. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9837. msm_routing_get_port_mixer,
  9838. msm_routing_put_port_mixer),
  9839. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9840. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9841. msm_routing_get_port_mixer,
  9842. msm_routing_put_port_mixer),
  9843. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9844. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9845. msm_routing_get_port_mixer,
  9846. msm_routing_put_port_mixer),
  9847. };
  9848. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  9849. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9850. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9851. msm_routing_get_port_mixer,
  9852. msm_routing_put_port_mixer),
  9853. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9854. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9855. msm_routing_get_port_mixer,
  9856. msm_routing_put_port_mixer),
  9857. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9858. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9859. msm_routing_get_port_mixer,
  9860. msm_routing_put_port_mixer),
  9861. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9862. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9863. msm_routing_get_port_mixer,
  9864. msm_routing_put_port_mixer),
  9865. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9866. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9867. msm_routing_get_port_mixer,
  9868. msm_routing_put_port_mixer),
  9869. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9870. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9871. msm_routing_get_port_mixer,
  9872. msm_routing_put_port_mixer),
  9873. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9874. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9875. msm_routing_get_port_mixer,
  9876. msm_routing_put_port_mixer),
  9877. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9878. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9879. msm_routing_get_port_mixer,
  9880. msm_routing_put_port_mixer),
  9881. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9882. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9883. msm_routing_get_port_mixer,
  9884. msm_routing_put_port_mixer),
  9885. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9886. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9887. msm_routing_get_port_mixer,
  9888. msm_routing_put_port_mixer),
  9889. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9890. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9891. msm_routing_get_port_mixer,
  9892. msm_routing_put_port_mixer),
  9893. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9894. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9895. msm_routing_get_port_mixer,
  9896. msm_routing_put_port_mixer),
  9897. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9898. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9899. msm_routing_get_port_mixer,
  9900. msm_routing_put_port_mixer),
  9901. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9902. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9903. msm_routing_get_port_mixer,
  9904. msm_routing_put_port_mixer),
  9905. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9906. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9907. msm_routing_get_port_mixer,
  9908. msm_routing_put_port_mixer),
  9909. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9910. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9911. msm_routing_get_port_mixer,
  9912. msm_routing_put_port_mixer),
  9913. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9914. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9915. msm_routing_get_port_mixer,
  9916. msm_routing_put_port_mixer),
  9917. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9918. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9919. msm_routing_get_port_mixer,
  9920. msm_routing_put_port_mixer),
  9921. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9922. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9923. msm_routing_get_port_mixer,
  9924. msm_routing_put_port_mixer),
  9925. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9926. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9927. msm_routing_get_port_mixer,
  9928. msm_routing_put_port_mixer),
  9929. };
  9930. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  9931. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9932. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9933. msm_routing_get_port_mixer,
  9934. msm_routing_put_port_mixer),
  9935. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9936. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9937. msm_routing_get_port_mixer,
  9938. msm_routing_put_port_mixer),
  9939. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9940. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9941. msm_routing_get_port_mixer,
  9942. msm_routing_put_port_mixer),
  9943. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9944. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9945. msm_routing_get_port_mixer,
  9946. msm_routing_put_port_mixer),
  9947. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9948. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9949. msm_routing_get_port_mixer,
  9950. msm_routing_put_port_mixer),
  9951. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9952. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9953. msm_routing_get_port_mixer,
  9954. msm_routing_put_port_mixer),
  9955. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9956. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9957. msm_routing_get_port_mixer,
  9958. msm_routing_put_port_mixer),
  9959. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9960. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9961. msm_routing_get_port_mixer,
  9962. msm_routing_put_port_mixer),
  9963. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9964. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9965. msm_routing_get_port_mixer,
  9966. msm_routing_put_port_mixer),
  9967. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9968. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9969. msm_routing_get_port_mixer,
  9970. msm_routing_put_port_mixer),
  9971. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9972. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9973. msm_routing_get_port_mixer,
  9974. msm_routing_put_port_mixer),
  9975. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9976. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9977. msm_routing_get_port_mixer,
  9978. msm_routing_put_port_mixer),
  9979. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9980. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9981. msm_routing_get_port_mixer,
  9982. msm_routing_put_port_mixer),
  9983. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9984. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9985. msm_routing_get_port_mixer,
  9986. msm_routing_put_port_mixer),
  9987. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9988. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9989. msm_routing_get_port_mixer,
  9990. msm_routing_put_port_mixer),
  9991. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9992. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9993. msm_routing_get_port_mixer,
  9994. msm_routing_put_port_mixer),
  9995. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9996. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9997. msm_routing_get_port_mixer,
  9998. msm_routing_put_port_mixer),
  9999. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10000. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10001. msm_routing_get_port_mixer,
  10002. msm_routing_put_port_mixer),
  10003. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10004. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10005. msm_routing_get_port_mixer,
  10006. msm_routing_put_port_mixer),
  10007. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10008. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10009. msm_routing_get_port_mixer,
  10010. msm_routing_put_port_mixer),
  10011. };
  10012. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  10013. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10014. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10015. msm_routing_get_port_mixer,
  10016. msm_routing_put_port_mixer),
  10017. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10018. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10019. msm_routing_get_port_mixer,
  10020. msm_routing_put_port_mixer),
  10021. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10022. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  10023. msm_routing_get_port_mixer,
  10024. msm_routing_put_port_mixer),
  10025. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10026. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10027. msm_routing_get_port_mixer,
  10028. msm_routing_put_port_mixer),
  10029. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10030. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10031. msm_routing_get_port_mixer,
  10032. msm_routing_put_port_mixer),
  10033. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10034. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10035. msm_routing_get_port_mixer,
  10036. msm_routing_put_port_mixer),
  10037. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10038. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10039. msm_routing_get_port_mixer,
  10040. msm_routing_put_port_mixer),
  10041. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10042. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10043. msm_routing_get_port_mixer,
  10044. msm_routing_put_port_mixer),
  10045. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10046. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10047. msm_routing_get_port_mixer,
  10048. msm_routing_put_port_mixer),
  10049. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10050. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10051. msm_routing_get_port_mixer,
  10052. msm_routing_put_port_mixer),
  10053. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10054. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10055. msm_routing_get_port_mixer,
  10056. msm_routing_put_port_mixer),
  10057. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10058. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10059. msm_routing_get_port_mixer,
  10060. msm_routing_put_port_mixer),
  10061. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10062. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10063. msm_routing_get_port_mixer,
  10064. msm_routing_put_port_mixer),
  10065. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10066. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10067. msm_routing_get_port_mixer,
  10068. msm_routing_put_port_mixer),
  10069. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10070. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10071. msm_routing_get_port_mixer,
  10072. msm_routing_put_port_mixer),
  10073. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10074. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10075. msm_routing_get_port_mixer,
  10076. msm_routing_put_port_mixer),
  10077. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10078. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10079. msm_routing_get_port_mixer,
  10080. msm_routing_put_port_mixer),
  10081. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10082. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10083. msm_routing_get_port_mixer,
  10084. msm_routing_put_port_mixer),
  10085. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10086. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10087. msm_routing_get_port_mixer,
  10088. msm_routing_put_port_mixer),
  10089. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10090. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10091. msm_routing_get_port_mixer,
  10092. msm_routing_put_port_mixer),
  10093. };
  10094. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  10095. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10096. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10097. msm_routing_get_port_mixer,
  10098. msm_routing_put_port_mixer),
  10099. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10100. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10101. msm_routing_get_port_mixer,
  10102. msm_routing_put_port_mixer),
  10103. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10104. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  10105. msm_routing_get_port_mixer,
  10106. msm_routing_put_port_mixer),
  10107. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10108. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10109. msm_routing_get_port_mixer,
  10110. msm_routing_put_port_mixer),
  10111. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10112. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10113. msm_routing_get_port_mixer,
  10114. msm_routing_put_port_mixer),
  10115. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10116. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10117. msm_routing_get_port_mixer,
  10118. msm_routing_put_port_mixer),
  10119. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10120. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10121. msm_routing_get_port_mixer,
  10122. msm_routing_put_port_mixer),
  10123. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10124. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10125. msm_routing_get_port_mixer,
  10126. msm_routing_put_port_mixer),
  10127. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10128. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10129. msm_routing_get_port_mixer,
  10130. msm_routing_put_port_mixer),
  10131. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10132. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10133. msm_routing_get_port_mixer,
  10134. msm_routing_put_port_mixer),
  10135. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10136. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10137. msm_routing_get_port_mixer,
  10138. msm_routing_put_port_mixer),
  10139. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10140. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10141. msm_routing_get_port_mixer,
  10142. msm_routing_put_port_mixer),
  10143. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10144. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10145. msm_routing_get_port_mixer,
  10146. msm_routing_put_port_mixer),
  10147. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10148. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10149. msm_routing_get_port_mixer,
  10150. msm_routing_put_port_mixer),
  10151. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10152. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10153. msm_routing_get_port_mixer,
  10154. msm_routing_put_port_mixer),
  10155. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10156. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10157. msm_routing_get_port_mixer,
  10158. msm_routing_put_port_mixer),
  10159. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10160. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10161. msm_routing_get_port_mixer,
  10162. msm_routing_put_port_mixer),
  10163. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10164. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10165. msm_routing_get_port_mixer,
  10166. msm_routing_put_port_mixer),
  10167. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10168. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10169. msm_routing_get_port_mixer,
  10170. msm_routing_put_port_mixer),
  10171. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10172. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10173. msm_routing_get_port_mixer,
  10174. msm_routing_put_port_mixer),
  10175. };
  10176. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  10177. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10178. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10179. msm_routing_get_port_mixer,
  10180. msm_routing_put_port_mixer),
  10181. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10182. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10183. msm_routing_get_port_mixer,
  10184. msm_routing_put_port_mixer),
  10185. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10186. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  10187. msm_routing_get_port_mixer,
  10188. msm_routing_put_port_mixer),
  10189. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10190. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10191. msm_routing_get_port_mixer,
  10192. msm_routing_put_port_mixer),
  10193. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10194. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10195. msm_routing_get_port_mixer,
  10196. msm_routing_put_port_mixer),
  10197. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10198. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10199. msm_routing_get_port_mixer,
  10200. msm_routing_put_port_mixer),
  10201. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10202. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10203. msm_routing_get_port_mixer,
  10204. msm_routing_put_port_mixer),
  10205. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10206. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10207. msm_routing_get_port_mixer,
  10208. msm_routing_put_port_mixer),
  10209. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10210. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10211. msm_routing_get_port_mixer,
  10212. msm_routing_put_port_mixer),
  10213. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10214. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10215. msm_routing_get_port_mixer,
  10216. msm_routing_put_port_mixer),
  10217. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10218. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10219. msm_routing_get_port_mixer,
  10220. msm_routing_put_port_mixer),
  10221. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10222. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10223. msm_routing_get_port_mixer,
  10224. msm_routing_put_port_mixer),
  10225. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10226. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10227. msm_routing_get_port_mixer,
  10228. msm_routing_put_port_mixer),
  10229. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10230. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10231. msm_routing_get_port_mixer,
  10232. msm_routing_put_port_mixer),
  10233. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10234. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10235. msm_routing_get_port_mixer,
  10236. msm_routing_put_port_mixer),
  10237. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10238. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10239. msm_routing_get_port_mixer,
  10240. msm_routing_put_port_mixer),
  10241. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10242. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10243. msm_routing_get_port_mixer,
  10244. msm_routing_put_port_mixer),
  10245. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10246. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10247. msm_routing_get_port_mixer,
  10248. msm_routing_put_port_mixer),
  10249. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10250. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10251. msm_routing_get_port_mixer,
  10252. msm_routing_put_port_mixer),
  10253. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10254. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10255. msm_routing_get_port_mixer,
  10256. msm_routing_put_port_mixer),
  10257. };
  10258. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  10259. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10260. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10261. msm_routing_get_port_mixer,
  10262. msm_routing_put_port_mixer),
  10263. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10264. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10265. msm_routing_get_port_mixer,
  10266. msm_routing_put_port_mixer),
  10267. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10268. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10269. msm_routing_get_port_mixer,
  10270. msm_routing_put_port_mixer),
  10271. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10272. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10273. msm_routing_get_port_mixer,
  10274. msm_routing_put_port_mixer),
  10275. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10276. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10277. msm_routing_get_port_mixer,
  10278. msm_routing_put_port_mixer),
  10279. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10280. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10281. msm_routing_get_port_mixer,
  10282. msm_routing_put_port_mixer),
  10283. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10284. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10285. msm_routing_get_port_mixer,
  10286. msm_routing_put_port_mixer),
  10287. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10288. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10289. msm_routing_get_port_mixer,
  10290. msm_routing_put_port_mixer),
  10291. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10292. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10293. msm_routing_get_port_mixer,
  10294. msm_routing_put_port_mixer),
  10295. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10296. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10297. msm_routing_get_port_mixer,
  10298. msm_routing_put_port_mixer),
  10299. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10300. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10301. msm_routing_get_port_mixer,
  10302. msm_routing_put_port_mixer),
  10303. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10304. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10305. msm_routing_get_port_mixer,
  10306. msm_routing_put_port_mixer),
  10307. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10308. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10309. msm_routing_get_port_mixer,
  10310. msm_routing_put_port_mixer),
  10311. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10312. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10313. msm_routing_get_port_mixer,
  10314. msm_routing_put_port_mixer),
  10315. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10316. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10317. msm_routing_get_port_mixer,
  10318. msm_routing_put_port_mixer),
  10319. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10320. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10321. msm_routing_get_port_mixer,
  10322. msm_routing_put_port_mixer),
  10323. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10324. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10325. msm_routing_get_port_mixer,
  10326. msm_routing_put_port_mixer),
  10327. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10328. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10329. msm_routing_get_port_mixer,
  10330. msm_routing_put_port_mixer),
  10331. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10332. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10333. msm_routing_get_port_mixer,
  10334. msm_routing_put_port_mixer),
  10335. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10336. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10337. msm_routing_get_port_mixer,
  10338. msm_routing_put_port_mixer),
  10339. };
  10340. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  10341. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10342. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10343. msm_routing_get_port_mixer,
  10344. msm_routing_put_port_mixer),
  10345. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10346. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10347. msm_routing_get_port_mixer,
  10348. msm_routing_put_port_mixer),
  10349. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10350. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10351. msm_routing_get_port_mixer,
  10352. msm_routing_put_port_mixer),
  10353. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10354. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10355. msm_routing_get_port_mixer,
  10356. msm_routing_put_port_mixer),
  10357. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10358. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10359. msm_routing_get_port_mixer,
  10360. msm_routing_put_port_mixer),
  10361. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10362. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10363. msm_routing_get_port_mixer,
  10364. msm_routing_put_port_mixer),
  10365. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10366. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10367. msm_routing_get_port_mixer,
  10368. msm_routing_put_port_mixer),
  10369. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10370. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10371. msm_routing_get_port_mixer,
  10372. msm_routing_put_port_mixer),
  10373. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10374. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10375. msm_routing_get_port_mixer,
  10376. msm_routing_put_port_mixer),
  10377. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10378. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10379. msm_routing_get_port_mixer,
  10380. msm_routing_put_port_mixer),
  10381. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10382. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10383. msm_routing_get_port_mixer,
  10384. msm_routing_put_port_mixer),
  10385. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10386. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10387. msm_routing_get_port_mixer,
  10388. msm_routing_put_port_mixer),
  10389. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10390. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10391. msm_routing_get_port_mixer,
  10392. msm_routing_put_port_mixer),
  10393. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10394. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10395. msm_routing_get_port_mixer,
  10396. msm_routing_put_port_mixer),
  10397. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10398. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10399. msm_routing_get_port_mixer,
  10400. msm_routing_put_port_mixer),
  10401. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10402. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10403. msm_routing_get_port_mixer,
  10404. msm_routing_put_port_mixer),
  10405. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10406. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10407. msm_routing_get_port_mixer,
  10408. msm_routing_put_port_mixer),
  10409. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10410. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10411. msm_routing_get_port_mixer,
  10412. msm_routing_put_port_mixer),
  10413. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10414. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10415. msm_routing_get_port_mixer,
  10416. msm_routing_put_port_mixer),
  10417. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10418. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10419. msm_routing_get_port_mixer,
  10420. msm_routing_put_port_mixer),
  10421. };
  10422. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  10423. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10424. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10425. msm_routing_get_port_mixer,
  10426. msm_routing_put_port_mixer),
  10427. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10428. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10429. msm_routing_get_port_mixer,
  10430. msm_routing_put_port_mixer),
  10431. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10432. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10433. msm_routing_get_port_mixer,
  10434. msm_routing_put_port_mixer),
  10435. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10436. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10437. msm_routing_get_port_mixer,
  10438. msm_routing_put_port_mixer),
  10439. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10440. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10441. msm_routing_get_port_mixer,
  10442. msm_routing_put_port_mixer),
  10443. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10444. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10445. msm_routing_get_port_mixer,
  10446. msm_routing_put_port_mixer),
  10447. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10448. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10449. msm_routing_get_port_mixer,
  10450. msm_routing_put_port_mixer),
  10451. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10452. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10453. msm_routing_get_port_mixer,
  10454. msm_routing_put_port_mixer),
  10455. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10456. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10457. msm_routing_get_port_mixer,
  10458. msm_routing_put_port_mixer),
  10459. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10460. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10461. msm_routing_get_port_mixer,
  10462. msm_routing_put_port_mixer),
  10463. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10464. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10465. msm_routing_get_port_mixer,
  10466. msm_routing_put_port_mixer),
  10467. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10468. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10469. msm_routing_get_port_mixer,
  10470. msm_routing_put_port_mixer),
  10471. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10472. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10473. msm_routing_get_port_mixer,
  10474. msm_routing_put_port_mixer),
  10475. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10476. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10477. msm_routing_get_port_mixer,
  10478. msm_routing_put_port_mixer),
  10479. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10480. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10481. msm_routing_get_port_mixer,
  10482. msm_routing_put_port_mixer),
  10483. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10484. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10485. msm_routing_get_port_mixer,
  10486. msm_routing_put_port_mixer),
  10487. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10488. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10489. msm_routing_get_port_mixer,
  10490. msm_routing_put_port_mixer),
  10491. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10492. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10493. msm_routing_get_port_mixer,
  10494. msm_routing_put_port_mixer),
  10495. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10496. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10497. msm_routing_get_port_mixer,
  10498. msm_routing_put_port_mixer),
  10499. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10500. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10501. msm_routing_get_port_mixer,
  10502. msm_routing_put_port_mixer),
  10503. };
  10504. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  10505. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10506. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10507. msm_routing_get_port_mixer,
  10508. msm_routing_put_port_mixer),
  10509. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10510. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10511. msm_routing_get_port_mixer,
  10512. msm_routing_put_port_mixer),
  10513. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10514. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10515. msm_routing_get_port_mixer,
  10516. msm_routing_put_port_mixer),
  10517. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10518. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10519. msm_routing_get_port_mixer,
  10520. msm_routing_put_port_mixer),
  10521. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10522. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10523. msm_routing_get_port_mixer,
  10524. msm_routing_put_port_mixer),
  10525. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10526. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10527. msm_routing_get_port_mixer,
  10528. msm_routing_put_port_mixer),
  10529. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10530. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10531. msm_routing_get_port_mixer,
  10532. msm_routing_put_port_mixer),
  10533. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10534. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10535. msm_routing_get_port_mixer,
  10536. msm_routing_put_port_mixer),
  10537. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10538. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10539. msm_routing_get_port_mixer,
  10540. msm_routing_put_port_mixer),
  10541. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10542. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10543. msm_routing_get_port_mixer,
  10544. msm_routing_put_port_mixer),
  10545. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10546. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10547. msm_routing_get_port_mixer,
  10548. msm_routing_put_port_mixer),
  10549. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10550. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10551. msm_routing_get_port_mixer,
  10552. msm_routing_put_port_mixer),
  10553. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10554. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10555. msm_routing_get_port_mixer,
  10556. msm_routing_put_port_mixer),
  10557. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10558. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10559. msm_routing_get_port_mixer,
  10560. msm_routing_put_port_mixer),
  10561. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10562. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10563. msm_routing_get_port_mixer,
  10564. msm_routing_put_port_mixer),
  10565. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10566. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10567. msm_routing_get_port_mixer,
  10568. msm_routing_put_port_mixer),
  10569. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10570. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10571. msm_routing_get_port_mixer,
  10572. msm_routing_put_port_mixer),
  10573. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10574. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10575. msm_routing_get_port_mixer,
  10576. msm_routing_put_port_mixer),
  10577. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10578. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10579. msm_routing_get_port_mixer,
  10580. msm_routing_put_port_mixer),
  10581. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10582. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10583. msm_routing_get_port_mixer,
  10584. msm_routing_put_port_mixer),
  10585. };
  10586. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  10587. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10588. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10589. msm_routing_get_port_mixer,
  10590. msm_routing_put_port_mixer),
  10591. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10592. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10593. msm_routing_get_port_mixer,
  10594. msm_routing_put_port_mixer),
  10595. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10596. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10597. msm_routing_get_port_mixer,
  10598. msm_routing_put_port_mixer),
  10599. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10600. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10601. msm_routing_get_port_mixer,
  10602. msm_routing_put_port_mixer),
  10603. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10604. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10605. msm_routing_get_port_mixer,
  10606. msm_routing_put_port_mixer),
  10607. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10608. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10609. msm_routing_get_port_mixer,
  10610. msm_routing_put_port_mixer),
  10611. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10612. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10613. msm_routing_get_port_mixer,
  10614. msm_routing_put_port_mixer),
  10615. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10616. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10617. msm_routing_get_port_mixer,
  10618. msm_routing_put_port_mixer),
  10619. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10620. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10621. msm_routing_get_port_mixer,
  10622. msm_routing_put_port_mixer),
  10623. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10624. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10625. msm_routing_get_port_mixer,
  10626. msm_routing_put_port_mixer),
  10627. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10628. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10629. msm_routing_get_port_mixer,
  10630. msm_routing_put_port_mixer),
  10631. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10632. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10633. msm_routing_get_port_mixer,
  10634. msm_routing_put_port_mixer),
  10635. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10636. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10637. msm_routing_get_port_mixer,
  10638. msm_routing_put_port_mixer),
  10639. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10640. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10641. msm_routing_get_port_mixer,
  10642. msm_routing_put_port_mixer),
  10643. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10644. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10645. msm_routing_get_port_mixer,
  10646. msm_routing_put_port_mixer),
  10647. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10648. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10649. msm_routing_get_port_mixer,
  10650. msm_routing_put_port_mixer),
  10651. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10652. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10653. msm_routing_get_port_mixer,
  10654. msm_routing_put_port_mixer),
  10655. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10656. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10657. msm_routing_get_port_mixer,
  10658. msm_routing_put_port_mixer),
  10659. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10660. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10661. msm_routing_get_port_mixer,
  10662. msm_routing_put_port_mixer),
  10663. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10664. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10665. msm_routing_get_port_mixer,
  10666. msm_routing_put_port_mixer),
  10667. };
  10668. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  10669. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10670. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10671. msm_routing_get_port_mixer,
  10672. msm_routing_put_port_mixer),
  10673. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10674. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10675. msm_routing_get_port_mixer,
  10676. msm_routing_put_port_mixer),
  10677. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10678. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10679. msm_routing_get_port_mixer,
  10680. msm_routing_put_port_mixer),
  10681. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10682. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10683. msm_routing_get_port_mixer,
  10684. msm_routing_put_port_mixer),
  10685. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10686. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10687. msm_routing_get_port_mixer,
  10688. msm_routing_put_port_mixer),
  10689. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10690. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10691. msm_routing_get_port_mixer,
  10692. msm_routing_put_port_mixer),
  10693. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10694. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10695. msm_routing_get_port_mixer,
  10696. msm_routing_put_port_mixer),
  10697. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10698. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10699. msm_routing_get_port_mixer,
  10700. msm_routing_put_port_mixer),
  10701. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10702. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10703. msm_routing_get_port_mixer,
  10704. msm_routing_put_port_mixer),
  10705. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10706. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10707. msm_routing_get_port_mixer,
  10708. msm_routing_put_port_mixer),
  10709. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10710. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10711. msm_routing_get_port_mixer,
  10712. msm_routing_put_port_mixer),
  10713. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10714. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10715. msm_routing_get_port_mixer,
  10716. msm_routing_put_port_mixer),
  10717. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10718. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10719. msm_routing_get_port_mixer,
  10720. msm_routing_put_port_mixer),
  10721. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10722. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10723. msm_routing_get_port_mixer,
  10724. msm_routing_put_port_mixer),
  10725. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10726. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10727. msm_routing_get_port_mixer,
  10728. msm_routing_put_port_mixer),
  10729. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10730. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10731. msm_routing_get_port_mixer,
  10732. msm_routing_put_port_mixer),
  10733. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10734. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10735. msm_routing_get_port_mixer,
  10736. msm_routing_put_port_mixer),
  10737. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10738. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10739. msm_routing_get_port_mixer,
  10740. msm_routing_put_port_mixer),
  10741. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10742. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10743. msm_routing_get_port_mixer,
  10744. msm_routing_put_port_mixer),
  10745. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10746. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10747. msm_routing_get_port_mixer,
  10748. msm_routing_put_port_mixer),
  10749. };
  10750. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  10751. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10752. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10753. msm_routing_get_port_mixer,
  10754. msm_routing_put_port_mixer),
  10755. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10756. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10757. msm_routing_get_port_mixer,
  10758. msm_routing_put_port_mixer),
  10759. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10760. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10761. msm_routing_get_port_mixer,
  10762. msm_routing_put_port_mixer),
  10763. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10764. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10765. msm_routing_get_port_mixer,
  10766. msm_routing_put_port_mixer),
  10767. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10768. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10769. msm_routing_get_port_mixer,
  10770. msm_routing_put_port_mixer),
  10771. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10772. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10773. msm_routing_get_port_mixer,
  10774. msm_routing_put_port_mixer),
  10775. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10776. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10777. msm_routing_get_port_mixer,
  10778. msm_routing_put_port_mixer),
  10779. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10780. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10781. msm_routing_get_port_mixer,
  10782. msm_routing_put_port_mixer),
  10783. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10784. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10785. msm_routing_get_port_mixer,
  10786. msm_routing_put_port_mixer),
  10787. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10788. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10789. msm_routing_get_port_mixer,
  10790. msm_routing_put_port_mixer),
  10791. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10792. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10793. msm_routing_get_port_mixer,
  10794. msm_routing_put_port_mixer),
  10795. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10796. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10797. msm_routing_get_port_mixer,
  10798. msm_routing_put_port_mixer),
  10799. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10800. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10801. msm_routing_get_port_mixer,
  10802. msm_routing_put_port_mixer),
  10803. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10804. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10805. msm_routing_get_port_mixer,
  10806. msm_routing_put_port_mixer),
  10807. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10808. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10809. msm_routing_get_port_mixer,
  10810. msm_routing_put_port_mixer),
  10811. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10812. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10813. msm_routing_get_port_mixer,
  10814. msm_routing_put_port_mixer),
  10815. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10816. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10817. msm_routing_get_port_mixer,
  10818. msm_routing_put_port_mixer),
  10819. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10820. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10821. msm_routing_get_port_mixer,
  10822. msm_routing_put_port_mixer),
  10823. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10824. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10825. msm_routing_get_port_mixer,
  10826. msm_routing_put_port_mixer),
  10827. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10828. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10829. msm_routing_get_port_mixer,
  10830. msm_routing_put_port_mixer),
  10831. };
  10832. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  10833. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10834. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10835. msm_routing_get_port_mixer,
  10836. msm_routing_put_port_mixer),
  10837. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10838. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10839. msm_routing_get_port_mixer,
  10840. msm_routing_put_port_mixer),
  10841. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10842. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10843. msm_routing_get_port_mixer,
  10844. msm_routing_put_port_mixer),
  10845. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10846. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10847. msm_routing_get_port_mixer,
  10848. msm_routing_put_port_mixer),
  10849. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10850. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10851. msm_routing_get_port_mixer,
  10852. msm_routing_put_port_mixer),
  10853. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10854. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10855. msm_routing_get_port_mixer,
  10856. msm_routing_put_port_mixer),
  10857. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10858. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10859. msm_routing_get_port_mixer,
  10860. msm_routing_put_port_mixer),
  10861. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10862. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10863. msm_routing_get_port_mixer,
  10864. msm_routing_put_port_mixer),
  10865. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10866. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10867. msm_routing_get_port_mixer,
  10868. msm_routing_put_port_mixer),
  10869. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10870. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10871. msm_routing_get_port_mixer,
  10872. msm_routing_put_port_mixer),
  10873. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10874. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10875. msm_routing_get_port_mixer,
  10876. msm_routing_put_port_mixer),
  10877. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10878. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10879. msm_routing_get_port_mixer,
  10880. msm_routing_put_port_mixer),
  10881. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10882. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10883. msm_routing_get_port_mixer,
  10884. msm_routing_put_port_mixer),
  10885. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10886. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10887. msm_routing_get_port_mixer,
  10888. msm_routing_put_port_mixer),
  10889. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10890. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10891. msm_routing_get_port_mixer,
  10892. msm_routing_put_port_mixer),
  10893. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10894. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10895. msm_routing_get_port_mixer,
  10896. msm_routing_put_port_mixer),
  10897. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10898. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10899. msm_routing_get_port_mixer,
  10900. msm_routing_put_port_mixer),
  10901. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10902. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10903. msm_routing_get_port_mixer,
  10904. msm_routing_put_port_mixer),
  10905. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10906. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10907. msm_routing_get_port_mixer,
  10908. msm_routing_put_port_mixer),
  10909. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10910. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10911. msm_routing_get_port_mixer,
  10912. msm_routing_put_port_mixer),
  10913. };
  10914. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  10915. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10916. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10917. msm_routing_put_port_mixer),
  10918. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10919. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10920. msm_routing_put_port_mixer),
  10921. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10922. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10923. msm_routing_put_port_mixer),
  10924. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10925. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10926. msm_routing_put_port_mixer),
  10927. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10928. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10929. msm_routing_put_port_mixer),
  10930. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10931. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10932. msm_routing_put_port_mixer),
  10933. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10934. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10935. msm_routing_put_port_mixer),
  10936. };
  10937. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  10938. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10939. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10940. msm_routing_put_port_mixer),
  10941. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10942. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10943. msm_routing_put_port_mixer),
  10944. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10945. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10946. msm_routing_put_port_mixer),
  10947. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10948. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10949. msm_routing_put_port_mixer),
  10950. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10951. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10952. msm_routing_put_port_mixer),
  10953. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10954. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10955. msm_routing_put_port_mixer),
  10956. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10957. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10958. msm_routing_put_port_mixer),
  10959. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10960. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10961. msm_routing_put_port_mixer),
  10962. };
  10963. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  10964. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10965. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10966. msm_routing_put_listen_mixer),
  10967. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10968. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10969. msm_routing_put_listen_mixer),
  10970. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10971. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10972. msm_routing_put_listen_mixer),
  10973. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10974. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10975. msm_routing_put_listen_mixer),
  10976. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10977. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10978. msm_routing_put_listen_mixer),
  10979. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10980. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10981. msm_routing_put_listen_mixer),
  10982. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10983. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10984. msm_routing_put_listen_mixer),
  10985. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10986. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10987. msm_routing_put_listen_mixer),
  10988. };
  10989. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  10990. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10991. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10992. msm_routing_put_listen_mixer),
  10993. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10994. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10995. msm_routing_put_listen_mixer),
  10996. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10997. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10998. msm_routing_put_listen_mixer),
  10999. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11000. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  11001. msm_routing_put_listen_mixer),
  11002. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  11003. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  11004. msm_routing_put_listen_mixer),
  11005. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11006. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  11007. msm_routing_put_listen_mixer),
  11008. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11009. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  11010. msm_routing_put_listen_mixer),
  11011. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  11012. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  11013. msm_routing_put_listen_mixer),
  11014. };
  11015. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  11016. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11017. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  11018. msm_routing_put_listen_mixer),
  11019. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11020. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  11021. msm_routing_put_listen_mixer),
  11022. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  11023. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  11024. msm_routing_put_listen_mixer),
  11025. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11026. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  11027. msm_routing_put_listen_mixer),
  11028. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  11029. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  11030. msm_routing_put_listen_mixer),
  11031. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11032. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  11033. msm_routing_put_listen_mixer),
  11034. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11035. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  11036. msm_routing_put_listen_mixer),
  11037. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  11038. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  11039. msm_routing_put_listen_mixer),
  11040. };
  11041. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  11042. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11043. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  11044. msm_routing_put_listen_mixer),
  11045. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11046. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  11047. msm_routing_put_listen_mixer),
  11048. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  11049. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  11050. msm_routing_put_listen_mixer),
  11051. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11052. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  11053. msm_routing_put_listen_mixer),
  11054. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  11055. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  11056. msm_routing_put_listen_mixer),
  11057. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11058. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  11059. msm_routing_put_listen_mixer),
  11060. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11061. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  11062. msm_routing_put_listen_mixer),
  11063. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  11064. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  11065. msm_routing_put_listen_mixer),
  11066. };
  11067. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  11068. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11069. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  11070. msm_routing_put_listen_mixer),
  11071. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11072. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  11073. msm_routing_put_listen_mixer),
  11074. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  11075. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  11076. msm_routing_put_listen_mixer),
  11077. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11078. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  11079. msm_routing_put_listen_mixer),
  11080. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  11081. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  11082. msm_routing_put_listen_mixer),
  11083. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11084. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  11085. msm_routing_put_listen_mixer),
  11086. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11087. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  11088. msm_routing_put_listen_mixer),
  11089. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  11090. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  11091. msm_routing_put_listen_mixer),
  11092. };
  11093. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  11094. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11095. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  11096. msm_routing_put_listen_mixer),
  11097. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11098. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  11099. msm_routing_put_listen_mixer),
  11100. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  11101. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  11102. msm_routing_put_listen_mixer),
  11103. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11104. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  11105. msm_routing_put_listen_mixer),
  11106. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  11107. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  11108. msm_routing_put_listen_mixer),
  11109. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11110. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  11111. msm_routing_put_listen_mixer),
  11112. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11113. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  11114. msm_routing_put_listen_mixer),
  11115. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  11116. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  11117. msm_routing_put_listen_mixer),
  11118. };
  11119. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  11120. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11121. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  11122. msm_routing_put_listen_mixer),
  11123. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11124. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  11125. msm_routing_put_listen_mixer),
  11126. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  11127. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  11128. msm_routing_put_listen_mixer),
  11129. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11130. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  11131. msm_routing_put_listen_mixer),
  11132. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  11133. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  11134. msm_routing_put_listen_mixer),
  11135. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11136. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  11137. msm_routing_put_listen_mixer),
  11138. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11139. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  11140. msm_routing_put_listen_mixer),
  11141. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  11142. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  11143. msm_routing_put_listen_mixer),
  11144. };
  11145. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  11146. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11147. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  11148. msm_routing_put_listen_mixer),
  11149. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11150. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  11151. msm_routing_put_listen_mixer),
  11152. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  11153. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  11154. msm_routing_put_listen_mixer),
  11155. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11156. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  11157. msm_routing_put_listen_mixer),
  11158. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  11159. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  11160. msm_routing_put_listen_mixer),
  11161. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11162. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  11163. msm_routing_put_listen_mixer),
  11164. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11165. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  11166. msm_routing_put_listen_mixer),
  11167. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  11168. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  11169. msm_routing_put_listen_mixer),
  11170. };
  11171. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  11172. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11173. 0, 1, 0, msm_routing_get_switch_mixer,
  11174. msm_routing_put_switch_mixer);
  11175. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  11176. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11177. 0, 1, 0, msm_routing_get_switch_mixer,
  11178. msm_routing_put_switch_mixer);
  11179. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  11180. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11181. 0, 1, 0, msm_routing_get_switch_mixer,
  11182. msm_routing_put_switch_mixer);
  11183. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  11184. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11185. 0, 1, 0, msm_routing_get_switch_mixer,
  11186. msm_routing_put_switch_mixer);
  11187. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  11188. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11189. 0, 1, 0, msm_routing_get_switch_mixer,
  11190. msm_routing_put_switch_mixer);
  11191. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  11192. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11193. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  11194. msm_routing_put_fm_pcmrx_switch_mixer);
  11195. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  11196. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11197. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  11198. msm_routing_put_int0_mi2s_switch_mixer);
  11199. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  11200. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11201. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  11202. msm_routing_put_int4_mi2s_switch_mixer);
  11203. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  11204. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11205. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  11206. msm_routing_put_pri_mi2s_switch_mixer);
  11207. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  11208. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11209. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  11210. msm_routing_put_sec_mi2s_switch_mixer);
  11211. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  11212. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11213. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  11214. msm_routing_put_tert_mi2s_switch_mixer);
  11215. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  11216. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11217. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  11218. msm_routing_put_quat_mi2s_switch_mixer);
  11219. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  11220. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11221. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  11222. msm_routing_put_quin_mi2s_switch_mixer);
  11223. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  11224. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11225. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  11226. msm_routing_put_hfp_switch_mixer);
  11227. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  11228. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11229. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  11230. msm_routing_put_hfp_switch_mixer);
  11231. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  11232. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11233. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  11234. msm_routing_put_hfp_switch_mixer);
  11235. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  11236. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11237. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  11238. msm_routing_put_hfp_switch_mixer);
  11239. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  11240. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  11241. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  11242. msm_routing_put_usb_switch_mixer);
  11243. static const struct soc_enum lsm_port_enum =
  11244. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  11245. static const char * const lsm_func_text[] = {
  11246. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  11247. };
  11248. static const struct soc_enum lsm_func_enum =
  11249. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  11250. static const struct snd_kcontrol_new lsm_controls[] = {
  11251. /* kcontrol of lsm_function */
  11252. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  11253. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  11254. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  11255. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  11256. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  11257. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  11258. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  11259. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  11260. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  11261. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  11262. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  11263. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  11264. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  11265. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  11266. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  11267. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  11268. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  11269. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  11270. /* kcontrol of lsm_port */
  11271. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  11272. msm_routing_lsm_port_get,
  11273. msm_routing_lsm_port_put),
  11274. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  11275. msm_routing_lsm_port_get,
  11276. msm_routing_lsm_port_put),
  11277. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  11278. msm_routing_lsm_port_get,
  11279. msm_routing_lsm_port_put),
  11280. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  11281. msm_routing_lsm_port_get,
  11282. msm_routing_lsm_port_put),
  11283. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  11284. msm_routing_lsm_port_get,
  11285. msm_routing_lsm_port_put),
  11286. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  11287. msm_routing_lsm_port_get,
  11288. msm_routing_lsm_port_put),
  11289. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  11290. msm_routing_lsm_port_get,
  11291. msm_routing_lsm_port_put),
  11292. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  11293. msm_routing_lsm_port_get,
  11294. msm_routing_lsm_port_put),
  11295. };
  11296. static const char * const aanc_slim_0_rx_text[] = {
  11297. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  11298. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  11299. };
  11300. static const struct soc_enum aanc_slim_0_rx_enum =
  11301. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  11302. aanc_slim_0_rx_text);
  11303. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  11304. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  11305. msm_routing_slim_0_rx_aanc_mux_get,
  11306. msm_routing_slim_0_rx_aanc_mux_put)
  11307. };
  11308. static int msm_routing_get_stereo_to_custom_stereo_control(
  11309. struct snd_kcontrol *kcontrol,
  11310. struct snd_ctl_elem_value *ucontrol)
  11311. {
  11312. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  11313. return 0;
  11314. }
  11315. static int msm_routing_put_stereo_to_custom_stereo_control(
  11316. struct snd_kcontrol *kcontrol,
  11317. struct snd_ctl_elem_value *ucontrol)
  11318. {
  11319. int flag = 0, i = 0, rc = 0, idx = 0;
  11320. int be_index = 0, port_id, topo_id;
  11321. unsigned int session_id = 0;
  11322. uint16_t op_FL_ip_FL_weight = 0;
  11323. uint16_t op_FL_ip_FR_weight = 0;
  11324. uint16_t op_FR_ip_FL_weight = 0;
  11325. uint16_t op_FR_ip_FR_weight = 0;
  11326. flag = ucontrol->value.integer.value[0];
  11327. pr_debug("%s E flag %d\n", __func__, flag);
  11328. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  11329. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  11330. __func__, is_custom_stereo_on, flag);
  11331. return 0;
  11332. }
  11333. is_custom_stereo_on = flag ? true : false;
  11334. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  11335. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  11336. port_id = msm_bedais[be_index].port_id;
  11337. if (!msm_bedais[be_index].active)
  11338. continue;
  11339. if ((port_id != SLIMBUS_0_RX) &&
  11340. (port_id != RT_PROXY_PORT_001_RX) &&
  11341. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  11342. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  11343. continue;
  11344. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  11345. MSM_FRONTEND_DAI_MM_SIZE) {
  11346. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  11347. LEGACY_PCM_MODE)
  11348. goto skip_send_custom_stereo;
  11349. session_id =
  11350. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  11351. if (is_custom_stereo_on) {
  11352. op_FL_ip_FL_weight =
  11353. Q14_GAIN_ZERO_POINT_FIVE;
  11354. op_FL_ip_FR_weight =
  11355. Q14_GAIN_ZERO_POINT_FIVE;
  11356. op_FR_ip_FL_weight =
  11357. Q14_GAIN_ZERO_POINT_FIVE;
  11358. op_FR_ip_FR_weight =
  11359. Q14_GAIN_ZERO_POINT_FIVE;
  11360. } else {
  11361. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  11362. op_FL_ip_FR_weight = 0;
  11363. op_FR_ip_FL_weight = 0;
  11364. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  11365. }
  11366. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11367. unsigned long copp =
  11368. session_copp_map[i]
  11369. [SESSION_TYPE_RX][be_index];
  11370. if (!test_bit(idx, &copp))
  11371. goto skip_send_custom_stereo;
  11372. topo_id = adm_get_topology_for_port_copp_idx(
  11373. msm_bedais[be_index].port_id, idx);
  11374. if (topo_id < 0)
  11375. pr_debug("%s:Err:custom stereo topo %d",
  11376. __func__, topo_id);
  11377. pr_debug("idx %d\n", idx);
  11378. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  11379. rc = msm_ds2_dap_set_custom_stereo_onoff
  11380. (msm_bedais[be_index].port_id,
  11381. idx, is_custom_stereo_on);
  11382. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  11383. rc = dolby_dap_set_custom_stereo_onoff(
  11384. msm_bedais[be_index].port_id,
  11385. idx, is_custom_stereo_on);
  11386. else
  11387. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  11388. (msm_bedais[be_index].port_id,
  11389. idx, session_id,
  11390. op_FL_ip_FL_weight,
  11391. op_FL_ip_FR_weight,
  11392. op_FR_ip_FL_weight,
  11393. op_FR_ip_FR_weight);
  11394. if (rc < 0)
  11395. skip_send_custom_stereo:
  11396. pr_err("%s: err setting custom stereo\n",
  11397. __func__);
  11398. }
  11399. }
  11400. }
  11401. return 0;
  11402. }
  11403. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  11404. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  11405. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  11406. msm_routing_put_stereo_to_custom_stereo_control),
  11407. };
  11408. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  11409. struct snd_ctl_elem_value *ucontrol)
  11410. {
  11411. return 0;
  11412. }
  11413. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  11414. struct snd_ctl_elem_value *ucontrol)
  11415. {
  11416. int i = 0, j;
  11417. int num_app_types = ucontrol->value.integer.value[i++];
  11418. pr_debug("%s\n", __func__);
  11419. memset(app_type_cfg, 0, MAX_APP_TYPES*
  11420. sizeof(struct msm_pcm_routing_app_type_data));
  11421. if (num_app_types > MAX_APP_TYPES) {
  11422. pr_err("%s: number of app types exceed the max supported\n",
  11423. __func__);
  11424. return -EINVAL;
  11425. }
  11426. for (j = 0; j < num_app_types; j++) {
  11427. app_type_cfg[j].app_type =
  11428. ucontrol->value.integer.value[i++];
  11429. app_type_cfg[j].sample_rate =
  11430. ucontrol->value.integer.value[i++];
  11431. app_type_cfg[j].bit_width =
  11432. ucontrol->value.integer.value[i++];
  11433. }
  11434. return 0;
  11435. }
  11436. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  11437. struct snd_ctl_elem_value *ucontrol)
  11438. {
  11439. int j, fe_id, be_id, port_type;
  11440. int ret = 0;
  11441. unsigned long copp;
  11442. struct msm_pcm_routing_bdai_data *bedai;
  11443. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  11444. SESSION_TYPE_RX;
  11445. int app_type = ucontrol->value.integer.value[1];
  11446. int gain = (ucontrol->value.integer.value[2] +
  11447. ucontrol->value.integer.value[3])/2;
  11448. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  11449. MSM_AFE_PORT_TYPE_TX;
  11450. mutex_lock(&routing_lock);
  11451. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  11452. if (is_be_dai_extproc(be_id))
  11453. continue;
  11454. bedai = &msm_bedais[be_id];
  11455. if (afe_get_port_type(bedai->port_id) != port_type)
  11456. continue;
  11457. if (!bedai->active)
  11458. continue;
  11459. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  11460. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  11461. continue;
  11462. if (app_type !=
  11463. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  11464. continue;
  11465. copp = session_copp_map[fe_id][dir][be_id];
  11466. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  11467. if (!test_bit(j, &copp))
  11468. continue;
  11469. ret |= adm_set_volume(bedai->port_id, j, gain);
  11470. }
  11471. }
  11472. }
  11473. mutex_unlock(&routing_lock);
  11474. return ret ? -EINVAL : 0;
  11475. }
  11476. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  11477. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  11478. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  11479. msm_routing_put_app_type_cfg_control),
  11480. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  11481. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  11482. };
  11483. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  11484. struct snd_ctl_elem_value *ucontrol)
  11485. {
  11486. int copp_idx, fe_id, be_id, port_type;
  11487. int ret = 0;
  11488. unsigned long copp;
  11489. struct msm_pcm_routing_bdai_data *bedai;
  11490. char *param_data = NULL;
  11491. uint32_t *update_param_data = NULL;
  11492. uint32_t param_size = sizeof(uint32_t) +
  11493. sizeof(struct adm_param_data_v5);
  11494. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  11495. SESSION_TYPE_RX;
  11496. int app_type = ucontrol->value.integer.value[1];
  11497. int module_id = ucontrol->value.integer.value[2];
  11498. int instance_id = ucontrol->value.integer.value[3];
  11499. int param_id = ucontrol->value.integer.value[4];
  11500. int param_value = ucontrol->value.integer.value[5];
  11501. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  11502. MSM_AFE_PORT_TYPE_TX;
  11503. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  11504. __func__, app_type, module_id,
  11505. instance_id, param_id, param_value);
  11506. param_data = kzalloc(param_size, GFP_KERNEL);
  11507. if (!param_data)
  11508. return -ENOMEM;
  11509. update_param_data = (uint32_t *)param_data;
  11510. *update_param_data++ = module_id;
  11511. *update_param_data++ = param_id;
  11512. *update_param_data++ = sizeof(uint32_t);
  11513. *update_param_data++ = param_value;
  11514. mutex_lock(&routing_lock);
  11515. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  11516. if (is_be_dai_extproc(be_id))
  11517. continue;
  11518. bedai = &msm_bedais[be_id];
  11519. if (afe_get_port_type(bedai->port_id) != port_type)
  11520. continue;
  11521. if (!bedai->active)
  11522. continue;
  11523. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  11524. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  11525. continue;
  11526. if (app_type !=
  11527. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  11528. continue;
  11529. copp = session_copp_map[fe_id][dir][be_id];
  11530. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  11531. copp_idx++) {
  11532. if (!test_bit(copp_idx, &copp))
  11533. continue;
  11534. ret = adm_send_params_v5(bedai->port_id,
  11535. copp_idx,
  11536. param_data,
  11537. param_size);
  11538. if (ret) {
  11539. pr_err("%s: Setting param failed with err=%d\n",
  11540. __func__, ret);
  11541. ret = -EINVAL;
  11542. goto done;
  11543. }
  11544. }
  11545. }
  11546. }
  11547. done:
  11548. mutex_unlock(&routing_lock);
  11549. kfree(param_data);
  11550. return ret;
  11551. }
  11552. static const struct snd_kcontrol_new module_cfg_controls[] = {
  11553. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  11554. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  11555. };
  11556. static int msm_routing_get_lsm_app_type_cfg_control(
  11557. struct snd_kcontrol *kcontrol,
  11558. struct snd_ctl_elem_value *ucontrol)
  11559. {
  11560. return 0;
  11561. }
  11562. static int msm_routing_put_lsm_app_type_cfg_control(
  11563. struct snd_kcontrol *kcontrol,
  11564. struct snd_ctl_elem_value *ucontrol)
  11565. {
  11566. int i = 0, j;
  11567. int num_app_types = ucontrol->value.integer.value[i++];
  11568. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  11569. sizeof(struct msm_pcm_routing_app_type_data));
  11570. if (num_app_types > MAX_APP_TYPES) {
  11571. pr_err("%s: number of app types exceed the max supported\n",
  11572. __func__);
  11573. return -EINVAL;
  11574. }
  11575. for (j = 0; j < num_app_types; j++) {
  11576. lsm_app_type_cfg[j].app_type =
  11577. ucontrol->value.integer.value[i++];
  11578. lsm_app_type_cfg[j].sample_rate =
  11579. ucontrol->value.integer.value[i++];
  11580. lsm_app_type_cfg[j].bit_width =
  11581. ucontrol->value.integer.value[i++];
  11582. }
  11583. return 0;
  11584. }
  11585. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  11586. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  11587. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  11588. msm_routing_put_lsm_app_type_cfg_control),
  11589. };
  11590. static int msm_routing_get_use_ds1_or_ds2_control(
  11591. struct snd_kcontrol *kcontrol,
  11592. struct snd_ctl_elem_value *ucontrol)
  11593. {
  11594. ucontrol->value.integer.value[0] = is_ds2_on;
  11595. return 0;
  11596. }
  11597. static int msm_routing_put_use_ds1_or_ds2_control(
  11598. struct snd_kcontrol *kcontrol,
  11599. struct snd_ctl_elem_value *ucontrol)
  11600. {
  11601. is_ds2_on = ucontrol->value.integer.value[0];
  11602. return 0;
  11603. }
  11604. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  11605. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  11606. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  11607. msm_routing_put_use_ds1_or_ds2_control),
  11608. };
  11609. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  11610. struct snd_ctl_elem_value *ucontrol) {
  11611. int rc = 0;
  11612. int be_idx = 0;
  11613. char *param_value;
  11614. int *update_param_value;
  11615. uint32_t param_length = sizeof(uint32_t);
  11616. uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
  11617. param_value = kzalloc(param_length + param_payload_len, GFP_KERNEL);
  11618. if (!param_value)
  11619. return -ENOMEM;
  11620. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  11621. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  11622. break;
  11623. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  11624. rc = adm_get_params(SLIMBUS_0_TX, 0,
  11625. RMS_MODULEID_APPI_PASSTHRU,
  11626. RMS_PARAM_FIRST_SAMPLE,
  11627. param_length + param_payload_len,
  11628. param_value);
  11629. if (rc) {
  11630. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  11631. kfree(param_value);
  11632. return -EINVAL;
  11633. }
  11634. update_param_value = (int *)param_value;
  11635. ucontrol->value.integer.value[0] = update_param_value[0];
  11636. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  11637. __func__, update_param_value[0]);
  11638. }
  11639. kfree(param_value);
  11640. return 0;
  11641. }
  11642. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  11643. struct snd_ctl_elem_value *ucontrol)
  11644. {
  11645. voc_session_id = ucontrol->value.integer.value[0];
  11646. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  11647. return 0;
  11648. }
  11649. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  11650. struct snd_ctl_elem_value *ucontrol)
  11651. {
  11652. ucontrol->value.integer.value[0] = voc_session_id;
  11653. return 0;
  11654. }
  11655. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  11656. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  11657. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  11658. msm_voc_session_id_put),
  11659. };
  11660. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  11661. struct snd_ctl_elem_info *uinfo)
  11662. {
  11663. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11664. uinfo->count = sizeof(struct sound_focus_param);
  11665. return 0;
  11666. }
  11667. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  11668. struct snd_ctl_elem_value *ucontrol)
  11669. {
  11670. int ret = 0;
  11671. struct sound_focus_param soundFocusData;
  11672. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11673. sizeof(struct sound_focus_param));
  11674. ret = voc_set_sound_focus(soundFocusData);
  11675. if (ret) {
  11676. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11677. __func__, ret);
  11678. ret = -EINVAL;
  11679. }
  11680. return ret;
  11681. }
  11682. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  11683. struct snd_ctl_elem_value *ucontrol)
  11684. {
  11685. int ret = 0;
  11686. struct sound_focus_param soundFocusData;
  11687. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  11688. ret = voc_get_sound_focus(&soundFocusData);
  11689. if (ret) {
  11690. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11691. __func__, ret);
  11692. ret = -EINVAL;
  11693. goto done;
  11694. }
  11695. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11696. sizeof(struct sound_focus_param));
  11697. done:
  11698. return ret;
  11699. }
  11700. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  11701. struct snd_ctl_elem_info *uinfo)
  11702. {
  11703. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11704. uinfo->count = sizeof(struct source_tracking_param);
  11705. return 0;
  11706. }
  11707. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  11708. struct snd_ctl_elem_value *ucontrol)
  11709. {
  11710. int ret = 0;
  11711. struct source_tracking_param sourceTrackingData;
  11712. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  11713. ret = voc_get_source_tracking(&sourceTrackingData);
  11714. if (ret) {
  11715. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11716. __func__, ret);
  11717. ret = -EINVAL;
  11718. goto done;
  11719. }
  11720. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11721. sizeof(struct source_tracking_param));
  11722. done:
  11723. return ret;
  11724. }
  11725. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  11726. int *copp_idx)
  11727. {
  11728. int i, idx, be_idx;
  11729. int ret = 0;
  11730. unsigned long copp;
  11731. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  11732. ret = q6audio_validate_port(port_id);
  11733. if (ret < 0) {
  11734. pr_err("%s: port validation failed id 0x%x ret %d\n",
  11735. __func__, port_id, ret);
  11736. ret = -EINVAL;
  11737. goto done;
  11738. }
  11739. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  11740. if (msm_bedais[be_idx].port_id == port_id)
  11741. break;
  11742. }
  11743. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  11744. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  11745. ret = -EINVAL;
  11746. goto done;
  11747. }
  11748. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  11749. MSM_FRONTEND_DAI_MM_SIZE) {
  11750. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11751. copp = session_copp_map[i]
  11752. [session_type][be_idx];
  11753. if (test_bit(idx, &copp))
  11754. break;
  11755. }
  11756. if (idx >= MAX_COPPS_PER_PORT)
  11757. continue;
  11758. else
  11759. break;
  11760. }
  11761. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  11762. pr_err("%s: Invalid FE, exiting\n", __func__);
  11763. ret = -EINVAL;
  11764. goto done;
  11765. }
  11766. *copp_idx = idx;
  11767. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  11768. done:
  11769. return ret;
  11770. }
  11771. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  11772. const char *prefix, int *port_id)
  11773. {
  11774. int ret = 0;
  11775. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  11776. /*
  11777. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  11778. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  11779. * and compare the string with the backend name to derive the port id.
  11780. */
  11781. if (!strcmp(kcontrol->id.name + strlen(prefix),
  11782. "SLIMBUS_0")) {
  11783. *port_id = SLIMBUS_0_TX;
  11784. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11785. "TERT_MI2S")) {
  11786. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  11787. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11788. "INT3_MI2S")) {
  11789. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  11790. } else {
  11791. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  11792. __func__, kcontrol->id.name);
  11793. ret = -EINVAL;
  11794. goto done;
  11795. }
  11796. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  11797. __func__, kcontrol->id.name, *port_id);
  11798. done:
  11799. return ret;
  11800. }
  11801. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  11802. struct snd_ctl_elem_value *ucontrol)
  11803. {
  11804. int ret = 0;
  11805. struct sound_focus_param soundFocusData;
  11806. int port_id, copp_idx;
  11807. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11808. "Sound Focus Audio Tx ", &port_id);
  11809. if (ret != 0) {
  11810. pr_err("%s: Error in deriving port id, err=%d\n",
  11811. __func__, ret);
  11812. ret = -EINVAL;
  11813. goto done;
  11814. }
  11815. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11816. &copp_idx);
  11817. if (ret) {
  11818. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11819. __func__, port_id);
  11820. ret = -EINVAL;
  11821. goto done;
  11822. }
  11823. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11824. sizeof(struct sound_focus_param));
  11825. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  11826. if (ret) {
  11827. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11828. __func__, ret);
  11829. ret = -EINVAL;
  11830. goto done;
  11831. }
  11832. done:
  11833. return ret;
  11834. }
  11835. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  11836. struct snd_ctl_elem_value *ucontrol)
  11837. {
  11838. int ret = 0;
  11839. struct sound_focus_param soundFocusData;
  11840. int port_id, copp_idx;
  11841. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11842. "Sound Focus Audio Tx ", &port_id);
  11843. if (ret) {
  11844. pr_err("%s: Error in deriving port id, err=%d\n",
  11845. __func__, ret);
  11846. ret = -EINVAL;
  11847. goto done;
  11848. }
  11849. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11850. &copp_idx);
  11851. if (ret) {
  11852. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11853. __func__, port_id);
  11854. ret = -EINVAL;
  11855. goto done;
  11856. }
  11857. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  11858. if (ret) {
  11859. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11860. __func__, ret);
  11861. ret = -EINVAL;
  11862. goto done;
  11863. }
  11864. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11865. sizeof(struct sound_focus_param));
  11866. done:
  11867. return ret;
  11868. }
  11869. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  11870. struct snd_ctl_elem_value *ucontrol)
  11871. {
  11872. int ret = 0;
  11873. struct source_tracking_param sourceTrackingData;
  11874. int port_id, copp_idx;
  11875. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11876. "Source Tracking Audio Tx ", &port_id);
  11877. if (ret) {
  11878. pr_err("%s: Error in deriving port id, err=%d\n",
  11879. __func__, ret);
  11880. ret = -EINVAL;
  11881. goto done;
  11882. }
  11883. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11884. &copp_idx);
  11885. if (ret) {
  11886. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11887. __func__, port_id);
  11888. ret = -EINVAL;
  11889. goto done;
  11890. }
  11891. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  11892. if (ret) {
  11893. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11894. __func__, ret);
  11895. ret = -EINVAL;
  11896. goto done;
  11897. }
  11898. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11899. sizeof(struct source_tracking_param));
  11900. done:
  11901. return ret;
  11902. }
  11903. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  11904. {
  11905. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11906. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11907. .name = "Sound Focus Voice Tx SLIMBUS_0",
  11908. .info = msm_sound_focus_info,
  11909. .get = msm_voice_sound_focus_get,
  11910. .put = msm_voice_sound_focus_put,
  11911. },
  11912. {
  11913. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11914. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11915. .name = "Source Tracking Voice Tx SLIMBUS_0",
  11916. .info = msm_source_tracking_info,
  11917. .get = msm_voice_source_tracking_get,
  11918. },
  11919. {
  11920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11921. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11922. .name = "Sound Focus Audio Tx SLIMBUS_0",
  11923. .info = msm_sound_focus_info,
  11924. .get = msm_audio_sound_focus_get,
  11925. .put = msm_audio_sound_focus_put,
  11926. },
  11927. {
  11928. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11930. .name = "Source Tracking Audio Tx SLIMBUS_0",
  11931. .info = msm_source_tracking_info,
  11932. .get = msm_audio_source_tracking_get,
  11933. },
  11934. {
  11935. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11936. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11937. .name = "Sound Focus Voice Tx TERT_MI2S",
  11938. .info = msm_sound_focus_info,
  11939. .get = msm_voice_sound_focus_get,
  11940. .put = msm_voice_sound_focus_put,
  11941. },
  11942. {
  11943. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11944. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11945. .name = "Source Tracking Voice Tx TERT_MI2S",
  11946. .info = msm_source_tracking_info,
  11947. .get = msm_voice_source_tracking_get,
  11948. },
  11949. {
  11950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11951. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11952. .name = "Sound Focus Audio Tx TERT_MI2S",
  11953. .info = msm_sound_focus_info,
  11954. .get = msm_audio_sound_focus_get,
  11955. .put = msm_audio_sound_focus_put,
  11956. },
  11957. {
  11958. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11960. .name = "Source Tracking Audio Tx TERT_MI2S",
  11961. .info = msm_source_tracking_info,
  11962. .get = msm_audio_source_tracking_get,
  11963. },
  11964. {
  11965. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11966. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11967. .name = "Sound Focus Voice Tx INT3_MI2S",
  11968. .info = msm_sound_focus_info,
  11969. .get = msm_voice_sound_focus_get,
  11970. .put = msm_voice_sound_focus_put,
  11971. },
  11972. {
  11973. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11974. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11975. .name = "Source Tracking Voice Tx INT3_MI2S",
  11976. .info = msm_source_tracking_info,
  11977. .get = msm_voice_source_tracking_get,
  11978. },
  11979. {
  11980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11981. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11982. .name = "Sound Focus Audio Tx INT3_MI2S",
  11983. .info = msm_sound_focus_info,
  11984. .get = msm_audio_sound_focus_get,
  11985. .put = msm_audio_sound_focus_put,
  11986. },
  11987. {
  11988. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11990. .name = "Source Tracking Audio Tx INT3_MI2S",
  11991. .info = msm_source_tracking_info,
  11992. .get = msm_audio_source_tracking_get,
  11993. },
  11994. };
  11995. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  11996. struct snd_ctl_elem_value *ucontrol)
  11997. {
  11998. int ret = 0;
  11999. int item;
  12000. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  12001. pr_debug("%s item is %d\n", __func__,
  12002. ucontrol->value.enumerated.item[0]);
  12003. mutex_lock(&routing_lock);
  12004. item = ucontrol->value.enumerated.item[0];
  12005. if (item < e->items) {
  12006. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  12007. __func__, e->shift_l, e->values[item]);
  12008. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  12009. e->values[item] < MSM_BACKEND_DAI_MAX)
  12010. /* Enable feedback TX path */
  12011. ret = afe_spk_prot_feed_back_cfg(
  12012. msm_bedais[e->values[item]].port_id,
  12013. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  12014. else {
  12015. pr_debug("%s values are out of range item %d\n",
  12016. __func__, e->values[item]);
  12017. /* Disable feedback TX path */
  12018. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  12019. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  12020. else
  12021. ret = -EINVAL;
  12022. }
  12023. } else {
  12024. pr_err("%s item value is out of range item\n", __func__);
  12025. ret = -EINVAL;
  12026. }
  12027. mutex_unlock(&routing_lock);
  12028. return ret;
  12029. }
  12030. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  12031. struct snd_ctl_elem_value *ucontrol)
  12032. {
  12033. int ret = 0;
  12034. int item;
  12035. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  12036. pr_debug("%s item is %d\n", __func__,
  12037. ucontrol->value.enumerated.item[0]);
  12038. mutex_lock(&routing_lock);
  12039. item = ucontrol->value.enumerated.item[0];
  12040. if (item < e->items) {
  12041. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  12042. __func__, e->shift_l, e->values[item]);
  12043. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  12044. e->values[item] < MSM_BACKEND_DAI_MAX)
  12045. /* Enable feedback TX path */
  12046. ret = afe_spk_prot_feed_back_cfg(
  12047. msm_bedais[e->values[item]].port_id,
  12048. msm_bedais[e->shift_l].port_id,
  12049. 1, 1, 1);
  12050. else {
  12051. pr_debug("%s values are out of range item %d\n",
  12052. __func__, e->values[item]);
  12053. /* Disable feedback TX path */
  12054. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  12055. ret = afe_spk_prot_feed_back_cfg(0,
  12056. 0, 0, 0, 0);
  12057. else
  12058. ret = -EINVAL;
  12059. }
  12060. } else {
  12061. pr_err("%s item value is out of range item\n", __func__);
  12062. ret = -EINVAL;
  12063. }
  12064. mutex_unlock(&routing_lock);
  12065. return ret;
  12066. }
  12067. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  12068. struct snd_ctl_elem_value *ucontrol)
  12069. {
  12070. pr_debug("%s\n", __func__);
  12071. return 0;
  12072. }
  12073. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  12074. struct snd_ctl_elem_value *ucontrol)
  12075. {
  12076. pr_debug("%s\n", __func__);
  12077. ucontrol->value.enumerated.item[0] = 0;
  12078. return 0;
  12079. }
  12080. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  12081. "ZERO", "SLIM4_TX"
  12082. };
  12083. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  12084. "ZERO", "SLIM4_TX"
  12085. };
  12086. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  12087. "ZERO", "SENARY_TX"
  12088. };
  12089. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  12090. "ZERO", "INT5_MI2S_TX"
  12091. };
  12092. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  12093. "ZERO", "INT5_MI2S_TX"
  12094. };
  12095. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  12096. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  12097. };
  12098. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  12099. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  12100. };
  12101. static const int const mi2s_rx_vi_fb_tx_value[] = {
  12102. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  12103. };
  12104. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  12105. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  12106. };
  12107. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  12108. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  12109. };
  12110. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  12111. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  12112. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  12113. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  12114. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  12115. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  12116. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  12117. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  12118. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  12119. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  12120. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  12121. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  12122. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  12123. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  12124. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  12125. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  12126. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  12127. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  12128. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  12129. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  12130. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  12131. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  12132. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  12133. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  12134. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  12135. spkr_prot_put_vi_lch_port);
  12136. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  12137. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  12138. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  12139. spkr_prot_put_vi_rch_port);
  12140. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  12141. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  12142. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  12143. spkr_prot_put_vi_lch_port);
  12144. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  12145. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  12146. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  12147. spkr_prot_put_vi_lch_port);
  12148. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  12149. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  12150. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  12151. spkr_prot_put_vi_rch_port);
  12152. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  12153. /* Frontend AIF */
  12154. /* Widget name equals to Front-End DAI name<Need confirmation>,
  12155. * Stream name must contains substring of front-end dai name
  12156. */
  12157. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  12158. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  12159. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  12160. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  12161. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  12162. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  12163. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  12164. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  12165. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  12166. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  12167. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  12168. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  12169. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  12170. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  12171. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  12172. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  12173. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  12174. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  12175. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  12176. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  12177. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  12178. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  12179. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  12180. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  12181. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  12182. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  12183. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  12184. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  12185. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  12186. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  12187. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  12188. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  12189. SND_SOC_DAPM_AIF_IN("CS-VOICE_DL1", "CS-VOICE Playback", 0, 0, 0, 0),
  12190. SND_SOC_DAPM_AIF_OUT("CS-VOICE_UL1", "CS-VOICE Capture", 0, 0, 0, 0),
  12191. SND_SOC_DAPM_AIF_IN("VOICE2_DL", "Voice2 Playback", 0, 0, 0, 0),
  12192. SND_SOC_DAPM_AIF_OUT("VOICE2_UL", "Voice2 Capture", 0, 0, 0, 0),
  12193. SND_SOC_DAPM_AIF_IN("VoLTE_DL", "VoLTE Playback", 0, 0, 0, 0),
  12194. SND_SOC_DAPM_AIF_OUT("VoLTE_UL", "VoLTE Capture", 0, 0, 0, 0),
  12195. SND_SOC_DAPM_AIF_IN("VoWLAN_DL", "VoWLAN Playback", 0, 0, 0, 0),
  12196. SND_SOC_DAPM_AIF_OUT("VoWLAN_UL", "VoWLAN Capture", 0, 0, 0, 0),
  12197. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  12198. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  12199. "VoiceMMode1 Playback", 0, 0, 0, 0),
  12200. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  12201. "VoiceMMode1 Capture", 0, 0, 0, 0),
  12202. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  12203. "VoiceMMode2 Playback", 0, 0, 0, 0),
  12204. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  12205. "VoiceMMode2 Capture", 0, 0, 0, 0),
  12206. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  12207. 0, 0, 0, 0),
  12208. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  12209. 0, 0, 0, 0),
  12210. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  12211. 0, 0, 0, 0),
  12212. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  12213. 0, 0, 0, 0),
  12214. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  12215. 0, 0, 0, 0),
  12216. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  12217. 0, 0, 0, 0),
  12218. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  12219. 0, 0, 0, 0),
  12220. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  12221. 0, 0, 0, 0),
  12222. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  12223. 0, 0, 0, 0),
  12224. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  12225. 0, 0, 0, 0),
  12226. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  12227. 0, 0, 0, 0),
  12228. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  12229. 0, 0, 0, 0),
  12230. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  12231. 0, 0, 0, 0),
  12232. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  12233. 0, 0, 0, 0),
  12234. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  12235. 0, 0, 0, 0),
  12236. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  12237. 0, 0, 0, 0),
  12238. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  12239. 0, 0, 0, 0),
  12240. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  12241. 0, 0, 0, 0),
  12242. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  12243. 0, 0, 0, 0),
  12244. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  12245. 0, 0, 0, 0),
  12246. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  12247. 0, 0, 0, 0),
  12248. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  12249. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  12250. 0, 0, 0, 0),
  12251. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  12252. "INT0 MI2S_RX Hostless Playback",
  12253. 0, 0, 0, 0),
  12254. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  12255. "INT4 MI2S_RX Hostless Playback",
  12256. 0, 0, 0, 0),
  12257. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  12258. "Primary MI2S_RX Hostless Playback",
  12259. 0, 0, 0, 0),
  12260. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  12261. "Secondary MI2S_RX Hostless Playback",
  12262. 0, 0, 0, 0),
  12263. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  12264. "Tertiary MI2S_RX Hostless Playback",
  12265. 0, 0, 0, 0),
  12266. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  12267. "Quaternary MI2S_RX Hostless Playback",
  12268. 0, 0, 0, 0),
  12269. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  12270. "Quinary MI2S_RX Hostless Playback",
  12271. 0, 0, 0, 0),
  12272. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  12273. 0, 0, 0, 0),
  12274. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  12275. 0, 0, 0, 0),
  12276. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  12277. 0, 0, 0, 0),
  12278. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  12279. "INT3 MI2S_TX Hostless Capture",
  12280. 0, 0, 0, 0),
  12281. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  12282. "Tertiary MI2S_TX Hostless Capture",
  12283. 0, 0, 0, 0),
  12284. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  12285. "Secondary MI2S_TX Hostless Capture",
  12286. 0, 0, 0, 0),
  12287. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  12288. "Primary MI2S_TX Hostless Capture",
  12289. 0, 0, 0, 0),
  12290. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  12291. 0, 0, 0, 0),
  12292. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  12293. 0, 0, 0, 0),
  12294. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  12295. "Quaternary MI2S_TX Hostless Capture",
  12296. 0, 0, 0, 0),
  12297. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  12298. "Quinary MI2S_TX Hostless Capture",
  12299. 0, 0, 0, 0),
  12300. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  12301. "Primary TDM0 Hostless Playback",
  12302. 0, 0, 0, 0),
  12303. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  12304. "Primary TDM0 Hostless Capture",
  12305. 0, 0, 0, 0),
  12306. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  12307. "Primary TDM1 Hostless Playback",
  12308. 0, 0, 0, 0),
  12309. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  12310. "Primary TDM1 Hostless Capture",
  12311. 0, 0, 0, 0),
  12312. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  12313. "Primary TDM2 Hostless Playback",
  12314. 0, 0, 0, 0),
  12315. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  12316. "Primary TDM2 Hostless Capture",
  12317. 0, 0, 0, 0),
  12318. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  12319. "Primary TDM3 Hostless Playback",
  12320. 0, 0, 0, 0),
  12321. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  12322. "Primary TDM3 Hostless Capture",
  12323. 0, 0, 0, 0),
  12324. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  12325. "Primary TDM4 Hostless Playback",
  12326. 0, 0, 0, 0),
  12327. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  12328. "Primary TDM4 Hostless Capture",
  12329. 0, 0, 0, 0),
  12330. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  12331. "Primary TDM5 Hostless Playback",
  12332. 0, 0, 0, 0),
  12333. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  12334. "Primary TDM5 Hostless Capture",
  12335. 0, 0, 0, 0),
  12336. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  12337. "Primary TDM6 Hostless Playback",
  12338. 0, 0, 0, 0),
  12339. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  12340. "Primary TDM6 Hostless Capture",
  12341. 0, 0, 0, 0),
  12342. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  12343. "Primary TDM7 Hostless Playback",
  12344. 0, 0, 0, 0),
  12345. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  12346. "Primary TDM7 Hostless Capture",
  12347. 0, 0, 0, 0),
  12348. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  12349. "Secondary TDM0 Hostless Playback",
  12350. 0, 0, 0, 0),
  12351. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  12352. "Secondary TDM0 Hostless Capture",
  12353. 0, 0, 0, 0),
  12354. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  12355. "Secondary TDM1 Hostless Playback",
  12356. 0, 0, 0, 0),
  12357. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  12358. "Secondary TDM1 Hostless Capture",
  12359. 0, 0, 0, 0),
  12360. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  12361. "Secondary TDM2 Hostless Playback",
  12362. 0, 0, 0, 0),
  12363. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  12364. "Secondary TDM2 Hostless Capture",
  12365. 0, 0, 0, 0),
  12366. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  12367. "Secondary TDM3 Hostless Playback",
  12368. 0, 0, 0, 0),
  12369. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  12370. "Secondary TDM3 Hostless Capture",
  12371. 0, 0, 0, 0),
  12372. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  12373. "Secondary TDM4 Hostless Playback",
  12374. 0, 0, 0, 0),
  12375. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  12376. "Secondary TDM4 Hostless Capture",
  12377. 0, 0, 0, 0),
  12378. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  12379. "Secondary TDM5 Hostless Playback",
  12380. 0, 0, 0, 0),
  12381. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  12382. "Secondary TDM5 Hostless Capture",
  12383. 0, 0, 0, 0),
  12384. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  12385. "Secondary TDM6 Hostless Playback",
  12386. 0, 0, 0, 0),
  12387. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  12388. "Secondary TDM6 Hostless Capture",
  12389. 0, 0, 0, 0),
  12390. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  12391. "Secondary TDM7 Hostless Playback",
  12392. 0, 0, 0, 0),
  12393. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  12394. "Secondary TDM7 Hostless Capture",
  12395. 0, 0, 0, 0),
  12396. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  12397. "Tertiary TDM0 Hostless Playback",
  12398. 0, 0, 0, 0),
  12399. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  12400. "Tertiary TDM0 Hostless Capture",
  12401. 0, 0, 0, 0),
  12402. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  12403. "Tertiary TDM1 Hostless Playback",
  12404. 0, 0, 0, 0),
  12405. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  12406. "Tertiary TDM1 Hostless Capture",
  12407. 0, 0, 0, 0),
  12408. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  12409. "Tertiary TDM2 Hostless Playback",
  12410. 0, 0, 0, 0),
  12411. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  12412. "Tertiary TDM2 Hostless Capture",
  12413. 0, 0, 0, 0),
  12414. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  12415. "Tertiary TDM3 Hostless Playback",
  12416. 0, 0, 0, 0),
  12417. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  12418. "Tertiary TDM3 Hostless Capture",
  12419. 0, 0, 0, 0),
  12420. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  12421. "Tertiary TDM4 Hostless Playback",
  12422. 0, 0, 0, 0),
  12423. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  12424. "Tertiary TDM4 Hostless Capture",
  12425. 0, 0, 0, 0),
  12426. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  12427. "Tertiary TDM5 Hostless Playback",
  12428. 0, 0, 0, 0),
  12429. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  12430. "Tertiary TDM5 Hostless Capture",
  12431. 0, 0, 0, 0),
  12432. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  12433. "Tertiary TDM6 Hostless Playback",
  12434. 0, 0, 0, 0),
  12435. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  12436. "Tertiary TDM6 Hostless Capture",
  12437. 0, 0, 0, 0),
  12438. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  12439. "Tertiary TDM7 Hostless Playback",
  12440. 0, 0, 0, 0),
  12441. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  12442. "Tertiary TDM7 Hostless Capture",
  12443. 0, 0, 0, 0),
  12444. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  12445. "Quaternary TDM0 Hostless Playback",
  12446. 0, 0, 0, 0),
  12447. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  12448. "Quaternary TDM0 Hostless Capture",
  12449. 0, 0, 0, 0),
  12450. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  12451. "Quaternary TDM1 Hostless Playback",
  12452. 0, 0, 0, 0),
  12453. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  12454. "Quaternary TDM1 Hostless Capture",
  12455. 0, 0, 0, 0),
  12456. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  12457. "Quaternary TDM2 Hostless Playback",
  12458. 0, 0, 0, 0),
  12459. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  12460. "Quaternary TDM2 Hostless Capture",
  12461. 0, 0, 0, 0),
  12462. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  12463. "Quaternary TDM3 Hostless Playback",
  12464. 0, 0, 0, 0),
  12465. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  12466. "Quaternary TDM3 Hostless Capture",
  12467. 0, 0, 0, 0),
  12468. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  12469. "Quaternary TDM4 Hostless Playback",
  12470. 0, 0, 0, 0),
  12471. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  12472. "Quaternary TDM4 Hostless Capture",
  12473. 0, 0, 0, 0),
  12474. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  12475. "Quaternary TDM5 Hostless Playback",
  12476. 0, 0, 0, 0),
  12477. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  12478. "Quaternary TDM5 Hostless Capture",
  12479. 0, 0, 0, 0),
  12480. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  12481. "Quaternary TDM6 Hostless Playback",
  12482. 0, 0, 0, 0),
  12483. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  12484. "Quaternary TDM6 Hostless Capture",
  12485. 0, 0, 0, 0),
  12486. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  12487. "Quaternary TDM7 Hostless Playback",
  12488. 0, 0, 0, 0),
  12489. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  12490. "Quaternary TDM7 Hostless Capture",
  12491. 0, 0, 0, 0),
  12492. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  12493. "Quinary TDM0 Hostless Playback",
  12494. 0, 0, 0, 0),
  12495. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  12496. "Quinary TDM0 Hostless Capture",
  12497. 0, 0, 0, 0),
  12498. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  12499. "Quinary TDM1 Hostless Playback",
  12500. 0, 0, 0, 0),
  12501. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  12502. "Quinary TDM1 Hostless Capture",
  12503. 0, 0, 0, 0),
  12504. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  12505. "Quinary TDM2 Hostless Playback",
  12506. 0, 0, 0, 0),
  12507. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  12508. "Quinary TDM2 Hostless Capture",
  12509. 0, 0, 0, 0),
  12510. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  12511. "Quinary TDM3 Hostless Playback",
  12512. 0, 0, 0, 0),
  12513. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  12514. "Quinary TDM3 Hostless Capture",
  12515. 0, 0, 0, 0),
  12516. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  12517. "Quinary TDM4 Hostless Playback",
  12518. 0, 0, 0, 0),
  12519. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  12520. "Quinary TDM4 Hostless Capture",
  12521. 0, 0, 0, 0),
  12522. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  12523. "Quinary TDM5 Hostless Playback",
  12524. 0, 0, 0, 0),
  12525. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  12526. "Quinary TDM5 Hostless Capture",
  12527. 0, 0, 0, 0),
  12528. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  12529. "Quinary TDM6 Hostless Playback",
  12530. 0, 0, 0, 0),
  12531. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  12532. "Quinary TDM6 Hostless Capture",
  12533. 0, 0, 0, 0),
  12534. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  12535. "Quinary TDM7 Hostless Playback",
  12536. 0, 0, 0, 0),
  12537. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  12538. "Quinary TDM7 Hostless Capture",
  12539. 0, 0, 0, 0),
  12540. /* LSM */
  12541. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  12542. 0, 0, 0, 0),
  12543. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  12544. 0, 0, 0, 0),
  12545. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  12546. 0, 0, 0, 0),
  12547. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  12548. 0, 0, 0, 0),
  12549. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  12550. 0, 0, 0, 0),
  12551. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  12552. 0, 0, 0, 0),
  12553. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  12554. 0, 0, 0, 0),
  12555. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  12556. 0, 0, 0, 0),
  12557. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  12558. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  12559. /* Backend AIF */
  12560. /* Stream name equals to backend dai link stream name */
  12561. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  12562. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  12563. 0, 0, 0, 0),
  12564. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  12565. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  12566. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  12567. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  12568. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  12569. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  12570. 0, 0, 0, 0),
  12571. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  12572. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  12573. 0, 0, 0, 0),
  12574. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  12575. 0, 0, 0, 0),
  12576. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  12577. 0, 0, 0, 0),
  12578. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  12579. "Secondary MI2S Playback SD1",
  12580. 0, 0, 0, 0),
  12581. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  12582. 0, 0, 0, 0),
  12583. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  12584. 0, 0, 0, 0),
  12585. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  12586. 0, 0, 0, 0),
  12587. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  12588. 0, 0, 0, 0),
  12589. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  12590. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  12591. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  12592. 0, 0, 0, 0),
  12593. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  12594. 0, 0, 0, 0),
  12595. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  12596. 0, 0, 0, 0),
  12597. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  12598. 0, 0, 0, 0),
  12599. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  12600. 0, 0, 0, 0),
  12601. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  12602. 0, 0, 0, 0),
  12603. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  12604. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  12605. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  12606. 0, 0, 0, 0),
  12607. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  12608. 0, 0, 0, 0),
  12609. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  12610. 0, 0, 0, 0),
  12611. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  12612. 0, 0, 0, 0),
  12613. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  12614. 0, 0, 0, 0),
  12615. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  12616. 0, 0, 0, 0),
  12617. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  12618. 0, 0, 0, 0),
  12619. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  12620. 0, 0, 0, 0),
  12621. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  12622. 0, 0, 0, 0),
  12623. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  12624. 0, 0, 0, 0),
  12625. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  12626. 0, 0, 0, 0),
  12627. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  12628. 0, 0, 0, 0),
  12629. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  12630. 0, 0, 0, 0),
  12631. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  12632. 0, 0, 0, 0),
  12633. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  12634. 0, 0, 0, 0),
  12635. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  12636. 0, 0, 0, 0),
  12637. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  12638. 0, 0, 0, 0),
  12639. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  12640. 0, 0, 0, 0),
  12641. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  12642. 0, 0, 0, 0),
  12643. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  12644. 0, 0, 0, 0),
  12645. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  12646. 0, 0, 0, 0),
  12647. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  12648. 0, 0, 0, 0),
  12649. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  12650. 0, 0, 0, 0),
  12651. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  12652. 0, 0, 0, 0),
  12653. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  12654. 0, 0, 0, 0),
  12655. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  12656. 0, 0, 0, 0),
  12657. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  12658. 0, 0, 0, 0),
  12659. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  12660. 0, 0, 0, 0),
  12661. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  12662. 0, 0, 0, 0),
  12663. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  12664. 0, 0, 0, 0),
  12665. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  12666. 0, 0, 0, 0),
  12667. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  12668. 0, 0, 0, 0),
  12669. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  12670. 0, 0, 0, 0),
  12671. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  12672. 0, 0, 0, 0),
  12673. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  12674. 0, 0, 0, 0),
  12675. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  12676. 0, 0, 0, 0),
  12677. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  12678. 0, 0, 0, 0),
  12679. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  12680. 0, 0, 0, 0),
  12681. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  12682. 0, 0, 0, 0),
  12683. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  12684. 0, 0, 0, 0),
  12685. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  12686. 0, 0, 0, 0),
  12687. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  12688. 0, 0, 0, 0),
  12689. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  12690. 0, 0, 0, 0),
  12691. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  12692. 0, 0, 0, 0),
  12693. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  12694. 0, 0, 0, 0),
  12695. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  12696. 0, 0, 0, 0),
  12697. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  12698. 0, 0, 0, 0),
  12699. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  12700. 0, 0, 0, 0),
  12701. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  12702. 0, 0, 0, 0),
  12703. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  12704. 0, 0, 0, 0),
  12705. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  12706. 0, 0, 0, 0),
  12707. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  12708. 0, 0, 0, 0),
  12709. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  12710. 0, 0, 0, 0),
  12711. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  12712. 0, 0, 0, 0),
  12713. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  12714. 0, 0, 0, 0),
  12715. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  12716. 0, 0, 0, 0),
  12717. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  12718. 0, 0, 0, 0),
  12719. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  12720. 0, 0, 0, 0),
  12721. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  12722. 0, 0, 0, 0),
  12723. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  12724. 0, 0, 0, 0),
  12725. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  12726. 0, 0, 0, 0),
  12727. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  12728. 0, 0, 0, 0),
  12729. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  12730. 0, 0, 0, 0),
  12731. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  12732. 0, 0, 0, 0),
  12733. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  12734. 0, 0, 0, 0),
  12735. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  12736. 0, 0, 0, 0),
  12737. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  12738. 0, 0, 0, 0),
  12739. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  12740. 0, 0, 0, 0),
  12741. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  12742. 0, 0, 0, 0),
  12743. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  12744. 0, 0, 0, 0),
  12745. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  12746. 0, 0, 0, 0),
  12747. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  12748. 0, 0, 0, 0),
  12749. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  12750. 0, 0, 0, 0),
  12751. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  12752. 0, 0, 0, 0),
  12753. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  12754. 0, 0, 0, 0),
  12755. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  12756. 0, 0, 0, 0),
  12757. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  12758. 0, 0, 0, 0),
  12759. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  12760. 0, 0, 0, 0),
  12761. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  12762. 0, 0, 0, 0),
  12763. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  12764. 0, 0, 0, 0),
  12765. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  12766. 0, 0, 0, 0),
  12767. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  12768. 0, 0, 0, 0),
  12769. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  12770. 0, 0, 0, 0),
  12771. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  12772. 0, 0, 0, 0),
  12773. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  12774. 0, 0, 0, 0),
  12775. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  12776. 0, 0, 0, 0),
  12777. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  12778. 0, 0, 0, 0),
  12779. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  12780. 0, 0, 0, 0),
  12781. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  12782. 0, 0, 0, 0),
  12783. /* incall */
  12784. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  12785. 0, 0, 0, 0),
  12786. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  12787. 0, 0, 0, 0),
  12788. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  12789. 0, 0, 0, 0),
  12790. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  12791. 0, 0, 0, 0),
  12792. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  12793. 0, 0, 0, 0),
  12794. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  12795. 0, 0, 0, 0),
  12796. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  12797. 0, 0, 0, 0),
  12798. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  12799. 0, 0, 0, 0),
  12800. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  12801. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  12802. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  12803. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  12804. 0, 0, 0, 0),
  12805. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  12806. 0, 0, 0, 0),
  12807. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  12808. 0, 0, 0, 0),
  12809. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  12810. 0, 0, 0, 0),
  12811. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  12812. 0, 0, 0, 0),
  12813. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  12814. 0, 0, 0, 0),
  12815. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  12816. 0, 0, 0, 0),
  12817. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  12818. 0, 0, 0, 0),
  12819. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  12820. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  12821. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  12822. 0, 0, 0, 0),
  12823. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  12824. 0, 0, 0, 0),
  12825. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  12826. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  12827. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  12828. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  12829. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  12830. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  12831. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  12832. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  12833. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  12834. /* In- call recording */
  12835. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  12836. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  12837. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  12838. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  12839. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  12840. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  12841. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  12842. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  12843. /* Switch Definitions */
  12844. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  12845. &slim_fm_switch_mixer_controls),
  12846. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  12847. &slim1_fm_switch_mixer_controls),
  12848. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  12849. &slim3_fm_switch_mixer_controls),
  12850. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  12851. &slim4_fm_switch_mixer_controls),
  12852. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  12853. &slim6_fm_switch_mixer_controls),
  12854. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12855. &pcm_rx_switch_mixer_controls),
  12856. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12857. &int0_mi2s_rx_switch_mixer_controls),
  12858. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12859. &int4_mi2s_rx_switch_mixer_controls),
  12860. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12861. &pri_mi2s_rx_switch_mixer_controls),
  12862. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12863. &sec_mi2s_rx_switch_mixer_controls),
  12864. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12865. &tert_mi2s_rx_switch_mixer_controls),
  12866. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12867. &quat_mi2s_rx_switch_mixer_controls),
  12868. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12869. &quin_mi2s_rx_switch_mixer_controls),
  12870. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12871. &hfp_pri_aux_switch_mixer_controls),
  12872. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12873. &hfp_aux_switch_mixer_controls),
  12874. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  12875. &hfp_int_switch_mixer_controls),
  12876. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  12877. &hfp_slim7_switch_mixer_controls),
  12878. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  12879. &usb_switch_mixer_controls),
  12880. /* Mixer definitions */
  12881. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12882. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  12883. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12884. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  12885. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12886. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  12887. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12888. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  12889. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12890. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  12891. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12892. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  12893. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  12894. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  12895. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  12896. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  12897. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12898. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  12899. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12900. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  12901. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12902. quaternary_mi2s_rx_mixer_controls,
  12903. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  12904. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12905. tertiary_mi2s_rx_mixer_controls,
  12906. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  12907. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12908. secondary_mi2s_rx_mixer_controls,
  12909. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  12910. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12911. secondary_mi2s_rx2_mixer_controls,
  12912. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  12913. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12914. primary_mi2s_rx_mixer_controls,
  12915. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  12916. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12917. int0_mi2s_rx_mixer_controls,
  12918. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  12919. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12920. int4_mi2s_rx_mixer_controls,
  12921. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  12922. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12923. quinary_mi2s_rx_mixer_controls,
  12924. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  12925. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12926. pri_tdm_rx_0_mixer_controls,
  12927. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  12928. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12929. pri_tdm_rx_1_mixer_controls,
  12930. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  12931. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12932. pri_tdm_rx_2_mixer_controls,
  12933. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  12934. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12935. pri_tdm_rx_3_mixer_controls,
  12936. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  12937. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12938. pri_tdm_tx_0_mixer_controls,
  12939. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  12940. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12941. sec_tdm_rx_0_mixer_controls,
  12942. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  12943. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12944. sec_tdm_rx_1_mixer_controls,
  12945. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  12946. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12947. sec_tdm_rx_2_mixer_controls,
  12948. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  12949. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12950. sec_tdm_rx_3_mixer_controls,
  12951. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  12952. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12953. sec_tdm_tx_0_mixer_controls,
  12954. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  12955. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12956. tert_tdm_rx_0_mixer_controls,
  12957. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  12958. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12959. tert_tdm_tx_0_mixer_controls,
  12960. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  12961. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12962. tert_tdm_rx_1_mixer_controls,
  12963. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  12964. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12965. tert_tdm_rx_2_mixer_controls,
  12966. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  12967. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12968. tert_tdm_rx_3_mixer_controls,
  12969. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  12970. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12971. tert_tdm_rx_4_mixer_controls,
  12972. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  12973. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12974. quat_tdm_rx_0_mixer_controls,
  12975. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  12976. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12977. quat_tdm_tx_0_mixer_controls,
  12978. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  12979. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12980. quat_tdm_rx_1_mixer_controls,
  12981. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  12982. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12983. quat_tdm_rx_2_mixer_controls,
  12984. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  12985. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12986. quat_tdm_rx_3_mixer_controls,
  12987. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  12988. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12989. quin_tdm_rx_0_mixer_controls,
  12990. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  12991. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12992. quin_tdm_tx_0_mixer_controls,
  12993. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  12994. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12995. quin_tdm_rx_1_mixer_controls,
  12996. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  12997. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12998. quin_tdm_rx_2_mixer_controls,
  12999. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  13000. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  13001. quin_tdm_rx_3_mixer_controls,
  13002. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  13003. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  13004. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  13005. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  13006. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  13007. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  13008. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  13009. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  13010. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  13011. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  13012. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  13013. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  13014. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  13015. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  13016. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  13017. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  13018. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  13019. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  13020. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  13021. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  13022. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  13023. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  13024. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  13025. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  13026. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  13027. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  13028. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  13029. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  13030. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  13031. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13032. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  13033. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13034. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  13035. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13036. tert_auxpcm_rx_mixer_controls,
  13037. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  13038. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13039. quat_auxpcm_rx_mixer_controls,
  13040. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  13041. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13042. quin_auxpcm_rx_mixer_controls,
  13043. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  13044. /* incall */
  13045. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  13046. incall_music_delivery_mixer_controls,
  13047. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  13048. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  13049. incall_music2_delivery_mixer_controls,
  13050. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  13051. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13052. slimbus_4_rx_mixer_controls,
  13053. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  13054. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13055. slimbus_6_rx_mixer_controls,
  13056. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  13057. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13058. usb_audio_rx_mixer_controls,
  13059. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  13060. /* Voice Mixer */
  13061. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  13062. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  13063. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  13064. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  13065. SND_SOC_NOPM, 0, 0,
  13066. sec_i2s_rx_voice_mixer_controls,
  13067. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  13068. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  13069. SND_SOC_NOPM, 0, 0,
  13070. sec_mi2s_rx_voice_mixer_controls,
  13071. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  13072. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  13073. SND_SOC_NOPM, 0, 0,
  13074. slimbus_rx_voice_mixer_controls,
  13075. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  13076. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  13077. SND_SOC_NOPM, 0, 0,
  13078. bt_sco_rx_voice_mixer_controls,
  13079. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  13080. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  13081. SND_SOC_NOPM, 0, 0,
  13082. afe_pcm_rx_voice_mixer_controls,
  13083. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  13084. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  13085. SND_SOC_NOPM, 0, 0,
  13086. aux_pcm_rx_voice_mixer_controls,
  13087. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  13088. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  13089. SND_SOC_NOPM, 0, 0,
  13090. sec_aux_pcm_rx_voice_mixer_controls,
  13091. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  13092. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  13093. SND_SOC_NOPM, 0, 0,
  13094. tert_aux_pcm_rx_voice_mixer_controls,
  13095. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  13096. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  13097. SND_SOC_NOPM, 0, 0,
  13098. quat_aux_pcm_rx_voice_mixer_controls,
  13099. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  13100. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  13101. SND_SOC_NOPM, 0, 0,
  13102. quin_aux_pcm_rx_voice_mixer_controls,
  13103. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  13104. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  13105. SND_SOC_NOPM, 0, 0,
  13106. hdmi_rx_voice_mixer_controls,
  13107. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  13108. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  13109. SND_SOC_NOPM, 0, 0,
  13110. mi2s_rx_voice_mixer_controls,
  13111. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  13112. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  13113. SND_SOC_NOPM, 0, 0,
  13114. pri_mi2s_rx_voice_mixer_controls,
  13115. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  13116. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  13117. SND_SOC_NOPM, 0, 0,
  13118. int0_mi2s_rx_voice_mixer_controls,
  13119. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  13120. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  13121. SND_SOC_NOPM, 0, 0,
  13122. int4_mi2s_rx_voice_mixer_controls,
  13123. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  13124. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  13125. SND_SOC_NOPM, 0, 0,
  13126. tert_mi2s_rx_voice_mixer_controls,
  13127. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  13128. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  13129. SND_SOC_NOPM, 0, 0,
  13130. quat_mi2s_rx_voice_mixer_controls,
  13131. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  13132. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  13133. SND_SOC_NOPM, 0, 0,
  13134. quin_mi2s_rx_voice_mixer_controls,
  13135. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  13136. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  13137. SND_SOC_NOPM, 0, 0,
  13138. quat_tdm_rx_2_voice_mixer_controls,
  13139. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  13140. SND_SOC_DAPM_MIXER("Voice_Tx Mixer",
  13141. SND_SOC_NOPM, 0, 0, tx_voice_mixer_controls,
  13142. ARRAY_SIZE(tx_voice_mixer_controls)),
  13143. SND_SOC_DAPM_MIXER("Voice2_Tx Mixer",
  13144. SND_SOC_NOPM, 0, 0, tx_voice2_mixer_controls,
  13145. ARRAY_SIZE(tx_voice2_mixer_controls)),
  13146. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  13147. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  13148. ARRAY_SIZE(tx_voip_mixer_controls)),
  13149. SND_SOC_DAPM_MIXER("VoLTE_Tx Mixer",
  13150. SND_SOC_NOPM, 0, 0, tx_volte_mixer_controls,
  13151. ARRAY_SIZE(tx_volte_mixer_controls)),
  13152. SND_SOC_DAPM_MIXER("VoWLAN_Tx Mixer",
  13153. SND_SOC_NOPM, 0, 0, tx_vowlan_mixer_controls,
  13154. ARRAY_SIZE(tx_vowlan_mixer_controls)),
  13155. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  13156. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  13157. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  13158. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  13159. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  13160. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  13161. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13162. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  13163. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13164. int_bt_a2dp_rx_mixer_controls,
  13165. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  13166. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13167. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  13168. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  13169. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  13170. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  13171. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  13172. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  13173. tx_voice2_stub_mixer_controls,
  13174. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  13175. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  13176. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  13177. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  13178. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  13179. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  13180. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  13181. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  13182. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  13183. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  13184. SND_SOC_NOPM, 0, 0,
  13185. slimbus_6_rx_voice_mixer_controls,
  13186. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  13187. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  13188. slimbus_7_rx_voice_mixer_controls,
  13189. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  13190. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  13191. slimbus_8_rx_voice_mixer_controls,
  13192. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  13193. /* port mixer */
  13194. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  13195. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  13196. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  13197. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  13198. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  13199. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  13200. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  13201. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  13202. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  13203. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  13204. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  13205. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  13206. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  13207. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  13208. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  13209. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  13210. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  13211. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  13212. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13213. sbus_1_rx_port_mixer_controls,
  13214. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  13215. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13216. bt_sco_rx_port_mixer_controls,
  13217. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  13218. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  13219. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  13220. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  13221. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  13222. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  13223. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  13224. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  13225. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  13226. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  13227. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  13228. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  13229. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  13230. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  13231. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  13232. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  13233. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  13234. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  13235. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  13236. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13237. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  13238. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13239. primary_mi2s_rx_port_mixer_controls,
  13240. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  13241. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13242. sec_mi2s_rx_port_mixer_controls,
  13243. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  13244. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13245. tert_mi2s_rx_port_mixer_controls,
  13246. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  13247. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13248. quat_mi2s_rx_port_mixer_controls,
  13249. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  13250. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13251. quin_mi2s_rx_port_mixer_controls,
  13252. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  13253. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  13254. pri_tdm_rx_0_port_mixer_controls,
  13255. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  13256. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  13257. pri_tdm_rx_1_port_mixer_controls,
  13258. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  13259. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  13260. pri_tdm_rx_2_port_mixer_controls,
  13261. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  13262. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  13263. pri_tdm_rx_3_port_mixer_controls,
  13264. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  13265. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  13266. sec_tdm_rx_0_port_mixer_controls,
  13267. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  13268. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  13269. sec_tdm_rx_1_port_mixer_controls,
  13270. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  13271. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  13272. sec_tdm_rx_2_port_mixer_controls,
  13273. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  13274. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  13275. sec_tdm_rx_3_port_mixer_controls,
  13276. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  13277. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  13278. tert_tdm_rx_0_port_mixer_controls,
  13279. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  13280. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  13281. tert_tdm_rx_1_port_mixer_controls,
  13282. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  13283. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  13284. tert_tdm_rx_2_port_mixer_controls,
  13285. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  13286. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  13287. tert_tdm_rx_3_port_mixer_controls,
  13288. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  13289. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  13290. quat_tdm_rx_0_port_mixer_controls,
  13291. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  13292. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  13293. quat_tdm_rx_1_port_mixer_controls,
  13294. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  13295. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  13296. quat_tdm_rx_2_port_mixer_controls,
  13297. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  13298. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  13299. quat_tdm_rx_3_port_mixer_controls,
  13300. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  13301. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  13302. quin_tdm_rx_0_port_mixer_controls,
  13303. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  13304. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  13305. quin_tdm_rx_1_port_mixer_controls,
  13306. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  13307. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  13308. quin_tdm_rx_2_port_mixer_controls,
  13309. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  13310. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  13311. quin_tdm_rx_3_port_mixer_controls,
  13312. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  13313. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13314. int0_mi2s_rx_port_mixer_controls,
  13315. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  13316. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  13317. int4_mi2s_rx_port_mixer_controls,
  13318. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  13319. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  13320. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  13321. ARRAY_SIZE(tx_qchat_mixer_controls)),
  13322. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  13323. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  13324. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  13325. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  13326. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  13327. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  13328. /* lsm mixer definitions */
  13329. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  13330. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  13331. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  13332. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  13333. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  13334. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  13335. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  13336. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  13337. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  13338. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  13339. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  13340. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  13341. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  13342. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  13343. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  13344. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  13345. /* Virtual Pins to force backends ON atm */
  13346. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  13347. SND_SOC_DAPM_INPUT("BE_IN"),
  13348. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  13349. &slim0_rx_vi_fb_lch_mux),
  13350. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  13351. &slim0_rx_vi_fb_rch_mux),
  13352. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  13353. &mi2s_rx_vi_fb_mux),
  13354. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  13355. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  13356. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  13357. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  13358. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  13359. &voc_ext_ec_mux),
  13360. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  13361. &ext_ec_ref_mux_ul1),
  13362. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  13363. &ext_ec_ref_mux_ul2),
  13364. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  13365. &ext_ec_ref_mux_ul3),
  13366. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  13367. &ext_ec_ref_mux_ul4),
  13368. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  13369. &ext_ec_ref_mux_ul5),
  13370. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  13371. &ext_ec_ref_mux_ul6),
  13372. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  13373. &ext_ec_ref_mux_ul8),
  13374. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  13375. &ext_ec_ref_mux_ul9),
  13376. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  13377. &ext_ec_ref_mux_ul10),
  13378. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  13379. &ext_ec_ref_mux_ul16),
  13380. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  13381. &ext_ec_ref_mux_ul17),
  13382. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  13383. &ext_ec_ref_mux_ul18),
  13384. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  13385. &ext_ec_ref_mux_ul19),
  13386. };
  13387. static const struct snd_soc_dapm_route intercon[] = {
  13388. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13389. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13390. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13391. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13392. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13393. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13394. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13395. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13396. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13397. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13398. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13399. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13400. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13401. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13402. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13403. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13404. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  13405. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13406. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13407. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13408. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13409. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13410. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13411. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13412. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13413. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13414. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13415. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13416. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13417. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13418. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13419. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13420. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13421. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  13422. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13423. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13424. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13425. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13426. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13427. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13428. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13429. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13430. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13431. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13432. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13433. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13434. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13435. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13436. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13437. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13438. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  13439. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13440. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13441. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13442. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13443. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13444. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13445. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13446. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13447. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13448. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13449. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13450. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13451. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13452. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13453. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13454. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13455. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  13456. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13457. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13458. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13459. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13460. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13461. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13462. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13463. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13464. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13465. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13466. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13467. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13468. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13469. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13470. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13471. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13472. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  13473. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  13474. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  13475. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  13476. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  13477. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  13478. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  13479. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  13480. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  13481. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  13482. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  13483. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  13484. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  13485. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  13486. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  13487. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  13488. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  13489. {"HDMI", NULL, "HDMI Mixer"},
  13490. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  13491. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  13492. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  13493. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  13494. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  13495. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  13496. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  13497. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  13498. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  13499. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  13500. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  13501. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  13502. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  13503. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  13504. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  13505. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  13506. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  13507. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13508. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13509. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13510. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13511. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13512. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13513. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13514. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13515. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13516. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13517. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13518. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13519. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13520. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13521. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13522. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13523. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  13524. /* incall */
  13525. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  13526. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  13527. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  13528. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  13529. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  13530. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13531. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13532. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13533. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13534. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  13535. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13536. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13537. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13538. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13539. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  13540. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13541. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13542. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13543. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13544. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13545. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13546. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13547. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13548. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13549. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13550. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13551. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13552. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13553. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13554. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13555. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13556. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  13557. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13558. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13559. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13560. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13561. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13562. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13563. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13564. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13565. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13566. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13567. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13568. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13569. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13570. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13571. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13572. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13573. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  13574. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13575. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13576. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13577. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13578. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13579. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13580. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13581. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13582. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13583. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13584. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13585. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13586. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13587. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13588. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13589. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13590. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  13591. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13592. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13593. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13594. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13595. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13596. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13597. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  13598. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13599. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13600. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13601. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13602. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13603. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13604. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13605. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13606. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13607. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13608. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13609. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13610. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13611. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13612. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13613. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13614. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13615. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13616. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13617. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13618. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13619. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13620. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13621. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13622. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13623. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13624. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13625. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13626. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13627. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13628. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13629. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13630. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13631. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13632. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13633. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13634. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13635. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13636. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13637. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13638. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13639. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  13640. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13641. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13642. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13643. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13644. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13645. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13646. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13647. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13648. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13649. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13650. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13651. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13652. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13653. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13654. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13655. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  13656. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13657. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13658. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13659. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13660. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13661. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13662. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13663. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13664. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13665. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13666. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13667. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13668. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13669. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13670. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  13671. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13672. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13673. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13674. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13675. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13676. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13677. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13678. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13679. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13680. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13681. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13682. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13683. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13684. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13685. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  13686. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13687. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  13688. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13689. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13690. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13691. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13692. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13693. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13694. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13695. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13696. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13697. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13698. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13699. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13700. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13701. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13702. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13703. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13704. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13705. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  13706. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13707. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13708. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13709. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13710. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13711. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13712. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13713. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13714. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13715. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13716. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13717. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13718. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13719. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13720. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13721. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  13722. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13723. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13724. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13725. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13726. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13727. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13728. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13729. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13730. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13731. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13732. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13733. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13734. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13735. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13736. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13737. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  13738. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13739. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13740. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13741. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13742. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13743. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13744. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13745. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13746. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13747. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13748. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13749. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13750. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13751. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13752. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13753. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13754. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13755. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  13756. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13757. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13758. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13759. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13760. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13761. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13762. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13763. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13764. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13765. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13766. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13767. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13768. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13769. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13770. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13771. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13772. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  13773. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13774. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13775. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13776. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13777. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13778. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13779. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13780. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13781. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13782. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13783. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13784. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13785. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13786. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13787. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13788. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13789. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  13790. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13791. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13792. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13793. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13794. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13795. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13796. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13797. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13798. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13799. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13800. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13801. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13802. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13803. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13804. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13805. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13806. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  13807. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13808. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13809. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13810. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13811. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13812. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13813. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13814. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13815. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13816. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13817. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13818. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13819. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13820. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13821. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13822. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13823. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  13824. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13825. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13826. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13827. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13828. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13829. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13830. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13831. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13832. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13833. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13834. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13835. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13836. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13837. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13838. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13839. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13840. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  13841. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13842. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13843. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13844. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13845. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13846. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13847. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13848. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13849. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13850. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13851. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13852. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13853. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13854. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13855. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13856. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13857. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  13858. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13859. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13860. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13861. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13862. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13863. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13864. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13865. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13866. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13867. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13868. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13869. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13870. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13871. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13872. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13873. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13874. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  13875. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13876. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13877. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13878. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13879. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13880. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13881. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13882. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13883. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13884. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13885. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13886. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13887. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13888. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13889. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13890. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13891. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  13892. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13893. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13894. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13895. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13896. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13897. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13898. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13899. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13900. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13901. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13902. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13903. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13904. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13905. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13906. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13907. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13908. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  13909. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13910. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13911. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13912. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13913. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13914. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13915. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13916. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13917. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13918. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13919. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13920. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13921. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13922. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13923. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13924. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13925. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  13926. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13927. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13928. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13929. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13930. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13931. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13932. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13933. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13934. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13935. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13936. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13937. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13938. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13939. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13940. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13941. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13942. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  13943. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13944. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13945. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13946. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13947. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13948. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13949. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13950. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13951. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13952. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13953. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13954. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13955. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13956. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13957. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13958. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13959. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  13960. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13961. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13962. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13963. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13964. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13965. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13966. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13967. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13968. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13969. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13970. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13971. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13972. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13973. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13974. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13975. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13976. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  13977. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13978. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13979. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13980. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13981. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13982. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13983. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13984. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13985. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13986. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13987. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13988. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13989. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13990. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13991. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13992. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13993. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  13994. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13995. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13996. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13997. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13998. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13999. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14000. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14001. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14002. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14003. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14004. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14005. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14006. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14007. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14008. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14009. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14010. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  14011. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14012. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14013. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14014. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14015. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14016. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14017. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14018. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14019. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14020. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14021. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14022. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14023. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14024. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14025. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14026. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14027. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  14028. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14029. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14030. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14031. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14032. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14033. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14034. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14035. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14036. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14037. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14038. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14039. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14040. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14041. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14042. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14043. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14044. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  14045. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  14046. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14047. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14048. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14049. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14050. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14051. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14052. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14053. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14054. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14055. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14056. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14057. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14058. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14059. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14060. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14061. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14062. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  14063. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14064. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14065. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14066. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14067. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14068. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14069. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14070. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14071. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14072. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14073. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14074. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14075. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14076. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14077. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14078. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14079. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  14080. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  14081. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14082. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14083. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14084. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14085. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14086. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14087. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14088. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14089. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14090. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14091. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14092. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14093. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14094. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14095. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14096. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14097. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  14098. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  14099. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14100. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14101. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14102. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14103. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14104. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14105. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14106. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14107. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14108. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14109. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14110. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14111. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14112. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14113. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14114. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14115. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  14116. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  14117. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14118. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14119. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14120. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14121. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14122. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14123. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14124. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14125. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14126. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14127. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14128. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14129. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14130. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14131. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14132. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14133. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  14134. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  14135. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14136. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14137. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14138. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14139. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14140. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14141. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14142. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14143. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14144. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14145. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14146. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14147. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14148. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14149. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14150. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14151. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  14152. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14153. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14154. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14155. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14156. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14157. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14158. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14159. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14160. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14161. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14162. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14163. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14164. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14165. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14166. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14167. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14168. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  14169. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  14170. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14171. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14172. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14173. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14174. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14175. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14176. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14177. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14178. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14179. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14180. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14181. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14182. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14183. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14184. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14185. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14186. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  14187. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  14188. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  14189. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  14190. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  14191. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  14192. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  14193. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  14194. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  14195. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  14196. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  14197. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  14198. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  14199. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  14200. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  14201. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  14202. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  14203. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  14204. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  14205. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  14206. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  14207. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  14208. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  14209. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  14210. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  14211. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  14212. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  14213. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14214. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14215. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14216. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14217. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14218. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14219. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14220. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  14221. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  14222. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14223. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14224. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  14225. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14226. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  14227. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14228. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  14229. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14230. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  14231. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  14232. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  14233. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  14234. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  14235. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  14236. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  14237. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  14238. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  14239. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  14240. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  14241. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  14242. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  14243. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  14244. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  14245. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  14246. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  14247. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  14248. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  14249. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14250. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14251. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14252. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14253. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14254. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  14255. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14256. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14257. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14258. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14259. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  14260. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  14261. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  14262. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  14263. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  14264. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14265. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14266. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14267. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14268. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14269. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14270. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14271. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14272. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14273. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14274. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14275. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14276. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14277. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14278. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14279. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14280. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14281. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14282. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14283. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14284. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14285. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14286. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14287. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14288. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14289. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14290. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14291. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14292. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14293. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14294. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14295. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14296. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14297. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14298. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14299. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14300. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14301. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14302. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14303. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14304. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14305. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14306. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14307. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14308. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14309. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14310. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14311. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14312. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14313. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14314. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14315. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14316. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14317. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14318. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14319. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14320. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14321. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14322. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14323. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14324. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14325. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14326. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14327. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14328. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14329. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14330. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14331. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14332. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14333. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14334. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14335. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14336. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14337. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14338. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14339. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14340. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14341. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14342. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14343. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14344. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14345. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14346. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14347. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14348. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14349. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14350. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14351. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14352. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14353. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14354. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14355. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14356. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14357. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14358. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14359. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14360. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14361. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14362. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14363. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14364. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14365. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14366. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14367. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14368. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14369. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14370. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14371. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14372. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14373. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14374. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14375. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14376. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14377. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14378. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14379. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14380. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14381. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14382. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14383. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14384. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14385. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14386. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14387. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14388. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14389. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14390. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14391. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14392. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14393. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14394. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14395. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14396. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14397. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14398. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14399. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14400. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14401. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14402. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14403. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14404. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14405. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14406. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14407. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14408. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14409. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14410. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14411. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14412. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14413. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14414. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14415. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14416. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14417. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14418. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14419. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14420. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14421. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14422. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14423. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14424. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14425. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14426. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14427. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14428. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14429. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14430. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14431. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14432. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14433. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14434. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14435. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14436. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14437. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14438. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14439. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14440. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14441. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14442. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14443. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14444. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14445. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14446. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14447. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14448. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14449. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14450. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14451. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14452. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14453. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14454. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14455. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14456. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14457. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14458. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14459. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14460. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14461. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14462. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14463. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14464. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14465. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14466. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14467. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14468. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14469. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14470. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14471. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14472. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14473. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14474. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14475. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14476. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14477. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14478. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14479. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14480. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14481. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14482. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  14483. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14484. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14485. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14486. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14487. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14488. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14489. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14490. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14491. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14492. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14493. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14494. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14495. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14496. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14497. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14498. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14499. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  14500. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  14501. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14502. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14503. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14504. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14505. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14506. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14507. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14508. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14509. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14510. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14511. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14512. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14513. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14514. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14515. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14516. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14517. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  14518. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  14519. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14520. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14521. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14522. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14523. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14524. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14525. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14526. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14527. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14528. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14529. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14530. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14531. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14532. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14533. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14534. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14535. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  14536. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14537. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14538. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14539. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14540. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14541. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14542. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14543. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14544. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14545. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14546. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14547. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14548. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14549. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14550. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14551. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14552. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  14553. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14554. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14555. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14556. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14557. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14558. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14559. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14560. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14561. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14562. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14563. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14564. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14565. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14566. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14567. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14568. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14569. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14570. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14571. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14572. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14573. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14574. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14575. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14576. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14577. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14578. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14579. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14580. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14581. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14582. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  14583. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14584. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  14585. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  14586. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  14587. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  14588. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  14589. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  14590. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  14591. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  14592. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  14593. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  14594. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  14595. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  14596. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  14597. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14598. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14599. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14600. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14601. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14602. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14603. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14604. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14605. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14606. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14607. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14608. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14609. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14610. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14611. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14612. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14613. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  14614. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14615. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14616. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14617. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14618. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14619. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14620. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14621. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14622. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14623. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14624. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14625. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14626. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14627. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14628. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14629. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14630. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  14631. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14632. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14633. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14634. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14635. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14636. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14637. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14638. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14639. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14640. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14641. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14642. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14643. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14644. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14645. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14646. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14647. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  14648. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14649. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14650. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14651. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14652. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14653. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14654. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14655. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14656. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14657. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14658. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14659. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14660. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14661. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14662. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14663. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14664. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  14665. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14666. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14667. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14668. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14669. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14670. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14671. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14672. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14673. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14674. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14675. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14676. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14677. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14678. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14679. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14680. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14681. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  14682. {"MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14683. {"MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14684. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14685. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14686. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14687. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14688. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14689. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14690. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14691. {"PRI_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14692. {"PRI_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14693. {"PRI_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14694. {"PRI_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14695. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14696. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14697. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14698. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14699. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14700. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  14701. {"SEC_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14702. {"SEC_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14703. {"SEC_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14704. {"SEC_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14705. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14706. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14707. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14708. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  14709. {"SEC_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14710. {"SEC_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14711. {"SEC_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14712. {"SEC_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14713. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14714. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14715. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14716. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14717. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14718. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  14719. {"SLIM_0_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14720. {"SLIM_0_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14721. {"SLIM_0_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14722. {"SLIM_0_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14723. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14724. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14725. {"SLIM_0_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14726. {"SLIM_0_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14727. {"SLIM_0_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14728. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14729. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14730. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14731. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  14732. {"SLIM_6_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14733. {"SLIM_6_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14734. {"SLIM_6_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14735. {"SLIM_6_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14736. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14737. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14738. {"SLIM_6_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14739. {"SLIM_6_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14740. {"SLIM_6_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14741. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14742. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14743. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14744. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  14745. {"USB_AUDIO_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14746. {"USB_AUDIO_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14747. {"USB_AUDIO_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14748. {"USB_AUDIO_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14749. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14750. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14751. {"USB_AUDIO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14752. {"USB_AUDIO_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14753. {"USB_AUDIO_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14754. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14755. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14756. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14757. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  14758. {"INTERNAL_BT_SCO_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14759. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14760. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14761. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14762. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14763. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14764. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14765. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14766. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14767. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14768. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14769. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  14770. {"AFE_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14771. {"AFE_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14772. {"AFE_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14773. {"AFE_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14774. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14775. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14776. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14777. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14778. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14779. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  14780. {"AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14781. {"AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14782. {"AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14783. {"AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14784. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14785. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14786. {"AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14787. {"AUX_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14788. {"AUX_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14789. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14790. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14791. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14792. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  14793. {"SEC_AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14794. {"SEC_AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14795. {"SEC_AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14796. {"SEC_AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14797. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14798. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14799. {"SEC_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14800. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14801. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14802. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14803. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  14804. {"TERT_AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14805. {"TERT_AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14806. {"TERT_AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14807. {"TERT_AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14808. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14809. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14810. {"TERT_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14811. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14812. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14813. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14814. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  14815. {"QUAT_AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14816. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14817. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14818. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14819. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14820. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14821. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14822. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14823. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14824. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14825. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  14826. {"QUIN_AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14827. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14828. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14829. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14830. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14831. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14832. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14833. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14834. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14835. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14836. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  14837. {"HDMI_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14838. {"HDMI_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14839. {"HDMI_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14840. {"HDMI_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14841. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14842. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14843. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14844. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14845. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14846. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  14847. {"HDMI", NULL, "HDMI_DL_HL"},
  14848. {"MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14849. {"MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14850. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14851. {"MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14852. {"MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14853. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14854. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14855. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14856. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14857. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14858. {"PRI_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14859. {"PRI_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14860. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14861. {"PRI_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14862. {"PRI_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14863. {"PRI_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14864. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14865. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14866. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14867. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14868. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14869. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14870. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  14871. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14872. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14873. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14874. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14875. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14876. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  14877. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14878. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14879. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14880. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14881. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14882. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  14883. {"TERT_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14884. {"TERT_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14885. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14886. {"TERT_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14887. {"TERT_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14888. {"TERT_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14889. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14890. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14891. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14892. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14893. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14894. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14895. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  14896. {"QUAT_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14897. {"QUAT_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14898. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14899. {"QUAT_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14900. {"QUAT_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14901. {"QUAT_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14902. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14903. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14904. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14905. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14906. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14907. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  14908. {"QUIN_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  14909. {"QUIN_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  14910. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14911. {"QUIN_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  14912. {"QUIN_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  14913. {"QUIN_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  14914. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  14915. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  14916. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14917. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14918. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14919. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  14920. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14921. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  14922. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14923. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14924. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14925. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14926. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14927. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14928. {"CS-VOICE_UL1", NULL, "VOC_EXT_EC MUX"},
  14929. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  14930. {"VoLTE_UL", NULL, "VOC_EXT_EC MUX"},
  14931. {"VOICE2_UL", NULL, "VOC_EXT_EC MUX"},
  14932. {"VoWLAN_UL", NULL, "VOC_EXT_EC MUX"},
  14933. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  14934. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  14935. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14936. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14937. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14938. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14939. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14940. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14941. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14942. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14943. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14944. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14945. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14946. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14947. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14948. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14949. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14950. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14951. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14952. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14953. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14954. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14955. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14956. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14957. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14958. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14959. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14960. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14961. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14962. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14963. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14964. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14965. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14966. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14967. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14968. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14969. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14970. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14971. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14972. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14973. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14974. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14975. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14976. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14977. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14978. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14979. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14980. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14981. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14982. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14983. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14984. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14985. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14986. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14987. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14988. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14989. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14990. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14991. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14992. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14993. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14994. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14995. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14996. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14997. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14998. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14999. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  15000. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  15001. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  15002. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  15003. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  15004. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  15005. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  15006. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  15007. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  15008. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  15009. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  15010. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  15011. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  15012. {"Voice_Tx Mixer", "PRI_TX_Voice", "PRI_I2S_TX"},
  15013. {"Voice_Tx Mixer", "PRI_MI2S_TX_Voice", "PRI_MI2S_TX"},
  15014. {"Voice_Tx Mixer", "MI2S_TX_Voice", "MI2S_TX"},
  15015. {"Voice_Tx Mixer", "TERT_MI2S_TX_Voice", "TERT_MI2S_TX"},
  15016. {"Voice_Tx Mixer", "SLIM_0_TX_Voice", "SLIMBUS_0_TX"},
  15017. {"Voice_Tx Mixer", "SLIM_7_TX_Voice", "SLIMBUS_7_TX"},
  15018. {"Voice_Tx Mixer", "SLIM_8_TX_Voice", "SLIMBUS_8_TX"},
  15019. {"Voice_Tx Mixer", "USB_AUDIO_TX_Voice", "USB_AUDIO_TX"},
  15020. {"Voice_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice", "INT_BT_SCO_TX"},
  15021. {"Voice_Tx Mixer", "AFE_PCM_TX_Voice", "PCM_TX"},
  15022. {"Voice_Tx Mixer", "AUX_PCM_TX_Voice", "AUX_PCM_TX"},
  15023. {"Voice_Tx Mixer", "SEC_AUX_PCM_TX_Voice", "SEC_AUX_PCM_TX"},
  15024. {"Voice_Tx Mixer", "TERT_AUX_PCM_TX_Voice", "TERT_AUX_PCM_TX"},
  15025. {"Voice_Tx Mixer", "QUAT_AUX_PCM_TX_Voice", "QUAT_AUX_PCM_TX"},
  15026. {"Voice_Tx Mixer", "QUIN_AUX_PCM_TX_Voice", "QUIN_AUX_PCM_TX"},
  15027. {"Voice_Tx Mixer", "SEC_MI2S_TX_Voice", "SEC_MI2S_TX"},
  15028. {"CS-VOICE_UL1", NULL, "Voice_Tx Mixer"},
  15029. {"Voice2_Tx Mixer", "PRI_TX_Voice2", "PRI_I2S_TX"},
  15030. {"Voice2_Tx Mixer", "PRI_MI2S_TX_Voice2", "PRI_MI2S_TX"},
  15031. {"Voice2_Tx Mixer", "MI2S_TX_Voice2", "MI2S_TX"},
  15032. {"Voice2_Tx Mixer", "TERT_MI2S_TX_Voice2", "TERT_MI2S_TX"},
  15033. {"Voice2_Tx Mixer", "SLIM_0_TX_Voice2", "SLIMBUS_0_TX"},
  15034. {"Voice2_Tx Mixer", "SLIM_7_TX_Voice2", "SLIMBUS_7_TX"},
  15035. {"Voice2_Tx Mixer", "SLIM_8_TX_Voice2", "SLIMBUS_8_TX"},
  15036. {"Voice2_Tx Mixer", "USB_AUDIO_TX_Voice2", "USB_AUDIO_TX"},
  15037. {"Voice2_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice2", "INT_BT_SCO_TX"},
  15038. {"Voice2_Tx Mixer", "AFE_PCM_TX_Voice2", "PCM_TX"},
  15039. {"Voice2_Tx Mixer", "AUX_PCM_TX_Voice2", "AUX_PCM_TX"},
  15040. {"Voice2_Tx Mixer", "SEC_AUX_PCM_TX_Voice2", "SEC_AUX_PCM_TX"},
  15041. {"Voice2_Tx Mixer", "TERT_AUX_PCM_TX_Voice2", "TERT_AUX_PCM_TX"},
  15042. {"Voice2_Tx Mixer", "QUAT_AUX_PCM_TX_Voice2", "QUAT_AUX_PCM_TX"},
  15043. {"Voice2_Tx Mixer", "QUIN_AUX_PCM_TX_Voice2", "QUIN_AUX_PCM_TX"},
  15044. {"VOICE2_UL", NULL, "Voice2_Tx Mixer"},
  15045. {"VoLTE_Tx Mixer", "PRI_TX_VoLTE", "PRI_I2S_TX"},
  15046. {"VoLTE_Tx Mixer", "SLIM_0_TX_VoLTE", "SLIMBUS_0_TX"},
  15047. {"VoLTE_Tx Mixer", "SLIM_7_TX_VoLTE", "SLIMBUS_7_TX"},
  15048. {"VoLTE_Tx Mixer", "SLIM_8_TX_VoLTE", "SLIMBUS_8_TX"},
  15049. {"VoLTE_Tx Mixer", "USB_AUDIO_TX_VoLTE", "USB_AUDIO_TX"},
  15050. {"VoLTE_Tx Mixer", "INTERNAL_BT_SCO_TX_VoLTE", "INT_BT_SCO_TX"},
  15051. {"VoLTE_Tx Mixer", "AFE_PCM_TX_VoLTE", "PCM_TX"},
  15052. {"VoLTE_Tx Mixer", "AUX_PCM_TX_VoLTE", "AUX_PCM_TX"},
  15053. {"VoLTE_Tx Mixer", "SEC_AUX_PCM_TX_VoLTE", "SEC_AUX_PCM_TX"},
  15054. {"VoLTE_Tx Mixer", "TERT_AUX_PCM_TX_VoLTE", "TERT_AUX_PCM_TX"},
  15055. {"VoLTE_Tx Mixer", "QUAT_AUX_PCM_TX_VoLTE", "QUAT_AUX_PCM_TX"},
  15056. {"VoLTE_Tx Mixer", "QUIN_AUX_PCM_TX_VoLTE", "QUIN_AUX_PCM_TX"},
  15057. {"VoLTE_Tx Mixer", "MI2S_TX_VoLTE", "MI2S_TX"},
  15058. {"VoLTE_Tx Mixer", "PRI_MI2S_TX_VoLTE", "PRI_MI2S_TX"},
  15059. {"VoLTE_Tx Mixer", "TERT_MI2S_TX_VoLTE", "TERT_MI2S_TX"},
  15060. {"VoLTE_UL", NULL, "VoLTE_Tx Mixer"},
  15061. {"VoWLAN_Tx Mixer", "PRI_TX_VoWLAN", "PRI_I2S_TX"},
  15062. {"VoWLAN_Tx Mixer", "SLIM_0_TX_VoWLAN", "SLIMBUS_0_TX"},
  15063. {"VoWLAN_Tx Mixer", "SLIM_7_TX_VoWLAN", "SLIMBUS_7_TX"},
  15064. {"VoWLAN_Tx Mixer", "SLIM_8_TX_VoWLAN", "SLIMBUS_8_TX"},
  15065. {"VoWLAN_Tx Mixer", "USB_AUDIO_TX_VoWLAN", "USB_AUDIO_TX"},
  15066. {"VoWLAN_Tx Mixer", "INTERNAL_BT_SCO_TX_VoWLAN", "INT_BT_SCO_TX"},
  15067. {"VoWLAN_Tx Mixer", "AFE_PCM_TX_VoWLAN", "PCM_TX"},
  15068. {"VoWLAN_Tx Mixer", "AUX_PCM_TX_VoWLAN", "AUX_PCM_TX"},
  15069. {"VoWLAN_Tx Mixer", "SEC_AUX_PCM_TX_VoWLAN", "SEC_AUX_PCM_TX"},
  15070. {"VoWLAN_Tx Mixer", "TERT_AUX_PCM_TX_VoWLAN", "TERT_AUX_PCM_TX"},
  15071. {"VoWLAN_Tx Mixer", "QUAT_AUX_PCM_TX_VoWLAN", "QUAT_AUX_PCM_TX"},
  15072. {"VoWLAN_Tx Mixer", "QUIN_AUX_PCM_TX_VoWLAN", "QUIN_AUX_PCM_TX"},
  15073. {"VoWLAN_Tx Mixer", "MI2S_TX_VoWLAN", "MI2S_TX"},
  15074. {"VoWLAN_Tx Mixer", "PRI_MI2S_TX_VoWLAN", "PRI_MI2S_TX"},
  15075. {"VoWLAN_Tx Mixer", "TERT_MI2S_TX_VoWLAN", "TERT_MI2S_TX"},
  15076. {"VoWLAN_UL", NULL, "VoWLAN_Tx Mixer"},
  15077. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  15078. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  15079. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  15080. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  15081. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  15082. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  15083. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  15084. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  15085. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  15086. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  15087. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  15088. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  15089. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  15090. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  15091. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  15092. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  15093. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  15094. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  15095. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  15096. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  15097. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  15098. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  15099. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  15100. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  15101. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  15102. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  15103. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  15104. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  15105. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  15106. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  15107. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  15108. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  15109. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  15110. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  15111. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  15112. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  15113. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  15114. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  15115. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  15116. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  15117. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  15118. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  15119. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  15120. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  15121. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  15122. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  15123. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  15124. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  15125. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  15126. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  15127. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  15128. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  15129. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  15130. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  15131. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  15132. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  15133. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  15134. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  15135. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  15136. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  15137. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  15138. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  15139. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  15140. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  15141. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  15142. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  15143. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  15144. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  15145. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  15146. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  15147. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  15148. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  15149. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15150. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15151. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15152. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  15153. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  15154. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  15155. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  15156. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  15157. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  15158. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15159. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15160. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15161. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  15162. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  15163. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  15164. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  15165. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  15166. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  15167. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15168. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15169. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15170. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  15171. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  15172. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  15173. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  15174. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  15175. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  15176. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15177. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15178. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15179. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  15180. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  15181. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  15182. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  15183. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  15184. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  15185. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15186. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15187. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15188. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  15189. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  15190. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  15191. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  15192. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  15193. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  15194. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15195. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  15196. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  15197. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  15198. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  15199. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  15200. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  15201. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15202. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  15203. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  15204. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  15205. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  15206. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  15207. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  15208. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15209. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  15210. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  15211. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  15212. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  15213. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  15214. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  15215. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  15216. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  15217. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  15218. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  15219. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  15220. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  15221. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  15222. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  15223. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  15224. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  15225. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  15226. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  15227. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  15228. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  15229. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  15230. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  15231. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  15232. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  15233. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  15234. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  15235. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  15236. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  15237. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  15238. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  15239. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  15240. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  15241. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  15242. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  15243. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  15244. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  15245. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  15246. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  15247. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  15248. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  15249. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  15250. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  15251. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  15252. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  15253. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  15254. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  15255. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  15256. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  15257. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  15258. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  15259. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  15260. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  15261. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  15262. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  15263. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  15264. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  15265. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  15266. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  15267. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  15268. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  15269. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  15270. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  15271. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  15272. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  15273. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  15274. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  15275. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  15276. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  15277. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  15278. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  15279. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  15280. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  15281. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  15282. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  15283. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  15284. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  15285. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  15286. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  15287. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  15288. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  15289. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  15290. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  15291. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  15292. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  15293. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  15294. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  15295. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  15296. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  15297. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  15298. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  15299. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  15300. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  15301. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  15302. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  15303. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  15304. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  15305. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  15306. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  15307. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  15308. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  15309. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  15310. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15311. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15312. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15313. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15314. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15315. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15316. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15317. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15318. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  15319. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  15320. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  15321. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  15322. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15323. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15324. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15325. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15326. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15327. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15328. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15329. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15330. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  15331. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15332. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15333. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15334. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15335. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15336. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15337. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15338. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15339. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  15340. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  15341. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  15342. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  15343. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15344. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15345. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15346. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15347. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15348. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15349. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15350. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15351. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  15352. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15353. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15354. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15355. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15356. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15357. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15358. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15359. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15360. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  15361. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  15362. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  15363. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  15364. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15365. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15366. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15367. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15368. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15369. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15370. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15371. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15372. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  15373. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15374. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15375. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15376. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15377. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15378. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15379. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15380. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15381. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  15382. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  15383. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  15384. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  15385. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15386. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15387. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15388. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15389. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15390. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15391. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15392. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15393. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  15394. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15395. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15396. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15397. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15398. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15399. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15400. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15401. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15402. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  15403. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  15404. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  15405. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  15406. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15407. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15408. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15409. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15410. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15411. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15412. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15413. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15414. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  15415. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15416. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15417. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15418. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15419. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15420. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15421. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15422. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15423. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  15424. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  15425. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  15426. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  15427. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15428. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15429. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15430. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15431. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15432. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15433. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15434. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15435. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  15436. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15437. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15438. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15439. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15440. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15441. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15442. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15443. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15444. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  15445. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  15446. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  15447. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  15448. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15449. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15450. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15451. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15452. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15453. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15454. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15455. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15456. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  15457. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15458. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15459. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15460. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15461. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15462. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15463. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15464. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15465. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  15466. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  15467. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  15468. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  15469. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15470. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15471. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15472. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15473. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15474. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15475. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15476. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15477. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  15478. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15479. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15480. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15481. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15482. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15483. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15484. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15485. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15486. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15487. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15488. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15489. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15490. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15491. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15492. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15493. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15494. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15495. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15496. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15497. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15498. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  15499. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15500. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15501. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15502. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15503. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15504. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15505. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15506. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15507. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15508. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15509. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15510. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15511. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15512. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15513. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15514. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15515. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15516. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15517. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15518. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15519. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  15520. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15521. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15522. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15523. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15524. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15525. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15526. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15527. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15528. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15529. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15530. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15531. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15532. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15533. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15534. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15535. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15536. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15537. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15538. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15539. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15540. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  15541. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15542. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15543. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15544. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15545. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15546. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15547. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15548. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15549. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15550. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15551. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15552. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15553. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15554. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15555. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15556. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15557. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15558. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15559. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15560. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15561. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  15562. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15563. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15564. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15565. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15566. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15567. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15568. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15569. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15570. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15571. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15572. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15573. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15574. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15575. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15576. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15577. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15578. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15579. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15580. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15581. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15582. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  15583. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15584. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15585. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15586. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15587. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15588. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15589. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15590. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15591. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15592. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15593. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15594. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15595. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15596. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15597. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15598. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15599. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15600. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15601. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15602. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15603. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  15604. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15605. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15606. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15607. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15608. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15609. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15610. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15611. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15612. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15613. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15614. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15615. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15616. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15617. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15618. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15619. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15620. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15621. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15622. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15623. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15624. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  15625. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15626. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15627. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15628. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15629. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15630. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15631. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15632. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15633. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15634. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15635. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15636. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15637. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15638. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15639. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15640. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15641. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15642. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15643. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15644. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15645. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  15646. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15647. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15648. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15649. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15650. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15651. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15652. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15653. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15654. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15655. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15656. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15657. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15658. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15659. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15660. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15661. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15662. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15663. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15664. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15665. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15666. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  15667. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15668. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15669. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15670. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15671. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15672. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15673. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15674. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15675. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15676. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15677. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15678. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15679. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15680. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15681. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15682. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15683. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15684. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15685. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15686. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15687. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  15688. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15689. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15690. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15691. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15692. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15693. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15694. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15695. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15696. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15697. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15698. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15699. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15700. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15701. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15702. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15703. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15704. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15705. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15706. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15707. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15708. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  15709. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15710. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15711. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15712. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15713. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15714. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15715. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15716. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15717. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  15718. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  15719. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  15720. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  15721. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15722. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  15723. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  15724. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  15725. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  15726. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  15727. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  15728. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  15729. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  15730. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15731. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15732. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15733. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15734. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15735. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15736. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15737. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15738. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15739. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15740. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  15741. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15742. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15743. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15744. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15745. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15746. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15747. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15748. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15749. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15750. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15751. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  15752. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15753. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15754. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15755. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15756. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15757. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15758. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15759. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15760. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15761. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15762. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15763. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15764. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15765. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15766. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15767. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15768. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15769. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  15770. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15771. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15772. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  15773. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  15774. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  15775. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  15776. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  15777. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  15778. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15779. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15780. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15781. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15782. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15783. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  15784. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15785. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15786. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15787. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  15788. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15789. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15790. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15791. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  15792. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15793. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15794. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15795. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  15796. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15797. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15798. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15799. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  15800. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15801. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15802. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15803. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15804. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15805. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15806. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15807. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15808. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15809. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  15810. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15811. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15812. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15813. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15814. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15815. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15816. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15817. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15818. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15819. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  15820. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15821. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15822. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15823. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15824. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15825. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15826. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15827. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15828. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15829. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15830. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15831. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  15832. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15833. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15834. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15835. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15836. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15837. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15838. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15839. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15840. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15841. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15842. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15843. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  15844. {"STUB_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15845. {"STUB_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15846. {"STUB_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15847. {"STUB_RX", NULL, "STUB_RX Mixer"},
  15848. {"SLIMBUS_1_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15849. {"SLIMBUS_1_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15850. {"SLIMBUS_1_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15851. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  15852. {"AFE_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15853. {"AFE_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15854. {"AFE_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15855. {"SLIMBUS_3_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15856. {"SLIMBUS_3_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15857. {"SLIMBUS_3_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15858. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  15859. {"SLIM_7_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  15860. {"SLIM_7_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  15861. {"SLIM_7_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  15862. {"SLIM_7_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  15863. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15864. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15865. {"SLIM_7_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15866. {"SLIM_7_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15867. {"SLIM_7_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15868. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15869. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15870. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15871. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  15872. {"SLIM_8_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
  15873. {"SLIM_8_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
  15874. {"SLIM_8_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
  15875. {"SLIM_8_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
  15876. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15877. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15878. {"SLIM_8_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  15879. {"SLIM_8_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  15880. {"SLIM_8_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  15881. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15882. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15883. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15884. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  15885. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15886. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15887. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15888. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  15889. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15890. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15891. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  15892. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  15893. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15894. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  15895. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  15896. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  15897. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  15898. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15899. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15900. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15901. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15902. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15903. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15904. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15905. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15906. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15907. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15908. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15909. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15910. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  15911. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15912. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  15913. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15914. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  15915. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15916. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  15917. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15918. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15919. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  15920. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15921. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15922. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15923. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15924. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15925. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15926. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15927. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15928. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15929. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  15930. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15931. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15932. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15933. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15934. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15935. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15936. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15937. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15938. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  15939. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15940. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15941. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15942. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15943. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15944. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15945. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15946. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  15947. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15948. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15949. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15950. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15951. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15952. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15953. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15954. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15955. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15956. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  15957. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15958. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15959. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15960. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15961. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15962. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15963. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15964. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  15965. /* Backend Enablement */
  15966. {"BE_OUT", NULL, "PRI_I2S_RX"},
  15967. {"BE_OUT", NULL, "SEC_I2S_RX"},
  15968. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  15969. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  15970. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  15971. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15972. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  15973. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  15974. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  15975. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  15976. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  15977. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  15978. {"BE_OUT", NULL, "HDMI"},
  15979. {"BE_OUT", NULL, "DISPLAY_PORT"},
  15980. {"BE_OUT", NULL, "SPDIF_RX"},
  15981. {"BE_OUT", NULL, "MI2S_RX"},
  15982. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  15983. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  15984. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  15985. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  15986. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  15987. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  15988. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  15989. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  15990. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15991. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  15992. {"BE_OUT", NULL, "INT_FM_RX"},
  15993. {"BE_OUT", NULL, "PCM_RX"},
  15994. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15995. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15996. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  15997. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  15998. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  15999. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  16000. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  16001. {"BE_OUT", NULL, "INT_FM_RX"},
  16002. {"BE_OUT", NULL, "PCM_RX"},
  16003. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  16004. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  16005. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  16006. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  16007. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  16008. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  16009. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  16010. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  16011. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  16012. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  16013. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  16014. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  16015. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  16016. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  16017. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  16018. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  16019. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  16020. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  16021. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  16022. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  16023. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  16024. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  16025. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  16026. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  16027. {"PRI_I2S_TX", NULL, "BE_IN"},
  16028. {"MI2S_TX", NULL, "BE_IN"},
  16029. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  16030. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  16031. {"PRI_MI2S_TX", NULL, "BE_IN"},
  16032. {"TERT_MI2S_TX", NULL, "BE_IN"},
  16033. {"INT2_MI2S_TX", NULL, "BE_IN"},
  16034. {"INT3_MI2S_TX", NULL, "BE_IN"},
  16035. {"INT5_MI2S_TX", NULL, "BE_IN"},
  16036. {"SEC_MI2S_TX", NULL, "BE_IN"},
  16037. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  16038. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  16039. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  16040. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  16041. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  16042. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  16043. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  16044. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  16045. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  16046. {"USB_AUDIO_TX", NULL, "BE_IN" },
  16047. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  16048. {"INT_FM_TX", NULL, "BE_IN"},
  16049. {"PCM_TX", NULL, "BE_IN"},
  16050. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  16051. {"BE_OUT", NULL, "STUB_RX"},
  16052. {"STUB_TX", NULL, "BE_IN"},
  16053. {"STUB_1_TX", NULL, "BE_IN"},
  16054. {"BE_OUT", NULL, "AUX_PCM_RX"},
  16055. {"AUX_PCM_TX", NULL, "BE_IN"},
  16056. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  16057. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  16058. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  16059. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  16060. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  16061. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  16062. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  16063. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  16064. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  16065. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  16066. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  16067. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  16068. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  16069. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  16070. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  16071. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  16072. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  16073. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  16074. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  16075. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  16076. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  16077. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  16078. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  16079. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  16080. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  16081. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  16082. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  16083. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  16084. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  16085. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  16086. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  16087. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  16088. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  16089. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  16090. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  16091. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  16092. };
  16093. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  16094. struct snd_pcm_hw_params *params)
  16095. {
  16096. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  16097. unsigned int be_id = rtd->dai_link->id;
  16098. if (be_id >= MSM_BACKEND_DAI_MAX) {
  16099. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  16100. return -EINVAL;
  16101. }
  16102. mutex_lock(&routing_lock);
  16103. msm_bedais[be_id].sample_rate = params_rate(params);
  16104. msm_bedais[be_id].channel = params_channels(params);
  16105. msm_bedais[be_id].format = params_format(params);
  16106. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  16107. __func__, msm_bedais[be_id].sample_rate,
  16108. msm_bedais[be_id].format, be_id);
  16109. mutex_unlock(&routing_lock);
  16110. return 0;
  16111. }
  16112. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  16113. {
  16114. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  16115. unsigned int be_id = rtd->dai_link->id;
  16116. int i, session_type, path_type, topology;
  16117. struct msm_pcm_routing_bdai_data *bedai;
  16118. struct msm_pcm_routing_fdai_data *fdai;
  16119. pr_debug("%s: substream->pcm->id:%s\n",
  16120. __func__, substream->pcm->id);
  16121. if (be_id >= MSM_BACKEND_DAI_MAX) {
  16122. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  16123. return -EINVAL;
  16124. }
  16125. bedai = &msm_bedais[be_id];
  16126. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  16127. 0 : 1);
  16128. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  16129. path_type = ADM_PATH_PLAYBACK;
  16130. else
  16131. path_type = ADM_PATH_LIVE_REC;
  16132. mutex_lock(&routing_lock);
  16133. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  16134. if (!is_mm_lsm_fe_id(i))
  16135. continue;
  16136. fdai = &fe_dai_map[i][session_type];
  16137. if (fdai->strm_id != INVALID_SESSION) {
  16138. int idx;
  16139. int port_id;
  16140. unsigned long copp =
  16141. session_copp_map[i][session_type][be_id];
  16142. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  16143. if (test_bit(idx, &copp))
  16144. break;
  16145. fdai->be_srate = bedai->sample_rate;
  16146. port_id = bedai->port_id;
  16147. topology = adm_get_topology_for_port_copp_idx(port_id,
  16148. idx);
  16149. adm_close(bedai->port_id, fdai->perf_mode, idx);
  16150. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  16151. __func__, copp, i, session_type, be_id,
  16152. topology);
  16153. clear_bit(idx,
  16154. &session_copp_map[i][session_type][be_id]);
  16155. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  16156. (bedai->passthr_mode[i] == LEGACY_PCM))
  16157. msm_pcm_routing_deinit_pp(bedai->port_id,
  16158. topology);
  16159. }
  16160. }
  16161. bedai->active = 0;
  16162. bedai->sample_rate = 0;
  16163. bedai->channel = 0;
  16164. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  16165. if (bedai->passthr_mode[i] != LISTEN)
  16166. bedai->passthr_mode[i] = LEGACY_PCM;
  16167. }
  16168. mutex_unlock(&routing_lock);
  16169. return 0;
  16170. }
  16171. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  16172. {
  16173. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  16174. unsigned int be_id = rtd->dai_link->id;
  16175. int i, path_type, topology;
  16176. int session_type = INVALID_SESSION;
  16177. struct msm_pcm_routing_bdai_data *bedai;
  16178. u32 channels, sample_rate;
  16179. uint16_t bits_per_sample = 16, voc_path_type;
  16180. struct msm_pcm_routing_fdai_data *fdai;
  16181. u32 session_id;
  16182. struct media_format_info voc_be_media_format;
  16183. bool is_lsm;
  16184. pr_debug("%s: substream->pcm->id:%s\n",
  16185. __func__, substream->pcm->id);
  16186. if (be_id >= MSM_BACKEND_DAI_MAX) {
  16187. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  16188. return -EINVAL;
  16189. }
  16190. bedai = &msm_bedais[be_id];
  16191. mutex_lock(&routing_lock);
  16192. if (bedai->active == 1)
  16193. goto done; /* Ignore prepare if back-end already active */
  16194. /* AFE port is not active at this point. However, still
  16195. * go ahead setting active flag under the notion that
  16196. * QDSP6 is able to handle ADM starting before AFE port
  16197. * is started.
  16198. */
  16199. bedai->active = 1;
  16200. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  16201. if (!(is_mm_lsm_fe_id(i) &&
  16202. route_check_fe_id_adm_support(i)))
  16203. continue;
  16204. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  16205. if (bedai->passthr_mode[i] != LEGACY_PCM)
  16206. path_type = ADM_PATH_COMPRESSED_RX;
  16207. else
  16208. path_type = ADM_PATH_PLAYBACK;
  16209. session_type = SESSION_TYPE_RX;
  16210. } else {
  16211. path_type = ADM_PATH_LIVE_REC;
  16212. session_type = SESSION_TYPE_TX;
  16213. }
  16214. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  16215. (i <= MSM_FRONTEND_DAI_LSM8);
  16216. fdai = &fe_dai_map[i][session_type];
  16217. if (fdai->strm_id != INVALID_SESSION) {
  16218. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  16219. if (session_type == SESSION_TYPE_TX &&
  16220. fdai->be_srate &&
  16221. (fdai->be_srate != bedai->sample_rate)) {
  16222. pr_debug("%s: flush strm %d diff BE rates\n",
  16223. __func__,
  16224. fdai->strm_id);
  16225. if (fdai->event_info.event_func)
  16226. fdai->event_info.event_func(
  16227. MSM_PCM_RT_EVT_BUF_RECFG,
  16228. fdai->event_info.priv_data);
  16229. fdai->be_srate = 0; /* might not need it */
  16230. }
  16231. bits_per_sample = msm_routing_get_bit_width(
  16232. bedai->format);
  16233. app_type =
  16234. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  16235. if (app_type && is_lsm) {
  16236. app_type_idx =
  16237. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  16238. sample_rate =
  16239. fe_dai_app_type_cfg[i][session_type][be_id]
  16240. .sample_rate;
  16241. bits_per_sample =
  16242. lsm_app_type_cfg[app_type_idx].bit_width;
  16243. } else if (app_type) {
  16244. app_type_idx =
  16245. msm_pcm_routing_get_app_type_idx(app_type);
  16246. sample_rate =
  16247. fe_dai_app_type_cfg[i][session_type]
  16248. [be_id].sample_rate;
  16249. bits_per_sample =
  16250. app_type_cfg[app_type_idx].bit_width;
  16251. } else
  16252. sample_rate = bedai->sample_rate;
  16253. /*
  16254. * check if ADM needs to be configured with different
  16255. * channel mapping than backend
  16256. */
  16257. if (!bedai->adm_override_ch)
  16258. channels = bedai->channel;
  16259. else
  16260. channels = bedai->adm_override_ch;
  16261. acdb_dev_id =
  16262. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  16263. topology = msm_routing_get_adm_topology(i, session_type,
  16264. be_id);
  16265. copp_idx = adm_open(bedai->port_id, path_type,
  16266. sample_rate, channels, topology,
  16267. fdai->perf_mode, bits_per_sample,
  16268. app_type, acdb_dev_id);
  16269. if ((copp_idx < 0) ||
  16270. (copp_idx >= MAX_COPPS_PER_PORT)) {
  16271. pr_err("%s: adm open failed\n", __func__);
  16272. mutex_unlock(&routing_lock);
  16273. return -EINVAL;
  16274. }
  16275. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  16276. __func__, i, session_type, be_id);
  16277. set_bit(copp_idx,
  16278. &session_copp_map[i][session_type][be_id]);
  16279. if (msm_is_resample_needed(
  16280. sample_rate,
  16281. bedai->sample_rate))
  16282. adm_copp_mfc_cfg(
  16283. bedai->port_id, copp_idx,
  16284. bedai->sample_rate);
  16285. msm_pcm_routing_build_matrix(i, session_type, path_type,
  16286. fdai->perf_mode,
  16287. bedai->passthr_mode[i]);
  16288. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  16289. (bedai->passthr_mode[i] == LEGACY_PCM))
  16290. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  16291. topology, channels);
  16292. }
  16293. }
  16294. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  16295. session_id = msm_pcm_routing_get_voc_sessionid(i);
  16296. if (session_id) {
  16297. pr_debug("%s voice session_id: 0x%x\n", __func__,
  16298. session_id);
  16299. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  16300. voc_path_type = RX_PATH;
  16301. else
  16302. voc_path_type = TX_PATH;
  16303. voc_set_route_flag(session_id, voc_path_type, 1);
  16304. memset(&voc_be_media_format, 0,
  16305. sizeof(struct media_format_info));
  16306. voc_be_media_format.port_id = bedai->port_id;
  16307. voc_be_media_format.num_channels = bedai->channel;
  16308. voc_be_media_format.sample_rate = bedai->sample_rate;
  16309. voc_be_media_format.bits_per_sample = bedai->format;
  16310. /* Defaulting this to 1 for voice call usecases */
  16311. voc_be_media_format.channel_mapping[0] = 1;
  16312. voc_set_device_config(session_id, voc_path_type,
  16313. &voc_be_media_format);
  16314. if (voc_get_route_flag(session_id, RX_PATH) &&
  16315. voc_get_route_flag(session_id, TX_PATH))
  16316. voc_enable_device(session_id);
  16317. }
  16318. }
  16319. /* Check if backend is an external ec ref port and set as needed */
  16320. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  16321. memset(&voc_be_media_format, 0,
  16322. sizeof(struct media_format_info));
  16323. /* Get format info for ec ref port from msm_bedais[] */
  16324. voc_be_media_format.port_id = bedai->port_id;
  16325. voc_be_media_format.num_channels = bedai->channel;
  16326. voc_be_media_format.bits_per_sample = bedai->format;
  16327. voc_be_media_format.sample_rate = bedai->sample_rate;
  16328. /* Defaulting this to 1 for voice call usecases */
  16329. voc_be_media_format.channel_mapping[0] = 1;
  16330. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  16331. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  16332. __func__, voc_be_media_format.port_id,
  16333. voc_be_media_format.num_channels,
  16334. voc_be_media_format.bits_per_sample,
  16335. voc_be_media_format.sample_rate);
  16336. }
  16337. done:
  16338. mutex_unlock(&routing_lock);
  16339. return 0;
  16340. }
  16341. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  16342. int fe_id)
  16343. {
  16344. int index, topo_id, be_idx;
  16345. unsigned long pp_config = 0;
  16346. bool mute_on;
  16347. int latency;
  16348. bool compr_passthr_mode = true;
  16349. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  16350. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  16351. pr_err("%s: Device pp params on invalid port %d\n",
  16352. __func__, port_id);
  16353. return -EINVAL;
  16354. }
  16355. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16356. if (port_id == msm_bedais[be_idx].port_id)
  16357. break;
  16358. }
  16359. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16360. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  16361. return -EINVAL;
  16362. }
  16363. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  16364. if (msm_bedais_pp_params[index].port_id == port_id)
  16365. break;
  16366. }
  16367. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  16368. pr_err("%s: Invalid backend pp params index %d\n",
  16369. __func__, index);
  16370. return -EINVAL;
  16371. }
  16372. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  16373. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  16374. pr_err("%s: Invalid passthrough topology 0x%x\n",
  16375. __func__, topo_id);
  16376. return -EINVAL;
  16377. }
  16378. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  16379. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  16380. compr_passthr_mode = false;
  16381. pp_config = msm_bedais_pp_params[index].pp_params_config;
  16382. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  16383. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  16384. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  16385. mute_on = msm_bedais_pp_params[index].mute_on;
  16386. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  16387. adm_send_compressed_device_mute(port_id,
  16388. copp_idx,
  16389. mute_on);
  16390. }
  16391. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  16392. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  16393. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  16394. &pp_config);
  16395. latency = msm_bedais_pp_params[index].latency;
  16396. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  16397. adm_send_compressed_device_latency(port_id,
  16398. copp_idx,
  16399. latency);
  16400. }
  16401. return 0;
  16402. }
  16403. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  16404. struct snd_ctl_elem_value *ucontrol)
  16405. {
  16406. int pp_id = ucontrol->value.integer.value[0];
  16407. int port_id = 0;
  16408. int index, be_idx, i, topo_id, idx;
  16409. bool mute;
  16410. int latency;
  16411. bool compr_passthr_mode = true;
  16412. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  16413. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16414. port_id = msm_bedais[be_idx].port_id;
  16415. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  16416. break;
  16417. }
  16418. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16419. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  16420. return -EINVAL;
  16421. }
  16422. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  16423. if (msm_bedais_pp_params[index].port_id == port_id)
  16424. break;
  16425. }
  16426. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  16427. pr_err("%s: Invalid pp params backend index %d\n",
  16428. __func__, index);
  16429. return -EINVAL;
  16430. }
  16431. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16432. MSM_FRONTEND_DAI_MM_SIZE) {
  16433. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  16434. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  16435. compr_passthr_mode = false;
  16436. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16437. unsigned long copp =
  16438. session_copp_map[i]
  16439. [SESSION_TYPE_RX][be_idx];
  16440. if (!test_bit(idx, &copp))
  16441. continue;
  16442. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  16443. idx);
  16444. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  16445. continue;
  16446. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  16447. __func__, port_id, copp, msm_bedais[be_idx].active,
  16448. msm_bedais[be_idx].passthr_mode[i]);
  16449. switch (pp_id) {
  16450. case ADM_PP_PARAM_MUTE_ID:
  16451. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  16452. mute = ucontrol->value.integer.value[1] ? true : false;
  16453. msm_bedais_pp_params[index].mute_on = mute;
  16454. set_bit(ADM_PP_PARAM_MUTE_BIT,
  16455. &msm_bedais_pp_params[index].pp_params_config);
  16456. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  16457. adm_send_compressed_device_mute(port_id,
  16458. idx, mute);
  16459. break;
  16460. case ADM_PP_PARAM_LATENCY_ID:
  16461. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  16462. msm_bedais_pp_params[index].latency =
  16463. ucontrol->value.integer.value[1];
  16464. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  16465. &msm_bedais_pp_params[index].pp_params_config);
  16466. latency = msm_bedais_pp_params[index].latency =
  16467. ucontrol->value.integer.value[1];
  16468. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  16469. adm_send_compressed_device_latency(port_id,
  16470. idx, latency);
  16471. break;
  16472. default:
  16473. pr_info("%s, device pp param %d not supported\n",
  16474. __func__, pp_id);
  16475. break;
  16476. }
  16477. }
  16478. }
  16479. return 0;
  16480. }
  16481. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  16482. struct snd_ctl_elem_value *ucontrol)
  16483. {
  16484. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  16485. return 0;
  16486. }
  16487. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  16488. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  16489. 0, 3, msm_routing_get_device_pp_params_mixer,
  16490. msm_routing_put_device_pp_params_mixer),
  16491. };
  16492. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  16493. struct snd_ctl_elem_value *ucontrol)
  16494. {
  16495. ucontrol->value.integer.value[0] =
  16496. core_get_license_status(ASM_MEDIA_FMT_APTX);
  16497. pr_debug("%s: status %ld\n", __func__,
  16498. ucontrol->value.integer.value[0]);
  16499. return 0;
  16500. }
  16501. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  16502. struct snd_ctl_elem_value *ucontrol)
  16503. {
  16504. int32_t status = 0;
  16505. status = core_set_license(ucontrol->value.integer.value[0],
  16506. APTX_CLASSIC_DEC_LICENSE_ID);
  16507. pr_debug("%s: status %d\n", __func__, status);
  16508. return status;
  16509. }
  16510. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  16511. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  16512. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  16513. msm_aptx_dec_license_control_put),
  16514. };
  16515. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  16516. struct snd_ctl_elem_info *uinfo)
  16517. {
  16518. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16519. uinfo->count = sizeof(be_dai_name_table);
  16520. return 0;
  16521. }
  16522. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  16523. unsigned int __user *bytes,
  16524. unsigned int size)
  16525. {
  16526. int i;
  16527. int ret;
  16528. if (size < sizeof(be_dai_name_table)) {
  16529. pr_err("%s: invalid size %d requested, returning\n",
  16530. __func__, size);
  16531. ret = -EINVAL;
  16532. goto done;
  16533. }
  16534. /*
  16535. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  16536. * needed when adding new backends
  16537. */
  16538. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  16539. be_dai_name_table[i].be_id = i;
  16540. strlcpy(be_dai_name_table[i].be_name,
  16541. msm_bedais[i].name,
  16542. LPASS_BE_NAME_MAX_LENGTH);
  16543. }
  16544. ret = copy_to_user(bytes, &be_dai_name_table,
  16545. sizeof(be_dai_name_table));
  16546. if (ret) {
  16547. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  16548. ret = -EFAULT;
  16549. }
  16550. done:
  16551. return ret;
  16552. }
  16553. static const struct snd_kcontrol_new
  16554. msm_routing_be_dai_name_table_mixer_controls[] = {
  16555. {
  16556. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  16557. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  16558. .info = msm_routing_be_dai_name_table_info,
  16559. .name = "Backend DAI Name Table",
  16560. .tlv.c = snd_soc_bytes_tlv_callback,
  16561. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  16562. .max = sizeof(be_dai_name_table),
  16563. .get = msm_routing_be_dai_name_table_tlv_get,
  16564. }
  16565. },
  16566. };
  16567. static int msm_routing_stereo_channel_reverse_control_get(
  16568. struct snd_kcontrol *kcontrol,
  16569. struct snd_ctl_elem_value *ucontrol)
  16570. {
  16571. ucontrol->value.integer.value[0] = swap_ch;
  16572. pr_debug("%s: Swap channel value: %ld\n", __func__,
  16573. ucontrol->value.integer.value[0]);
  16574. return 0;
  16575. }
  16576. static int msm_routing_stereo_channel_reverse_control_put(
  16577. struct snd_kcontrol *kcontrol,
  16578. struct snd_ctl_elem_value *ucontrol)
  16579. {
  16580. int i, idx, be_index, port_id;
  16581. int ret = 0;
  16582. unsigned long copp;
  16583. pr_debug("%s Swap channel value:%ld\n", __func__,
  16584. ucontrol->value.integer.value[0]);
  16585. swap_ch = ucontrol->value.integer.value[0];
  16586. mutex_lock(&routing_lock);
  16587. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16588. port_id = msm_bedais[be_index].port_id;
  16589. if (!msm_bedais[be_index].active)
  16590. continue;
  16591. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16592. MSM_FRONTEND_DAI_MM_SIZE) {
  16593. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  16594. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16595. if (!test_bit(idx, &copp))
  16596. continue;
  16597. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  16598. __func__, port_id, idx);
  16599. ret = adm_swap_speaker_channels(
  16600. port_id, idx,
  16601. msm_bedais[be_index].sample_rate,
  16602. swap_ch);
  16603. if (ret) {
  16604. pr_err("%s:Swap_channel failed, err=%d\n",
  16605. __func__, ret);
  16606. goto done;
  16607. }
  16608. }
  16609. }
  16610. }
  16611. done:
  16612. mutex_unlock(&routing_lock);
  16613. return ret;
  16614. }
  16615. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  16616. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  16617. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  16618. msm_routing_stereo_channel_reverse_control_put),
  16619. };
  16620. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  16621. .hw_params = msm_pcm_routing_hw_params,
  16622. .close = msm_pcm_routing_close,
  16623. .prepare = msm_pcm_routing_prepare,
  16624. };
  16625. /* Not used but frame seems to require it */
  16626. static int msm_routing_probe(struct snd_soc_platform *platform)
  16627. {
  16628. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  16629. ARRAY_SIZE(msm_qdsp6_widgets));
  16630. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  16631. ARRAY_SIZE(intercon));
  16632. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  16633. snd_soc_add_platform_controls(platform, lsm_controls,
  16634. ARRAY_SIZE(lsm_controls));
  16635. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  16636. ARRAY_SIZE(aanc_slim_0_rx_mux));
  16637. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  16638. ARRAY_SIZE(msm_voc_session_controls));
  16639. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  16640. ARRAY_SIZE(app_type_cfg_controls));
  16641. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  16642. ARRAY_SIZE(lsm_app_type_cfg_controls));
  16643. snd_soc_add_platform_controls(platform, module_cfg_controls,
  16644. ARRAY_SIZE(module_cfg_controls));
  16645. snd_soc_add_platform_controls(platform,
  16646. stereo_to_custom_stereo_controls,
  16647. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  16648. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  16649. ARRAY_SIZE(ec_ref_param_controls));
  16650. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  16651. ARRAY_SIZE(channel_mixer_controls));
  16652. msm_qti_pp_add_controls(platform);
  16653. msm_dts_srs_tm_add_controls(platform);
  16654. msm_dolby_dap_add_controls(platform);
  16655. snd_soc_add_platform_controls(platform,
  16656. use_ds1_or_ds2_controls,
  16657. ARRAY_SIZE(use_ds1_or_ds2_controls));
  16658. snd_soc_add_platform_controls(platform,
  16659. device_pp_params_mixer_controls,
  16660. ARRAY_SIZE(device_pp_params_mixer_controls));
  16661. snd_soc_add_platform_controls(platform,
  16662. msm_routing_be_dai_name_table_mixer_controls,
  16663. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  16664. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  16665. ARRAY_SIZE(msm_source_tracking_controls));
  16666. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  16667. ARRAY_SIZE(adm_channel_config_controls));
  16668. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  16669. ARRAY_SIZE(aptx_dec_license_controls));
  16670. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  16671. ARRAY_SIZE(stereo_channel_reverse_control));
  16672. return 0;
  16673. }
  16674. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  16675. {
  16676. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  16677. }
  16678. void msm_routing_pcm_free(struct snd_pcm *pcm)
  16679. {
  16680. msm_pcm_routing_hwdep_free(pcm);
  16681. }
  16682. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  16683. .ops = &msm_routing_pcm_ops,
  16684. .probe = msm_routing_probe,
  16685. .pcm_new = msm_routing_pcm_new,
  16686. .pcm_free = msm_routing_pcm_free,
  16687. };
  16688. static int msm_routing_pcm_probe(struct platform_device *pdev)
  16689. {
  16690. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  16691. return snd_soc_register_platform(&pdev->dev,
  16692. &msm_soc_routing_platform);
  16693. }
  16694. static int msm_routing_pcm_remove(struct platform_device *pdev)
  16695. {
  16696. snd_soc_unregister_platform(&pdev->dev);
  16697. return 0;
  16698. }
  16699. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  16700. {.compatible = "qcom,msm-pcm-routing"},
  16701. {}
  16702. };
  16703. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  16704. static struct platform_driver msm_routing_pcm_driver = {
  16705. .driver = {
  16706. .name = "msm-pcm-routing",
  16707. .owner = THIS_MODULE,
  16708. .of_match_table = msm_pcm_routing_dt_match,
  16709. },
  16710. .probe = msm_routing_pcm_probe,
  16711. .remove = msm_routing_pcm_remove,
  16712. };
  16713. int msm_routing_check_backend_enabled(int fedai_id)
  16714. {
  16715. int i;
  16716. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  16717. /* bad ID assigned in machine driver */
  16718. pr_err("%s: bad MM ID\n", __func__);
  16719. return 0;
  16720. }
  16721. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  16722. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  16723. return msm_bedais[i].active;
  16724. }
  16725. return 0;
  16726. }
  16727. static int msm_routing_set_cal(int32_t cal_type,
  16728. size_t data_size, void *data)
  16729. {
  16730. int ret = 0;
  16731. pr_debug("%s\n", __func__);
  16732. ret = cal_utils_set_cal(data_size, data, cal_data, 0, NULL);
  16733. if (ret < 0) {
  16734. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  16735. __func__, ret, cal_type);
  16736. ret = -EINVAL;
  16737. goto done;
  16738. }
  16739. done:
  16740. return ret;
  16741. }
  16742. static void msm_routing_delete_cal_data(void)
  16743. {
  16744. pr_debug("%s\n", __func__);
  16745. cal_utils_destroy_cal_types(1, &cal_data);
  16746. }
  16747. static int msm_routing_init_cal_data(void)
  16748. {
  16749. int ret = 0;
  16750. struct cal_type_info cal_type_info = {
  16751. {ADM_TOPOLOGY_CAL_TYPE,
  16752. {NULL, NULL, NULL,
  16753. msm_routing_set_cal, NULL, NULL} },
  16754. {NULL, NULL, cal_utils_match_buf_num}
  16755. };
  16756. pr_debug("%s\n", __func__);
  16757. ret = cal_utils_create_cal_types(1, &cal_data,
  16758. &cal_type_info);
  16759. if (ret < 0) {
  16760. pr_err("%s: could not create cal type!\n",
  16761. __func__);
  16762. ret = -EINVAL;
  16763. goto err;
  16764. }
  16765. return ret;
  16766. err:
  16767. msm_routing_delete_cal_data();
  16768. return ret;
  16769. }
  16770. int __init msm_soc_routing_platform_init(void)
  16771. {
  16772. mutex_init(&routing_lock);
  16773. if (msm_routing_init_cal_data())
  16774. pr_err("%s: could not init cal data!\n", __func__);
  16775. afe_set_routing_callback(
  16776. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  16777. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16778. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  16779. return platform_driver_register(&msm_routing_pcm_driver);
  16780. }
  16781. void __exit msm_soc_routing_platform_exit(void)
  16782. {
  16783. msm_routing_delete_cal_data();
  16784. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16785. mutex_destroy(&routing_lock);
  16786. platform_driver_unregister(&msm_routing_pcm_driver);
  16787. }
  16788. MODULE_DESCRIPTION("MSM routing platform driver");
  16789. MODULE_LICENSE("GPL v2");