msm-pcm-routing-v2.c 712 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052
  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[MAX_ROUTING_CAL_TYPES];
  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. /* VOIP */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  621. /* AFE_RX */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  624. /* AFE_TX */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  627. /* VOICE_STUB */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  630. /* DTMF_RX */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  633. /* QCHAT */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  636. /* VOLTE_STUB */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  639. /* LSM1 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  642. /* LSM2 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  645. /* LSM3 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  648. /* LSM4 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  651. /* LSM5 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  654. /* LSM6 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  657. /* LSM7 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  660. /* LSM8 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  663. /* VOICE2_STUB */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  666. /* VOICEMMODE1 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  669. /* VOICEMMODE2 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  672. };
  673. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  674. [MSM_BACKEND_DAI_MAX];
  675. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  676. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  677. static struct msm_pcm_stream_app_type_cfg
  678. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  679. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  680. /* The caller of this should aqcuire routing lock */
  681. void msm_pcm_routing_get_bedai_info(int be_idx,
  682. struct msm_pcm_routing_bdai_data *be_dai)
  683. {
  684. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  685. memcpy(be_dai, &msm_bedais[be_idx],
  686. sizeof(struct msm_pcm_routing_bdai_data));
  687. }
  688. /* The caller of this should aqcuire routing lock */
  689. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  690. struct msm_pcm_routing_fdai_data *fe_dai)
  691. {
  692. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  693. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  694. sizeof(struct msm_pcm_routing_fdai_data));
  695. }
  696. void msm_pcm_routing_acquire_lock(void)
  697. {
  698. mutex_lock(&routing_lock);
  699. }
  700. void msm_pcm_routing_release_lock(void)
  701. {
  702. mutex_unlock(&routing_lock);
  703. }
  704. static int msm_pcm_routing_get_app_type_idx(int app_type)
  705. {
  706. int idx;
  707. pr_debug("%s: app_type: %d\n", __func__, app_type);
  708. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  709. if (app_type_cfg[idx].app_type == app_type)
  710. return idx;
  711. }
  712. pr_info("%s: App type not available, fallback to default\n", __func__);
  713. return 0;
  714. }
  715. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  716. {
  717. int idx;
  718. pr_debug("%s: app_type: %d\n", __func__, app_type);
  719. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  720. if (lsm_app_type_cfg[idx].app_type == app_type)
  721. return idx;
  722. }
  723. pr_debug("%s: App type not available, fallback to default\n", __func__);
  724. return 0;
  725. }
  726. static bool is_mm_lsm_fe_id(int fe_id)
  727. {
  728. bool rc = true;
  729. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  730. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  731. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  732. rc = false;
  733. }
  734. return rc;
  735. }
  736. int msm_pcm_routing_reg_stream_app_type_cfg(
  737. int fedai_id, int session_type, int be_id,
  738. struct msm_pcm_stream_app_type_cfg *cfg_data)
  739. {
  740. int ret = 0;
  741. if (cfg_data == NULL) {
  742. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  743. ret = -EINVAL;
  744. goto done;
  745. }
  746. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  747. __func__, fedai_id, session_type, be_id,
  748. cfg_data->app_type, cfg_data->acdb_dev_id,
  749. cfg_data->sample_rate);
  750. if (!is_mm_lsm_fe_id(fedai_id)) {
  751. pr_err("%s: Invalid machine driver ID %d\n",
  752. __func__, fedai_id);
  753. ret = -EINVAL;
  754. goto done;
  755. }
  756. if (session_type != SESSION_TYPE_RX &&
  757. session_type != SESSION_TYPE_TX) {
  758. pr_err("%s: Invalid session type %d\n",
  759. __func__, session_type);
  760. ret = -EINVAL;
  761. goto done;
  762. }
  763. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  764. pr_err("%s: Received out of bounds be_id %d\n",
  765. __func__, be_id);
  766. ret = -EINVAL;
  767. goto done;
  768. }
  769. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  770. /*
  771. * Store the BE ID of the configuration information set as the latest so
  772. * the get mixer control knows what to return.
  773. */
  774. last_be_id_configured[fedai_id][session_type] = be_id;
  775. done:
  776. return ret;
  777. }
  778. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  779. /**
  780. * msm_pcm_routing_get_stream_app_type_cfg
  781. *
  782. * Receives fedai_id, session_type, be_id, and populates app_type,
  783. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  784. * -EINVAL and does not alter passed values.
  785. *
  786. * fedai_id - Passed value, front end ID for which app type config is wanted
  787. * session_type - Passed value, session type for which app type config
  788. * is wanted
  789. * be_id - Returned value, back end device id the app type config data is for
  790. * cfg_data - Returned value, configuration data used by app type config
  791. */
  792. int msm_pcm_routing_get_stream_app_type_cfg(
  793. int fedai_id, int session_type, int *bedai_id,
  794. struct msm_pcm_stream_app_type_cfg *cfg_data)
  795. {
  796. int be_id;
  797. int ret = 0;
  798. if (bedai_id == NULL) {
  799. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  800. ret = -EINVAL;
  801. goto done;
  802. } else if (cfg_data == NULL) {
  803. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  804. ret = -EINVAL;
  805. goto done;
  806. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  807. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  808. ret = -EINVAL;
  809. goto done;
  810. } else if (session_type != SESSION_TYPE_RX &&
  811. session_type != SESSION_TYPE_TX) {
  812. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  813. ret = -EINVAL;
  814. goto done;
  815. }
  816. be_id = last_be_id_configured[fedai_id][session_type];
  817. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  818. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  819. ret = -EINVAL;
  820. goto done;
  821. }
  822. *bedai_id = be_id;
  823. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  824. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  825. __func__, fedai_id, session_type, *bedai_id,
  826. cfg_data->app_type, cfg_data->acdb_dev_id,
  827. cfg_data->sample_rate);
  828. done:
  829. return ret;
  830. }
  831. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  832. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  833. int cal_index)
  834. {
  835. struct list_head *ptr, *next;
  836. struct cal_block_data *cal_block = NULL;
  837. pr_debug("%s\n", __func__);
  838. list_for_each_safe(ptr, next,
  839. &cal_data[cal_index]->cal_blocks) {
  840. cal_block = list_entry(ptr,
  841. struct cal_block_data, list);
  842. if (((struct audio_cal_info_adm_top *)cal_block
  843. ->cal_info)->path == path) {
  844. return cal_block;
  845. }
  846. }
  847. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  848. return NULL;
  849. }
  850. static struct cal_block_data *msm_routing_find_topology(int path,
  851. int app_type,
  852. int acdb_id,
  853. int cal_index)
  854. {
  855. struct list_head *ptr, *next;
  856. struct cal_block_data *cal_block = NULL;
  857. struct audio_cal_info_adm_top *cal_info;
  858. pr_debug("%s\n", __func__);
  859. list_for_each_safe(ptr, next,
  860. &cal_data[cal_index]->cal_blocks) {
  861. cal_block = list_entry(ptr,
  862. struct cal_block_data, list);
  863. cal_info = (struct audio_cal_info_adm_top *)
  864. cal_block->cal_info;
  865. if ((cal_info->path == path) &&
  866. (cal_info->app_type == app_type) &&
  867. (cal_info->acdb_id == acdb_id)) {
  868. return cal_block;
  869. }
  870. }
  871. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  872. __func__, path, app_type, acdb_id);
  873. return msm_routing_find_topology_by_path(cal_index, path);
  874. }
  875. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  876. int be_id)
  877. {
  878. int topology = NULL_COPP_TOPOLOGY;
  879. struct cal_block_data *cal_block = NULL;
  880. int app_type = 0, acdb_dev_id = 0;
  881. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  882. __func__, fedai_id, session_type, be_id);
  883. if (cal_data == NULL)
  884. goto done;
  885. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  886. acdb_dev_id =
  887. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  888. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  889. cal_block = msm_routing_find_topology(session_type, app_type,
  890. acdb_dev_id,
  891. ADM_TOPOLOGY_CAL_TYPE_IDX);
  892. if (cal_block != NULL)
  893. topology = ((struct audio_cal_info_adm_top *)
  894. cal_block->cal_info)->topology;
  895. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  896. if (cal_block == NULL) {
  897. pr_debug("%s: Check for LSM topology\n", __func__);
  898. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  899. cal_block = msm_routing_find_topology(session_type, app_type,
  900. acdb_dev_id,
  901. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  902. if (cal_block != NULL)
  903. topology = ((struct audio_cal_info_adm_top *)
  904. cal_block->cal_info)->topology;
  905. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  906. }
  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_QCHAT:
  1179. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1180. break;
  1181. case MSM_FRONTEND_DAI_VOIP:
  1182. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1183. break;
  1184. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1185. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1186. break;
  1187. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1188. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1189. break;
  1190. default:
  1191. session_id = 0;
  1192. }
  1193. pr_debug("%s session_id 0x%x", __func__, session_id);
  1194. return session_id;
  1195. }
  1196. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1197. int dspst_id, int stream_type)
  1198. {
  1199. int copp_idx = 0;
  1200. int sess_type = 0;
  1201. int i = 0, j = 0, be_id;
  1202. int ret = 0;
  1203. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1204. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1205. return 0;
  1206. }
  1207. if (!(channel_mixer[fe_id].enable)) {
  1208. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1209. __func__, fe_id);
  1210. return 0;
  1211. }
  1212. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1213. sess_type = SESSION_TYPE_RX;
  1214. else
  1215. sess_type = SESSION_TYPE_TX;
  1216. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1217. ++i) {
  1218. be_id = channel_input[fe_id][i] - 1;
  1219. channel_mixer[fe_id].input_channels[i] =
  1220. msm_bedais[be_id].channel;
  1221. if ((msm_bedais[be_id].active) &&
  1222. test_bit(fe_id,
  1223. &msm_bedais[be_id].fe_sessions[0])) {
  1224. unsigned long copp =
  1225. session_copp_map[fe_id][sess_type][be_id];
  1226. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1227. if (test_bit(j, &copp)) {
  1228. copp_idx = j;
  1229. break;
  1230. }
  1231. }
  1232. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1233. __func__,
  1234. fe_id, be_id, msm_bedais[be_id].channel,
  1235. copp_idx);
  1236. ret = adm_programable_channel_mixer(
  1237. msm_bedais[be_id].port_id,
  1238. copp_idx, dspst_id, sess_type,
  1239. channel_mixer + fe_id, i);
  1240. }
  1241. }
  1242. return ret;
  1243. }
  1244. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1245. int dspst_id, int stream_type)
  1246. {
  1247. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1248. struct route_payload payload;
  1249. u32 channels, sample_rate;
  1250. uint16_t bits_per_sample = 16;
  1251. uint32_t passthr_mode = LEGACY_PCM;
  1252. int ret = 0;
  1253. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1254. /* bad ID assigned in machine driver */
  1255. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1256. return -EINVAL;
  1257. }
  1258. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1259. session_type = SESSION_TYPE_RX;
  1260. path_type = ADM_PATH_PLAYBACK;
  1261. port_type = MSM_AFE_PORT_TYPE_RX;
  1262. } else {
  1263. session_type = SESSION_TYPE_TX;
  1264. path_type = ADM_PATH_LIVE_REC;
  1265. port_type = MSM_AFE_PORT_TYPE_TX;
  1266. }
  1267. mutex_lock(&routing_lock);
  1268. payload.num_copps = 0; /* only RX needs to use payload */
  1269. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1270. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1271. /* re-enable EQ if active */
  1272. msm_qti_pp_send_eq_values(fedai_id);
  1273. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1274. if (!is_be_dai_extproc(i) &&
  1275. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1276. (msm_bedais[i].active) &&
  1277. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1278. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1279. /*
  1280. * check if ADM needs to be configured with different
  1281. * channel mapping than backend
  1282. */
  1283. if (!msm_bedais[i].adm_override_ch)
  1284. channels = msm_bedais[i].channel;
  1285. else
  1286. channels = msm_bedais[i].adm_override_ch;
  1287. msm_bedais[i].passthr_mode[fedai_id] =
  1288. LEGACY_PCM;
  1289. bits_per_sample = msm_routing_get_bit_width(
  1290. msm_bedais[i].format);
  1291. app_type =
  1292. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1293. if (app_type) {
  1294. app_type_idx =
  1295. msm_pcm_routing_get_app_type_idx(app_type);
  1296. sample_rate =
  1297. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1298. .sample_rate;
  1299. bits_per_sample =
  1300. app_type_cfg[app_type_idx].bit_width;
  1301. } else
  1302. sample_rate = msm_bedais[i].sample_rate;
  1303. acdb_dev_id =
  1304. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1305. .acdb_dev_id;
  1306. topology = msm_routing_get_adm_topology(fedai_id,
  1307. session_type,
  1308. i);
  1309. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1310. sample_rate, channels, topology,
  1311. perf_mode, bits_per_sample,
  1312. app_type, acdb_dev_id);
  1313. if ((copp_idx < 0) ||
  1314. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1315. pr_err("%s: adm open failed copp_idx:%d\n",
  1316. __func__, copp_idx);
  1317. mutex_unlock(&routing_lock);
  1318. return -EINVAL;
  1319. }
  1320. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1321. __func__, fedai_id, session_type, i);
  1322. set_bit(copp_idx,
  1323. &session_copp_map[fedai_id][session_type][i]);
  1324. if (msm_is_resample_needed(
  1325. sample_rate,
  1326. msm_bedais[i].sample_rate))
  1327. adm_copp_mfc_cfg(
  1328. msm_bedais[i].port_id, copp_idx,
  1329. msm_bedais[i].sample_rate);
  1330. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1331. unsigned long copp =
  1332. session_copp_map[fedai_id][session_type][i];
  1333. if (test_bit(j, &copp)) {
  1334. payload.port_id[num_copps] =
  1335. msm_bedais[i].port_id;
  1336. payload.copp_idx[num_copps] = j;
  1337. payload.app_type[num_copps] =
  1338. fe_dai_app_type_cfg
  1339. [fedai_id][session_type]
  1340. [i].app_type;
  1341. payload.acdb_dev_id[num_copps] =
  1342. fe_dai_app_type_cfg
  1343. [fedai_id][session_type]
  1344. [i].acdb_dev_id;
  1345. payload.sample_rate[num_copps] =
  1346. fe_dai_app_type_cfg
  1347. [fedai_id][session_type]
  1348. [i].sample_rate;
  1349. num_copps++;
  1350. }
  1351. }
  1352. if ((perf_mode == LEGACY_PCM_MODE) &&
  1353. (msm_bedais[i].passthr_mode[fedai_id] ==
  1354. LEGACY_PCM))
  1355. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1356. copp_idx, topology,
  1357. channels);
  1358. }
  1359. }
  1360. if (num_copps) {
  1361. payload.num_copps = num_copps;
  1362. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1363. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1364. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1365. }
  1366. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1367. dspst_id, stream_type);
  1368. mutex_unlock(&routing_lock);
  1369. return ret;
  1370. }
  1371. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1372. int dspst_id, int stream_type,
  1373. struct msm_pcm_routing_evt event_info)
  1374. {
  1375. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1376. stream_type)) {
  1377. pr_err("%s: failed to reg phy stream\n", __func__);
  1378. return -EINVAL;
  1379. }
  1380. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1381. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1382. else
  1383. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1384. return 0;
  1385. }
  1386. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1387. {
  1388. int i, port_type, session_type, path_type, topology;
  1389. struct msm_pcm_routing_fdai_data *fdai;
  1390. if (!is_mm_lsm_fe_id(fedai_id)) {
  1391. /* bad ID assigned in machine driver */
  1392. pr_err("%s: bad MM ID\n", __func__);
  1393. return;
  1394. }
  1395. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1396. port_type = MSM_AFE_PORT_TYPE_RX;
  1397. session_type = SESSION_TYPE_RX;
  1398. path_type = ADM_PATH_PLAYBACK;
  1399. } else {
  1400. port_type = MSM_AFE_PORT_TYPE_TX;
  1401. session_type = SESSION_TYPE_TX;
  1402. path_type = ADM_PATH_LIVE_REC;
  1403. }
  1404. mutex_lock(&routing_lock);
  1405. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1406. if (!is_be_dai_extproc(i) &&
  1407. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1408. (msm_bedais[i].active) &&
  1409. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1410. int idx;
  1411. unsigned long copp =
  1412. session_copp_map[fedai_id][session_type][i];
  1413. fdai = &fe_dai_map[fedai_id][session_type];
  1414. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1415. if (test_bit(idx, &copp))
  1416. break;
  1417. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1418. pr_debug("%s: copp idx is invalid, exiting\n",
  1419. __func__);
  1420. continue;
  1421. }
  1422. topology = adm_get_topology_for_port_copp_idx(
  1423. msm_bedais[i].port_id, idx);
  1424. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1425. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1426. __func__, copp, fedai_id, session_type, i);
  1427. clear_bit(idx,
  1428. &session_copp_map[fedai_id][session_type][i]);
  1429. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1430. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1431. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1432. (msm_bedais[i].passthr_mode[fedai_id] ==
  1433. LEGACY_PCM))
  1434. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1435. topology);
  1436. }
  1437. }
  1438. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1439. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1440. mutex_unlock(&routing_lock);
  1441. }
  1442. /* Check if FE/BE route is set */
  1443. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1444. {
  1445. bool rc = false;
  1446. if (!is_mm_lsm_fe_id(fe_id)) {
  1447. /* recheck FE ID in the mixer control defined in this file */
  1448. pr_err("%s: bad MM ID\n", __func__);
  1449. return rc;
  1450. }
  1451. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1452. rc = true;
  1453. return rc;
  1454. }
  1455. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1456. {
  1457. int session_type, path_type, topology;
  1458. u32 channels, sample_rate;
  1459. uint16_t bits_per_sample = 16;
  1460. struct msm_pcm_routing_fdai_data *fdai;
  1461. uint32_t passthr_mode;
  1462. bool is_lsm;
  1463. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1464. if (!is_mm_lsm_fe_id(val)) {
  1465. /* recheck FE ID in the mixer control defined in this file */
  1466. pr_err("%s: bad MM ID\n", __func__);
  1467. return;
  1468. }
  1469. if (!route_check_fe_id_adm_support(val)) {
  1470. /* ignore adm open if not supported for fe_id */
  1471. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1472. return;
  1473. }
  1474. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1475. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1476. MSM_AFE_PORT_TYPE_RX) {
  1477. session_type = SESSION_TYPE_RX;
  1478. if (passthr_mode != LEGACY_PCM)
  1479. path_type = ADM_PATH_COMPRESSED_RX;
  1480. else
  1481. path_type = ADM_PATH_PLAYBACK;
  1482. } else {
  1483. session_type = SESSION_TYPE_TX;
  1484. if (passthr_mode != LEGACY_PCM)
  1485. path_type = ADM_PATH_COMPRESSED_TX;
  1486. else
  1487. path_type = ADM_PATH_LIVE_REC;
  1488. }
  1489. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1490. (val <= MSM_FRONTEND_DAI_LSM8);
  1491. mutex_lock(&routing_lock);
  1492. if (set) {
  1493. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1494. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1495. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1496. voc_start_playback(set, msm_bedais[reg].port_id);
  1497. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1498. fdai = &fe_dai_map[val][session_type];
  1499. if (msm_bedais[reg].active && fdai->strm_id !=
  1500. INVALID_SESSION) {
  1501. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1502. /*
  1503. * check if ADM needs to be configured with different
  1504. * channel mapping than backend
  1505. */
  1506. if (!msm_bedais[reg].adm_override_ch)
  1507. channels = msm_bedais[reg].channel;
  1508. else
  1509. channels = msm_bedais[reg].adm_override_ch;
  1510. if (session_type == SESSION_TYPE_TX &&
  1511. fdai->be_srate &&
  1512. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1513. pr_debug("%s: flush strm %d diff BE rates\n",
  1514. __func__, fdai->strm_id);
  1515. if (fdai->event_info.event_func)
  1516. fdai->event_info.event_func(
  1517. MSM_PCM_RT_EVT_BUF_RECFG,
  1518. fdai->event_info.priv_data);
  1519. fdai->be_srate = 0; /* might not need it */
  1520. }
  1521. bits_per_sample = msm_routing_get_bit_width(
  1522. msm_bedais[reg].format);
  1523. app_type =
  1524. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1525. if (app_type && is_lsm) {
  1526. app_type_idx =
  1527. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1528. sample_rate =
  1529. fe_dai_app_type_cfg[val][session_type][reg]
  1530. .sample_rate;
  1531. bits_per_sample =
  1532. lsm_app_type_cfg[app_type_idx].bit_width;
  1533. } else if (app_type) {
  1534. app_type_idx =
  1535. msm_pcm_routing_get_app_type_idx(app_type);
  1536. sample_rate =
  1537. fe_dai_app_type_cfg[val][session_type][reg]
  1538. .sample_rate;
  1539. bits_per_sample =
  1540. app_type_cfg[app_type_idx].bit_width;
  1541. } else
  1542. sample_rate = msm_bedais[reg].sample_rate;
  1543. topology = msm_routing_get_adm_topology(val,
  1544. session_type,
  1545. reg);
  1546. acdb_dev_id =
  1547. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1548. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1549. sample_rate, channels, topology,
  1550. fdai->perf_mode, bits_per_sample,
  1551. app_type, acdb_dev_id);
  1552. if ((copp_idx < 0) ||
  1553. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1554. pr_err("%s: adm open failed\n", __func__);
  1555. mutex_unlock(&routing_lock);
  1556. return;
  1557. }
  1558. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1559. __func__, val, session_type, reg);
  1560. set_bit(copp_idx,
  1561. &session_copp_map[val][session_type][reg]);
  1562. if (msm_is_resample_needed(
  1563. sample_rate,
  1564. msm_bedais[reg].sample_rate))
  1565. adm_copp_mfc_cfg(
  1566. msm_bedais[reg].port_id, copp_idx,
  1567. msm_bedais[reg].sample_rate);
  1568. if (session_type == SESSION_TYPE_RX &&
  1569. fdai->event_info.event_func)
  1570. fdai->event_info.event_func(
  1571. MSM_PCM_RT_EVT_DEVSWITCH,
  1572. fdai->event_info.priv_data);
  1573. msm_pcm_routing_build_matrix(val, session_type,
  1574. path_type,
  1575. fdai->perf_mode,
  1576. passthr_mode);
  1577. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1578. (passthr_mode == LEGACY_PCM))
  1579. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1580. copp_idx, topology,
  1581. channels);
  1582. }
  1583. } else {
  1584. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1585. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1586. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1587. voc_start_playback(set, msm_bedais[reg].port_id);
  1588. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1589. fdai = &fe_dai_map[val][session_type];
  1590. if (msm_bedais[reg].active && fdai->strm_id !=
  1591. INVALID_SESSION) {
  1592. int idx;
  1593. int port_id;
  1594. unsigned long copp =
  1595. session_copp_map[val][session_type][reg];
  1596. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1597. if (test_bit(idx, &copp))
  1598. break;
  1599. port_id = msm_bedais[reg].port_id;
  1600. topology = adm_get_topology_for_port_copp_idx(port_id,
  1601. idx);
  1602. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1603. idx);
  1604. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1605. __func__, copp, val, session_type, reg,
  1606. topology);
  1607. clear_bit(idx,
  1608. &session_copp_map[val][session_type][reg]);
  1609. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1610. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1611. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1612. (passthr_mode == LEGACY_PCM))
  1613. msm_pcm_routing_deinit_pp(
  1614. msm_bedais[reg].port_id,
  1615. topology);
  1616. msm_pcm_routing_build_matrix(val, session_type,
  1617. path_type,
  1618. fdai->perf_mode,
  1619. passthr_mode);
  1620. }
  1621. }
  1622. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1623. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1624. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1625. mutex_unlock(&routing_lock);
  1626. }
  1627. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1628. struct snd_ctl_elem_value *ucontrol)
  1629. {
  1630. struct soc_mixer_control *mc =
  1631. (struct soc_mixer_control *)kcontrol->private_value;
  1632. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1633. ucontrol->value.integer.value[0] = 1;
  1634. else
  1635. ucontrol->value.integer.value[0] = 0;
  1636. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1637. ucontrol->value.integer.value[0]);
  1638. return 0;
  1639. }
  1640. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1641. struct snd_ctl_elem_value *ucontrol)
  1642. {
  1643. struct snd_soc_dapm_widget *widget =
  1644. snd_soc_dapm_kcontrol_widget(kcontrol);
  1645. struct soc_mixer_control *mc =
  1646. (struct soc_mixer_control *)kcontrol->private_value;
  1647. struct snd_soc_dapm_update *update = NULL;
  1648. if (ucontrol->value.integer.value[0] &&
  1649. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false) {
  1650. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1651. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1652. update);
  1653. } else if (!ucontrol->value.integer.value[0] &&
  1654. msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true) {
  1655. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1656. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1657. update);
  1658. }
  1659. return 1;
  1660. }
  1661. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1662. struct snd_ctl_elem_value *ucontrol)
  1663. {
  1664. struct soc_mixer_control *mc =
  1665. (struct soc_mixer_control *)kcontrol->private_value;
  1666. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1667. ucontrol->value.integer.value[0] = 1;
  1668. else
  1669. ucontrol->value.integer.value[0] = 0;
  1670. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1671. ucontrol->value.integer.value[0]);
  1672. return 0;
  1673. }
  1674. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1675. struct snd_ctl_elem_value *ucontrol)
  1676. {
  1677. struct snd_soc_dapm_widget *widget =
  1678. snd_soc_dapm_kcontrol_widget(kcontrol);
  1679. struct soc_mixer_control *mc =
  1680. (struct soc_mixer_control *)kcontrol->private_value;
  1681. struct snd_soc_dapm_update *update = NULL;
  1682. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1683. ucontrol->value.integer.value[0]);
  1684. if (ucontrol->value.integer.value[0]) {
  1685. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false)
  1686. msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
  1687. snd_soc_dapm_mixer_update_power(widget->dapm,
  1688. kcontrol, 1, update);
  1689. } else if (!ucontrol->value.integer.value[0]) {
  1690. if (msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true)
  1691. msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
  1692. snd_soc_dapm_mixer_update_power(widget->dapm,
  1693. kcontrol, 0, update);
  1694. }
  1695. return 1;
  1696. }
  1697. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1698. {
  1699. u32 session_id = 0;
  1700. u16 path_type;
  1701. struct media_format_info voc_be_media_format;
  1702. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1703. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1704. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1705. __func__, val, session_id);
  1706. mutex_lock(&routing_lock);
  1707. if (set)
  1708. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1709. else
  1710. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1711. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1712. afe_get_port_type(msm_bedais[reg].port_id) ==
  1713. MSM_AFE_PORT_TYPE_RX) {
  1714. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1715. __func__, set, msm_bedais[reg].port_id);
  1716. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1717. }
  1718. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1719. MSM_AFE_PORT_TYPE_RX)
  1720. path_type = RX_PATH;
  1721. else
  1722. path_type = TX_PATH;
  1723. if (set) {
  1724. if (msm_bedais[reg].active) {
  1725. voc_set_route_flag(session_id, path_type, 1);
  1726. memset(&voc_be_media_format, 0,
  1727. sizeof(struct media_format_info));
  1728. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1729. voc_be_media_format.num_channels =
  1730. msm_bedais[reg].channel;
  1731. voc_be_media_format.sample_rate =
  1732. msm_bedais[reg].sample_rate;
  1733. voc_be_media_format.bits_per_sample =
  1734. msm_bedais[reg].format;
  1735. /* Defaulting this to 1 for voice call usecases */
  1736. voc_be_media_format.channel_mapping[0] = 1;
  1737. voc_set_device_config(session_id, path_type,
  1738. &voc_be_media_format);
  1739. if (voc_get_route_flag(session_id, TX_PATH) &&
  1740. voc_get_route_flag(session_id, RX_PATH))
  1741. voc_enable_device(session_id);
  1742. } else {
  1743. pr_debug("%s BE is not active\n", __func__);
  1744. }
  1745. } else {
  1746. voc_set_route_flag(session_id, path_type, 0);
  1747. voc_disable_device(session_id);
  1748. }
  1749. mutex_unlock(&routing_lock);
  1750. }
  1751. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1752. struct snd_ctl_elem_value *ucontrol)
  1753. {
  1754. struct soc_mixer_control *mc =
  1755. (struct soc_mixer_control *)kcontrol->private_value;
  1756. mutex_lock(&routing_lock);
  1757. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1758. ucontrol->value.integer.value[0] = 1;
  1759. else
  1760. ucontrol->value.integer.value[0] = 0;
  1761. mutex_unlock(&routing_lock);
  1762. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1763. ucontrol->value.integer.value[0]);
  1764. return 0;
  1765. }
  1766. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1767. struct snd_ctl_elem_value *ucontrol)
  1768. {
  1769. struct snd_soc_dapm_widget *widget =
  1770. snd_soc_dapm_kcontrol_widget(kcontrol);
  1771. struct soc_mixer_control *mc =
  1772. (struct soc_mixer_control *)kcontrol->private_value;
  1773. struct snd_soc_dapm_update *update = NULL;
  1774. if (ucontrol->value.integer.value[0]) {
  1775. msm_pcm_routing_process_voice(mc->reg, mc->shift, 1);
  1776. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1777. update);
  1778. } else {
  1779. msm_pcm_routing_process_voice(mc->reg, mc->shift, 0);
  1780. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1781. update);
  1782. }
  1783. return 1;
  1784. }
  1785. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1786. struct snd_ctl_elem_value *ucontrol)
  1787. {
  1788. struct soc_mixer_control *mc =
  1789. (struct soc_mixer_control *)kcontrol->private_value;
  1790. mutex_lock(&routing_lock);
  1791. if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]))
  1792. ucontrol->value.integer.value[0] = 1;
  1793. else
  1794. ucontrol->value.integer.value[0] = 0;
  1795. mutex_unlock(&routing_lock);
  1796. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1797. ucontrol->value.integer.value[0]);
  1798. return 0;
  1799. }
  1800. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1801. struct snd_ctl_elem_value *ucontrol)
  1802. {
  1803. struct snd_soc_dapm_widget *widget =
  1804. snd_soc_dapm_kcontrol_widget(kcontrol);
  1805. struct soc_mixer_control *mc =
  1806. (struct soc_mixer_control *)kcontrol->private_value;
  1807. struct snd_soc_dapm_update *update = NULL;
  1808. if (ucontrol->value.integer.value[0]) {
  1809. mutex_lock(&routing_lock);
  1810. set_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1811. mutex_unlock(&routing_lock);
  1812. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1813. update);
  1814. } else {
  1815. mutex_lock(&routing_lock);
  1816. clear_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions[0]);
  1817. mutex_unlock(&routing_lock);
  1818. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1819. update);
  1820. }
  1821. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  1822. ucontrol->value.integer.value[0]);
  1823. return 1;
  1824. }
  1825. /*
  1826. * Return the mapping between port ID and backend ID to enable the AFE callback
  1827. * to determine the acdb_dev_id from the port id
  1828. */
  1829. int msm_pcm_get_be_id_from_port_id(int port_id)
  1830. {
  1831. int i;
  1832. int be_id = -EINVAL;
  1833. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1834. if (msm_bedais[i].port_id == port_id) {
  1835. be_id = i;
  1836. break;
  1837. }
  1838. }
  1839. return be_id;
  1840. }
  1841. /*
  1842. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1843. * correct AFE calibration information by comparing the header information.
  1844. */
  1845. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1846. {
  1847. int acdb_id = -EINVAL;
  1848. int i = 0;
  1849. int session;
  1850. int port_type = afe_get_port_type(port_id);
  1851. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1852. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1853. __func__, port_id, be_id, port_type);
  1854. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1855. session = SESSION_TYPE_TX;
  1856. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1857. session = SESSION_TYPE_RX;
  1858. } else {
  1859. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1860. acdb_id = -EINVAL;
  1861. goto exit;
  1862. }
  1863. if (be_id < 0) {
  1864. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1865. goto exit;
  1866. }
  1867. mutex_lock(&routing_lock);
  1868. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1869. MSM_FRONTEND_DAI_MAX);
  1870. if (i < MSM_FRONTEND_DAI_MAX)
  1871. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1872. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1873. __func__, i, session, be_id, acdb_id);
  1874. mutex_unlock(&routing_lock);
  1875. exit:
  1876. return acdb_id;
  1877. }
  1878. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  1879. struct snd_ctl_elem_value *ucontrol)
  1880. {
  1881. ucontrol->value.integer.value[0] = fm_switch_enable;
  1882. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1883. ucontrol->value.integer.value[0]);
  1884. return 0;
  1885. }
  1886. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  1887. struct snd_ctl_elem_value *ucontrol)
  1888. {
  1889. struct snd_soc_dapm_widget *widget =
  1890. snd_soc_dapm_kcontrol_widget(kcontrol);
  1891. struct snd_soc_dapm_update *update = NULL;
  1892. pr_debug("%s: FM Switch enable %ld\n", __func__,
  1893. ucontrol->value.integer.value[0]);
  1894. if (ucontrol->value.integer.value[0])
  1895. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1896. update);
  1897. else
  1898. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1899. update);
  1900. fm_switch_enable = ucontrol->value.integer.value[0];
  1901. return 1;
  1902. }
  1903. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1904. struct snd_ctl_elem_value *ucontrol)
  1905. {
  1906. ucontrol->value.integer.value[0] = hfp_switch_enable;
  1907. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1908. ucontrol->value.integer.value[0]);
  1909. return 0;
  1910. }
  1911. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  1912. struct snd_ctl_elem_value *ucontrol)
  1913. {
  1914. struct snd_soc_dapm_widget *widget =
  1915. snd_soc_dapm_kcontrol_widget(kcontrol);
  1916. struct snd_soc_dapm_update *update = NULL;
  1917. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1918. ucontrol->value.integer.value[0]);
  1919. if (ucontrol->value.integer.value[0])
  1920. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1921. 1, update);
  1922. else
  1923. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1924. 0, update);
  1925. hfp_switch_enable = ucontrol->value.integer.value[0];
  1926. return 1;
  1927. }
  1928. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1929. struct snd_ctl_elem_value *ucontrol)
  1930. {
  1931. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  1932. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1933. ucontrol->value.integer.value[0]);
  1934. return 0;
  1935. }
  1936. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1937. struct snd_ctl_elem_value *ucontrol)
  1938. {
  1939. struct snd_soc_dapm_widget *widget =
  1940. snd_soc_dapm_kcontrol_widget(kcontrol);
  1941. struct snd_soc_dapm_update *update = NULL;
  1942. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  1943. ucontrol->value.integer.value[0]);
  1944. if (ucontrol->value.integer.value[0])
  1945. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1946. update);
  1947. else
  1948. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1949. update);
  1950. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1951. return 1;
  1952. }
  1953. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1954. struct snd_ctl_elem_value *ucontrol)
  1955. {
  1956. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  1957. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1958. ucontrol->value.integer.value[0]);
  1959. return 0;
  1960. }
  1961. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  1962. struct snd_ctl_elem_value *ucontrol)
  1963. {
  1964. struct snd_soc_dapm_widget *widget =
  1965. snd_soc_dapm_kcontrol_widget(kcontrol);
  1966. struct snd_soc_dapm_update *update = NULL;
  1967. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  1968. ucontrol->value.integer.value[0]);
  1969. if (ucontrol->value.integer.value[0])
  1970. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1971. update);
  1972. else
  1973. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1974. update);
  1975. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  1976. return 1;
  1977. }
  1978. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1979. struct snd_ctl_elem_value *ucontrol)
  1980. {
  1981. ucontrol->value.integer.value[0] = usb_switch_enable;
  1982. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  1983. ucontrol->value.integer.value[0]);
  1984. return 0;
  1985. }
  1986. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  1987. struct snd_ctl_elem_value *ucontrol)
  1988. {
  1989. struct snd_soc_dapm_widget *widget =
  1990. snd_soc_dapm_kcontrol_widget(kcontrol);
  1991. struct snd_soc_dapm_update *update = NULL;
  1992. pr_debug("%s: USB Switch enable %ld\n", __func__,
  1993. ucontrol->value.integer.value[0]);
  1994. if (ucontrol->value.integer.value[0])
  1995. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1996. 1, update);
  1997. else
  1998. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  1999. 0, update);
  2000. usb_switch_enable = ucontrol->value.integer.value[0];
  2001. return 1;
  2002. }
  2003. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2004. struct snd_ctl_elem_value *ucontrol)
  2005. {
  2006. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2007. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2008. ucontrol->value.integer.value[0]);
  2009. return 0;
  2010. }
  2011. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2012. struct snd_ctl_elem_value *ucontrol)
  2013. {
  2014. struct snd_soc_dapm_widget *widget =
  2015. snd_soc_dapm_kcontrol_widget(kcontrol);
  2016. struct snd_soc_dapm_update *update = NULL;
  2017. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2018. ucontrol->value.integer.value[0]);
  2019. if (ucontrol->value.integer.value[0])
  2020. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2021. update);
  2022. else
  2023. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2024. update);
  2025. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2026. return 1;
  2027. }
  2028. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2029. struct snd_ctl_elem_value *ucontrol)
  2030. {
  2031. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2032. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2033. ucontrol->value.integer.value[0]);
  2034. return 0;
  2035. }
  2036. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2037. struct snd_ctl_elem_value *ucontrol)
  2038. {
  2039. struct snd_soc_dapm_widget *widget =
  2040. snd_soc_dapm_kcontrol_widget(kcontrol);
  2041. struct snd_soc_dapm_update *update = NULL;
  2042. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2043. ucontrol->value.integer.value[0]);
  2044. if (ucontrol->value.integer.value[0])
  2045. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2046. update);
  2047. else
  2048. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2049. update);
  2050. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2051. return 1;
  2052. }
  2053. static int msm_routing_get_tert_mi2s_switch_mixer(
  2054. struct snd_kcontrol *kcontrol,
  2055. struct snd_ctl_elem_value *ucontrol)
  2056. {
  2057. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2058. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2059. ucontrol->value.integer.value[0]);
  2060. return 0;
  2061. }
  2062. static int msm_routing_put_tert_mi2s_switch_mixer(
  2063. struct snd_kcontrol *kcontrol,
  2064. struct snd_ctl_elem_value *ucontrol)
  2065. {
  2066. struct snd_soc_dapm_widget *widget =
  2067. snd_soc_dapm_kcontrol_widget(kcontrol);
  2068. struct snd_soc_dapm_update *update = NULL;
  2069. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2070. ucontrol->value.integer.value[0]);
  2071. if (ucontrol->value.integer.value[0])
  2072. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2073. update);
  2074. else
  2075. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2076. update);
  2077. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2078. return 1;
  2079. }
  2080. static int msm_routing_get_quat_mi2s_switch_mixer(
  2081. struct snd_kcontrol *kcontrol,
  2082. struct snd_ctl_elem_value *ucontrol)
  2083. {
  2084. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2085. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2086. ucontrol->value.integer.value[0]);
  2087. return 0;
  2088. }
  2089. static int msm_routing_put_quat_mi2s_switch_mixer(
  2090. struct snd_kcontrol *kcontrol,
  2091. struct snd_ctl_elem_value *ucontrol)
  2092. {
  2093. struct snd_soc_dapm_widget *widget =
  2094. snd_soc_dapm_kcontrol_widget(kcontrol);
  2095. struct snd_soc_dapm_update *update = NULL;
  2096. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2097. ucontrol->value.integer.value[0]);
  2098. if (ucontrol->value.integer.value[0])
  2099. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2100. update);
  2101. else
  2102. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2103. update);
  2104. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2105. return 1;
  2106. }
  2107. static int msm_routing_get_quin_mi2s_switch_mixer(
  2108. struct snd_kcontrol *kcontrol,
  2109. struct snd_ctl_elem_value *ucontrol)
  2110. {
  2111. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2112. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2113. ucontrol->value.integer.value[0]);
  2114. return 0;
  2115. }
  2116. static int msm_routing_put_quin_mi2s_switch_mixer(
  2117. struct snd_kcontrol *kcontrol,
  2118. struct snd_ctl_elem_value *ucontrol)
  2119. {
  2120. struct snd_soc_dapm_widget *widget =
  2121. snd_soc_dapm_kcontrol_widget(kcontrol);
  2122. struct snd_soc_dapm_update *update = NULL;
  2123. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2124. ucontrol->value.integer.value[0]);
  2125. if (ucontrol->value.integer.value[0])
  2126. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2127. update);
  2128. else
  2129. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2130. update);
  2131. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2132. return 1;
  2133. }
  2134. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2135. struct snd_ctl_elem_value *ucontrol)
  2136. {
  2137. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2138. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2139. ucontrol->value.integer.value[0]);
  2140. return 0;
  2141. }
  2142. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2143. struct snd_ctl_elem_value *ucontrol)
  2144. {
  2145. struct snd_soc_dapm_widget *widget =
  2146. snd_soc_dapm_kcontrol_widget(kcontrol);
  2147. struct snd_soc_dapm_update *update = NULL;
  2148. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2149. ucontrol->value.integer.value[0]);
  2150. if (ucontrol->value.integer.value[0])
  2151. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2152. update);
  2153. else
  2154. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2155. update);
  2156. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2157. return 1;
  2158. }
  2159. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2160. struct snd_ctl_elem_value *ucontrol)
  2161. {
  2162. ucontrol->value.integer.value[0] = lsm_port_index;
  2163. return 0;
  2164. }
  2165. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2166. struct snd_ctl_elem_value *ucontrol)
  2167. {
  2168. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2169. int mux = ucontrol->value.enumerated.item[0];
  2170. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2171. if (mux >= e->items) {
  2172. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2173. return -EINVAL;
  2174. }
  2175. pr_debug("%s: LSM enable %ld\n", __func__,
  2176. ucontrol->value.integer.value[0]);
  2177. switch (ucontrol->value.integer.value[0]) {
  2178. case 1:
  2179. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2180. break;
  2181. case 2:
  2182. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2183. break;
  2184. case 3:
  2185. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2186. break;
  2187. case 4:
  2188. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2189. break;
  2190. case 5:
  2191. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2192. break;
  2193. case 6:
  2194. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2195. break;
  2196. case 7:
  2197. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2198. break;
  2199. case 8:
  2200. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2201. break;
  2202. case 9:
  2203. lsm_port = ADM_LSM_PORT_ID;
  2204. break;
  2205. case 10:
  2206. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2207. break;
  2208. default:
  2209. pr_err("Default lsm port");
  2210. break;
  2211. }
  2212. set_lsm_port(lsm_port);
  2213. lsm_port_index = ucontrol->value.integer.value[0];
  2214. return 0;
  2215. }
  2216. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2217. struct snd_ctl_elem_value *ucontrol)
  2218. {
  2219. int i;
  2220. u16 port_id;
  2221. enum afe_mad_type mad_type;
  2222. pr_debug("%s: enter\n", __func__);
  2223. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2224. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2225. strlen(lsm_port_text[i])))
  2226. break;
  2227. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2228. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2229. return -EINVAL;
  2230. }
  2231. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2232. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2233. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2234. strlen(lsm_port_text[7])))
  2235. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2236. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2237. strlen(lsm_port_text[8])))
  2238. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2239. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2240. strlen(lsm_port_text[10])))
  2241. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2242. mad_type = afe_port_get_mad_type(port_id);
  2243. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2244. mad_type);
  2245. switch (mad_type) {
  2246. case MAD_HW_NONE:
  2247. ucontrol->value.integer.value[0] = MADNONE;
  2248. break;
  2249. case MAD_HW_AUDIO:
  2250. ucontrol->value.integer.value[0] = MADAUDIO;
  2251. break;
  2252. case MAD_HW_BEACON:
  2253. ucontrol->value.integer.value[0] = MADBEACON;
  2254. break;
  2255. case MAD_HW_ULTRASOUND:
  2256. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2257. break;
  2258. case MAD_SW_AUDIO:
  2259. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2260. break;
  2261. default:
  2262. WARN(1, "Unknown\n");
  2263. return -EINVAL;
  2264. }
  2265. return 0;
  2266. }
  2267. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2268. struct snd_ctl_elem_value *ucontrol)
  2269. {
  2270. int i;
  2271. u16 port_id;
  2272. enum afe_mad_type mad_type;
  2273. pr_debug("%s: enter\n", __func__);
  2274. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2275. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2276. strlen(lsm_port_text[i])))
  2277. break;
  2278. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2279. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2280. return -EINVAL;
  2281. }
  2282. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2283. switch (ucontrol->value.integer.value[0]) {
  2284. case MADNONE:
  2285. mad_type = MAD_HW_NONE;
  2286. break;
  2287. case MADAUDIO:
  2288. mad_type = MAD_HW_AUDIO;
  2289. break;
  2290. case MADBEACON:
  2291. mad_type = MAD_HW_BEACON;
  2292. break;
  2293. case MADULTRASOUND:
  2294. mad_type = MAD_HW_ULTRASOUND;
  2295. break;
  2296. case MADSWAUDIO:
  2297. mad_type = MAD_SW_AUDIO;
  2298. break;
  2299. default:
  2300. WARN(1, "Unknown\n");
  2301. return -EINVAL;
  2302. }
  2303. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2304. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2305. strlen(lsm_port_text[7])))
  2306. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2307. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2308. strlen(lsm_port_text[8])))
  2309. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2310. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2311. strlen(lsm_port_text[10])))
  2312. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2313. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2314. mad_type);
  2315. return afe_port_set_mad_type(port_id, mad_type);
  2316. }
  2317. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2318. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2319. adm_override_chs_text);
  2320. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2321. {
  2322. int backend_id;
  2323. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2324. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2325. } else {
  2326. pr_err("%s: unsupported backend id: %s",
  2327. __func__, kcontrol->id.name);
  2328. return -EINVAL;
  2329. }
  2330. return backend_id;
  2331. }
  2332. static int msm_routing_adm_channel_config_get(
  2333. struct snd_kcontrol *kcontrol,
  2334. struct snd_ctl_elem_value *ucontrol)
  2335. {
  2336. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2337. if (backend_id >= 0) {
  2338. mutex_lock(&routing_lock);
  2339. ucontrol->value.integer.value[0] =
  2340. msm_bedais[backend_id].adm_override_ch;
  2341. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2342. ucontrol->value.integer.value[0], backend_id);
  2343. mutex_unlock(&routing_lock);
  2344. }
  2345. return 0;
  2346. }
  2347. static int msm_routing_adm_channel_config_put(
  2348. struct snd_kcontrol *kcontrol,
  2349. struct snd_ctl_elem_value *ucontrol)
  2350. {
  2351. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2352. if (backend_id >= 0) {
  2353. mutex_lock(&routing_lock);
  2354. msm_bedais[backend_id].adm_override_ch =
  2355. ucontrol->value.integer.value[0];
  2356. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2357. __func__, backend_id,
  2358. msm_bedais[backend_id].adm_override_ch);
  2359. mutex_unlock(&routing_lock);
  2360. }
  2361. return 0;
  2362. }
  2363. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2364. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2365. msm_routing_adm_channel_config_get,
  2366. msm_routing_adm_channel_config_put),
  2367. };
  2368. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2369. struct snd_ctl_elem_value *ucontrol)
  2370. {
  2371. mutex_lock(&routing_lock);
  2372. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2373. mutex_unlock(&routing_lock);
  2374. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2375. ucontrol->value.integer.value[0]);
  2376. return 0;
  2377. };
  2378. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2379. struct snd_ctl_elem_value *ucontrol)
  2380. {
  2381. struct aanc_data aanc_info;
  2382. mutex_lock(&routing_lock);
  2383. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2384. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2385. ucontrol->value.integer.value[0]);
  2386. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2387. if (ucontrol->value.integer.value[0] == 0) {
  2388. aanc_info.aanc_active = false;
  2389. aanc_info.aanc_tx_port = 0;
  2390. aanc_info.aanc_rx_port = 0;
  2391. } else {
  2392. aanc_info.aanc_active = true;
  2393. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2394. aanc_info.aanc_tx_port =
  2395. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2396. }
  2397. afe_set_aanc_info(&aanc_info);
  2398. mutex_unlock(&routing_lock);
  2399. return 0;
  2400. };
  2401. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2402. struct snd_ctl_elem_value *ucontrol)
  2403. {
  2404. int idx = 0, shift = 0;
  2405. struct soc_mixer_control *mc =
  2406. (struct soc_mixer_control *)kcontrol->private_value;
  2407. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2408. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2409. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2410. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2411. return -EINVAL;
  2412. }
  2413. if (test_bit(shift,
  2414. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]))
  2415. ucontrol->value.integer.value[0] = 1;
  2416. else
  2417. ucontrol->value.integer.value[0] = 0;
  2418. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  2419. ucontrol->value.integer.value[0]);
  2420. return 0;
  2421. }
  2422. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2423. struct snd_ctl_elem_value *ucontrol)
  2424. {
  2425. int idx = 0, shift = 0;
  2426. struct soc_mixer_control *mc =
  2427. (struct soc_mixer_control *)kcontrol->private_value;
  2428. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2429. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2430. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2431. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2432. return -EINVAL;
  2433. }
  2434. pr_debug("%s: reg 0x%x shift 0x%x val %ld idx %d reminder shift %d\n",
  2435. __func__, mc->reg, mc->shift,
  2436. ucontrol->value.integer.value[0], idx, shift);
  2437. if (ucontrol->value.integer.value[0]) {
  2438. afe_loopback(1, msm_bedais[mc->reg].port_id,
  2439. msm_bedais[mc->shift].port_id);
  2440. set_bit(shift,
  2441. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2442. } else {
  2443. afe_loopback(0, msm_bedais[mc->reg].port_id,
  2444. msm_bedais[mc->shift].port_id);
  2445. clear_bit(shift,
  2446. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2447. }
  2448. return 1;
  2449. }
  2450. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2451. struct snd_ctl_elem_value *ucontrol)
  2452. {
  2453. u16 fe_id = 0;
  2454. fe_id = ((struct soc_mixer_control *)
  2455. kcontrol->private_value)->shift;
  2456. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2457. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2458. return -EINVAL;
  2459. }
  2460. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2461. return 0;
  2462. }
  2463. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2464. struct snd_ctl_elem_value *ucontrol)
  2465. {
  2466. u16 fe_id = 0;
  2467. fe_id = ((struct soc_mixer_control *)
  2468. kcontrol->private_value)->shift;
  2469. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2470. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2471. return -EINVAL;
  2472. }
  2473. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2474. return 1;
  2475. }
  2476. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2477. struct snd_ctl_elem_value *ucontrol)
  2478. {
  2479. u16 fe_id = 0;
  2480. fe_id = ((struct soc_multi_mixer_control *)
  2481. kcontrol->private_value)->shift;
  2482. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2483. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2484. return -EINVAL;
  2485. }
  2486. ucontrol->value.integer.value[0] =
  2487. channel_mixer[fe_id].output_channel;
  2488. return 0;
  2489. }
  2490. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2491. struct snd_ctl_elem_value *ucontrol)
  2492. {
  2493. u16 fe_id = 0;
  2494. fe_id = ((struct soc_multi_mixer_control *)
  2495. kcontrol->private_value)->shift;
  2496. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2497. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2498. return -EINVAL;
  2499. }
  2500. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2501. fe_id,
  2502. (unsigned int)(ucontrol->value.integer.value[0]));
  2503. channel_mixer[fe_id].output_channel =
  2504. (unsigned int)(ucontrol->value.integer.value[0]);
  2505. return 1;
  2506. }
  2507. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2508. /* If new backend is added, need update this array */
  2509. static const char *const be_name[] = {
  2510. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2511. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2512. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2513. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2514. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2515. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2516. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2517. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2518. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2519. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2520. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2521. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2522. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2523. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2524. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2525. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2526. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2527. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2528. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2529. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2530. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2531. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2532. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2533. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2534. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2535. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2536. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2537. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2538. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2539. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2540. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2541. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2542. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2543. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2544. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2545. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2546. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2547. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2548. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2549. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2550. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2551. };
  2552. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2553. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2554. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2555. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2556. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2557. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2558. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2559. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2560. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2561. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2562. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2563. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2564. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2565. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2566. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2567. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2568. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2569. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2570. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2571. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2572. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2573. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2574. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2575. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2576. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2577. unsigned int channels,
  2578. unsigned int items, const char *const names[])
  2579. {
  2580. if (uinfo->value.enumerated.item >= items)
  2581. uinfo->value.enumerated.item = items - 1;
  2582. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2583. sizeof(uinfo->value.enumerated.name),
  2584. "ALSA: too long item name '%s'\n",
  2585. names[uinfo->value.enumerated.item]);
  2586. strlcpy(uinfo->value.enumerated.name,
  2587. names[uinfo->value.enumerated.item],
  2588. sizeof(uinfo->value.enumerated.name));
  2589. return 0;
  2590. }
  2591. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2592. struct snd_ctl_elem_info *uinfo)
  2593. {
  2594. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2595. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2596. uinfo->count = 1;
  2597. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2598. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2599. return 0;
  2600. }
  2601. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2602. struct snd_ctl_elem_value *ucontrol)
  2603. {
  2604. u16 fe_id = 0;
  2605. fe_id = ((struct soc_enum *)
  2606. kcontrol->private_value)->shift_l;
  2607. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2608. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2609. return -EINVAL;
  2610. }
  2611. pr_debug("%s: FE %d %s\n", __func__,
  2612. fe_id,
  2613. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2614. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2615. return 0;
  2616. }
  2617. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2618. struct snd_ctl_elem_value *ucontrol)
  2619. {
  2620. u16 fe_id = 0;
  2621. fe_id = ((struct soc_enum *)
  2622. kcontrol->private_value)->shift_l;
  2623. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2624. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2625. return -EINVAL;
  2626. }
  2627. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2628. pr_debug("%s: %s FE %d\n", __func__,
  2629. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2630. fe_id);
  2631. return 0;
  2632. }
  2633. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2634. struct snd_ctl_elem_info *uinfo)
  2635. {
  2636. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2637. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2638. uinfo->count = 1;
  2639. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2640. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2641. return 0;
  2642. }
  2643. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2644. struct snd_ctl_elem_value *ucontrol)
  2645. {
  2646. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2647. u16 fe_id = 0, in_ch = 0;
  2648. fe_id = e->shift_l;
  2649. in_ch = e->shift_r;
  2650. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2651. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2652. return -EINVAL;
  2653. }
  2654. if (in_ch >= ADM_MAX_CHANNELS) {
  2655. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2656. return -EINVAL;
  2657. }
  2658. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2659. return 1;
  2660. }
  2661. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2662. struct snd_ctl_elem_value *ucontrol)
  2663. {
  2664. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2665. u16 fe_id = 0, in_ch = 0;
  2666. fe_id = e->shift_l;
  2667. in_ch = e->shift_r;
  2668. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2669. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2670. return -EINVAL;
  2671. }
  2672. if (in_ch >= ADM_MAX_CHANNELS) {
  2673. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2674. return -EINVAL;
  2675. }
  2676. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2677. return 1;
  2678. }
  2679. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2680. struct snd_ctl_elem_info *uinfo)
  2681. {
  2682. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2683. uinfo->count = ADM_MAX_CHANNELS;
  2684. uinfo->value.integer.min = 0;
  2685. uinfo->value.integer.max = WEIGHT_0_DB;
  2686. return 0;
  2687. }
  2688. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2689. struct snd_ctl_elem_value *ucontrol)
  2690. {
  2691. u16 fe_id = 0, out_ch = 0;
  2692. int i, weight;
  2693. fe_id = ((struct soc_multi_mixer_control *)
  2694. kcontrol->private_value)->shift;
  2695. out_ch = ((struct soc_multi_mixer_control *)
  2696. kcontrol->private_value)->rshift;
  2697. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2698. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2699. return -EINVAL;
  2700. }
  2701. if (out_ch >= ADM_MAX_CHANNELS) {
  2702. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2703. return -EINVAL;
  2704. }
  2705. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2706. __func__, fe_id,
  2707. ucontrol->value.integer.value[0],
  2708. ucontrol->value.integer.value[1],
  2709. ucontrol->value.integer.value[2],
  2710. ucontrol->value.integer.value[3],
  2711. ucontrol->value.integer.value[4],
  2712. ucontrol->value.integer.value[5],
  2713. ucontrol->value.integer.value[6],
  2714. ucontrol->value.integer.value[7]);
  2715. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2716. weight = ucontrol->value.integer.value[i];
  2717. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2718. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2719. __func__, fe_id, out_ch, i,
  2720. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2721. }
  2722. return 0;
  2723. }
  2724. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2725. struct snd_ctl_elem_value *ucontrol)
  2726. {
  2727. u16 fe_id = 0, out_ch = 0;
  2728. int i;
  2729. fe_id = ((struct soc_multi_mixer_control *)
  2730. kcontrol->private_value)->shift;
  2731. out_ch = ((struct soc_multi_mixer_control *)
  2732. kcontrol->private_value)->rshift;
  2733. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2734. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2735. return -EINVAL;
  2736. }
  2737. if (out_ch >= ADM_MAX_CHANNELS) {
  2738. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2739. return -EINVAL;
  2740. }
  2741. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2742. ucontrol->value.integer.value[i] =
  2743. channel_mixer[fe_id].channel_weight[out_ch][i];
  2744. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2745. __func__, fe_id,
  2746. ucontrol->value.integer.value[0],
  2747. ucontrol->value.integer.value[1],
  2748. ucontrol->value.integer.value[2],
  2749. ucontrol->value.integer.value[3],
  2750. ucontrol->value.integer.value[4],
  2751. ucontrol->value.integer.value[5],
  2752. ucontrol->value.integer.value[6],
  2753. ucontrol->value.integer.value[7]);
  2754. return 0;
  2755. }
  2756. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2757. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2758. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2759. msm_pcm_get_channel_rule_index,
  2760. msm_pcm_put_channel_rule_index),
  2761. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2762. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2763. msm_pcm_get_channel_rule_index,
  2764. msm_pcm_put_channel_rule_index),
  2765. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2766. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2767. msm_pcm_get_channel_rule_index,
  2768. msm_pcm_put_channel_rule_index),
  2769. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2770. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2771. msm_pcm_get_channel_rule_index,
  2772. msm_pcm_put_channel_rule_index),
  2773. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2774. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2775. msm_pcm_get_channel_rule_index,
  2776. msm_pcm_put_channel_rule_index),
  2777. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2778. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2779. msm_pcm_get_channel_rule_index,
  2780. msm_pcm_put_channel_rule_index),
  2781. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2782. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2783. msm_pcm_get_out_chs,
  2784. msm_pcm_put_out_chs),
  2785. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2786. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2787. msm_pcm_get_out_chs,
  2788. msm_pcm_put_out_chs),
  2789. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2790. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2791. msm_pcm_get_out_chs,
  2792. msm_pcm_put_out_chs),
  2793. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2794. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2795. msm_pcm_get_out_chs,
  2796. msm_pcm_put_out_chs),
  2797. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2798. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2799. msm_pcm_get_out_chs,
  2800. msm_pcm_put_out_chs),
  2801. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2802. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2803. msm_pcm_get_out_chs,
  2804. msm_pcm_put_out_chs),
  2805. {
  2806. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2807. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2808. .name = "MultiMedia1 Channel Mixer",
  2809. .info = msm_pcm_channel_mixer_info,
  2810. .get = msm_pcm_channel_mixer_get,
  2811. .put = msm_pcm_channel_mixer_put,
  2812. .private_value = (unsigned long)&(mm1_channel_mux)
  2813. },
  2814. {
  2815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2816. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2817. .name = "MultiMedia2 Channel Mixer",
  2818. .info = msm_pcm_channel_mixer_info,
  2819. .get = msm_pcm_channel_mixer_get,
  2820. .put = msm_pcm_channel_mixer_put,
  2821. .private_value = (unsigned long)&(mm2_channel_mux)
  2822. },
  2823. {
  2824. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2825. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2826. .name = "MultiMedia3 Channel Mixer",
  2827. .info = msm_pcm_channel_mixer_info,
  2828. .get = msm_pcm_channel_mixer_get,
  2829. .put = msm_pcm_channel_mixer_put,
  2830. .private_value = (unsigned long)&(mm3_channel_mux)
  2831. },
  2832. {
  2833. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2834. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2835. .name = "MultiMedia4 Channel Mixer",
  2836. .info = msm_pcm_channel_mixer_info,
  2837. .get = msm_pcm_channel_mixer_get,
  2838. .put = msm_pcm_channel_mixer_put,
  2839. .private_value = (unsigned long)&(mm4_channel_mux)
  2840. },
  2841. {
  2842. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2843. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2844. .name = "MultiMedia1 Output Channel1",
  2845. .info = msm_pcm_channel_weight_info,
  2846. .get = msm_pcm_channel_weight_get,
  2847. .put = msm_pcm_channel_weight_put,
  2848. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2849. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2850. },
  2851. {
  2852. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2853. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2854. .name = "MultiMedia1 Output Channel2",
  2855. .info = msm_pcm_channel_weight_info,
  2856. .get = msm_pcm_channel_weight_get,
  2857. .put = msm_pcm_channel_weight_put,
  2858. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2859. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2860. },
  2861. {
  2862. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2863. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2864. .name = "MultiMedia1 Output Channel3",
  2865. .info = msm_pcm_channel_weight_info,
  2866. .get = msm_pcm_channel_weight_get,
  2867. .put = msm_pcm_channel_weight_put,
  2868. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2869. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2870. },
  2871. {
  2872. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2873. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2874. .name = "MultiMedia1 Output Channel4",
  2875. .info = msm_pcm_channel_weight_info,
  2876. .get = msm_pcm_channel_weight_get,
  2877. .put = msm_pcm_channel_weight_put,
  2878. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2879. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2880. },
  2881. {
  2882. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2883. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2884. .name = "MultiMedia1 Output Channel5",
  2885. .info = msm_pcm_channel_weight_info,
  2886. .get = msm_pcm_channel_weight_get,
  2887. .put = msm_pcm_channel_weight_put,
  2888. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2889. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2890. },
  2891. {
  2892. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2893. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2894. .name = "MultiMedia1 Output Channel6",
  2895. .info = msm_pcm_channel_weight_info,
  2896. .get = msm_pcm_channel_weight_get,
  2897. .put = msm_pcm_channel_weight_put,
  2898. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2899. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2900. },
  2901. {
  2902. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2903. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2904. .name = "MultiMedia1 Output Channel7",
  2905. .info = msm_pcm_channel_weight_info,
  2906. .get = msm_pcm_channel_weight_get,
  2907. .put = msm_pcm_channel_weight_put,
  2908. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2909. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2910. },
  2911. {
  2912. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2913. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2914. .name = "MultiMedia1 Output Channel8",
  2915. .info = msm_pcm_channel_weight_info,
  2916. .get = msm_pcm_channel_weight_get,
  2917. .put = msm_pcm_channel_weight_put,
  2918. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2919. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2920. },
  2921. {
  2922. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2923. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2924. .name = "MultiMedia2 Output Channel1",
  2925. .info = msm_pcm_channel_weight_info,
  2926. .get = msm_pcm_channel_weight_get,
  2927. .put = msm_pcm_channel_weight_put,
  2928. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2929. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2930. },
  2931. {
  2932. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2933. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2934. .name = "MultiMedia2 Output Channel2",
  2935. .info = msm_pcm_channel_weight_info,
  2936. .get = msm_pcm_channel_weight_get,
  2937. .put = msm_pcm_channel_weight_put,
  2938. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2939. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2940. },
  2941. {
  2942. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2943. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2944. .name = "MultiMedia2 Output Channel3",
  2945. .info = msm_pcm_channel_weight_info,
  2946. .get = msm_pcm_channel_weight_get,
  2947. .put = msm_pcm_channel_weight_put,
  2948. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2949. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2950. },
  2951. {
  2952. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2953. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2954. .name = "MultiMedia3 Output Channel1",
  2955. .info = msm_pcm_channel_weight_info,
  2956. .get = msm_pcm_channel_weight_get,
  2957. .put = msm_pcm_channel_weight_put,
  2958. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2959. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  2960. },
  2961. {
  2962. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2963. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2964. .name = "MultiMedia3 Output Channel2",
  2965. .info = msm_pcm_channel_weight_info,
  2966. .get = msm_pcm_channel_weight_get,
  2967. .put = msm_pcm_channel_weight_put,
  2968. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2969. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  2970. },
  2971. {
  2972. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2973. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2974. .name = "MultiMedia1 Channel1",
  2975. .info = msm_pcm_channel_input_be_info,
  2976. .get = msm_pcm_channel_input_be_get,
  2977. .put = msm_pcm_channel_input_be_put,
  2978. .private_value = (unsigned long)&(mm1_ch1_enum)
  2979. },
  2980. {
  2981. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2982. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2983. .name = "MultiMedia1 Channel2",
  2984. .info = msm_pcm_channel_input_be_info,
  2985. .get = msm_pcm_channel_input_be_get,
  2986. .put = msm_pcm_channel_input_be_put,
  2987. .private_value = (unsigned long)&(mm1_ch2_enum)
  2988. },
  2989. {
  2990. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2991. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2992. .name = "MultiMedia1 Channel3",
  2993. .info = msm_pcm_channel_input_be_info,
  2994. .get = msm_pcm_channel_input_be_get,
  2995. .put = msm_pcm_channel_input_be_put,
  2996. .private_value = (unsigned long)&(mm1_ch3_enum)
  2997. },
  2998. {
  2999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3001. .name = "MultiMedia1 Channel4",
  3002. .info = msm_pcm_channel_input_be_info,
  3003. .get = msm_pcm_channel_input_be_get,
  3004. .put = msm_pcm_channel_input_be_put,
  3005. .private_value = (unsigned long)&(mm1_ch4_enum)
  3006. },
  3007. {
  3008. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3009. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3010. .name = "MultiMedia1 Channel5",
  3011. .info = msm_pcm_channel_input_be_info,
  3012. .get = msm_pcm_channel_input_be_get,
  3013. .put = msm_pcm_channel_input_be_put,
  3014. .private_value = (unsigned long)&(mm1_ch5_enum)
  3015. },
  3016. {
  3017. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3018. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3019. .name = "MultiMedia1 Channel6",
  3020. .info = msm_pcm_channel_input_be_info,
  3021. .get = msm_pcm_channel_input_be_get,
  3022. .put = msm_pcm_channel_input_be_put,
  3023. .private_value = (unsigned long)&(mm1_ch6_enum)
  3024. },
  3025. {
  3026. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3027. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3028. .name = "MultiMedia1 Channel7",
  3029. .info = msm_pcm_channel_input_be_info,
  3030. .get = msm_pcm_channel_input_be_get,
  3031. .put = msm_pcm_channel_input_be_put,
  3032. .private_value = (unsigned long)&(mm1_ch7_enum)
  3033. },
  3034. {
  3035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3036. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3037. .name = "MultiMedia1 Channel8",
  3038. .info = msm_pcm_channel_input_be_info,
  3039. .get = msm_pcm_channel_input_be_get,
  3040. .put = msm_pcm_channel_input_be_put,
  3041. .private_value = (unsigned long)&(mm1_ch8_enum)
  3042. },
  3043. };
  3044. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3045. struct snd_ctl_elem_value *ucontrol)
  3046. {
  3047. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3048. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3049. ucontrol->value.integer.value[0]);
  3050. return 0;
  3051. }
  3052. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3053. struct snd_ctl_elem_value *ucontrol)
  3054. {
  3055. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3056. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3057. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3058. return 0;
  3059. }
  3060. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3061. "Four", "Five", "Six", "Seven", "Eight"};
  3062. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3063. struct snd_ctl_elem_value *ucontrol)
  3064. {
  3065. switch (msm_ec_ref_bit_format) {
  3066. case SNDRV_PCM_FORMAT_S24_LE:
  3067. ucontrol->value.integer.value[0] = 2;
  3068. break;
  3069. case SNDRV_PCM_FORMAT_S16_LE:
  3070. ucontrol->value.integer.value[0] = 1;
  3071. break;
  3072. default:
  3073. ucontrol->value.integer.value[0] = 0;
  3074. break;
  3075. }
  3076. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3077. __func__, ucontrol->value.integer.value[0]);
  3078. return 0;
  3079. }
  3080. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3081. struct snd_ctl_elem_value *ucontrol)
  3082. {
  3083. u16 bit_width = 0;
  3084. switch (ucontrol->value.integer.value[0]) {
  3085. case 2:
  3086. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3087. break;
  3088. case 1:
  3089. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3090. break;
  3091. default:
  3092. msm_ec_ref_bit_format = 0;
  3093. break;
  3094. }
  3095. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3096. bit_width = 16;
  3097. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3098. bit_width = 24;
  3099. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3100. __func__, msm_ec_ref_bit_format);
  3101. adm_ec_ref_rx_bit_width(bit_width);
  3102. return 0;
  3103. }
  3104. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3105. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3106. struct snd_ctl_elem_value *ucontrol)
  3107. {
  3108. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3109. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3110. __func__, ucontrol->value.integer.value[0]);
  3111. return 0;
  3112. }
  3113. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3114. struct snd_ctl_elem_value *ucontrol)
  3115. {
  3116. switch (ucontrol->value.integer.value[0]) {
  3117. case 0:
  3118. msm_ec_ref_sampling_rate = 0;
  3119. break;
  3120. case 1:
  3121. msm_ec_ref_sampling_rate = 8000;
  3122. break;
  3123. case 2:
  3124. msm_ec_ref_sampling_rate = 16000;
  3125. break;
  3126. case 3:
  3127. msm_ec_ref_sampling_rate = 32000;
  3128. break;
  3129. case 4:
  3130. msm_ec_ref_sampling_rate = 44100;
  3131. break;
  3132. case 5:
  3133. msm_ec_ref_sampling_rate = 48000;
  3134. break;
  3135. case 6:
  3136. msm_ec_ref_sampling_rate = 96000;
  3137. break;
  3138. case 7:
  3139. msm_ec_ref_sampling_rate = 192000;
  3140. break;
  3141. case 8:
  3142. msm_ec_ref_sampling_rate = 384000;
  3143. break;
  3144. default:
  3145. msm_ec_ref_sampling_rate = 48000;
  3146. break;
  3147. }
  3148. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3149. __func__, msm_ec_ref_sampling_rate);
  3150. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3151. return 0;
  3152. }
  3153. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3154. "32000", "44100", "48000", "96000", "192000", "384000"};
  3155. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3156. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3157. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3158. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3159. };
  3160. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3161. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3162. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3163. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3164. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3165. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3166. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3167. };
  3168. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3169. struct snd_ctl_elem_value *ucontrol)
  3170. {
  3171. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3172. mutex_lock(&routing_lock);
  3173. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3174. mutex_unlock(&routing_lock);
  3175. return 0;
  3176. }
  3177. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3178. struct snd_ctl_elem_value *ucontrol)
  3179. {
  3180. int ec_ref_port_id;
  3181. struct snd_soc_dapm_widget *widget =
  3182. snd_soc_dapm_kcontrol_widget(kcontrol);
  3183. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3184. struct snd_soc_dapm_update *update = NULL;
  3185. mutex_lock(&routing_lock);
  3186. switch (ucontrol->value.integer.value[0]) {
  3187. case 0:
  3188. msm_route_ec_ref_rx = 0;
  3189. ec_ref_port_id = AFE_PORT_INVALID;
  3190. break;
  3191. case 1:
  3192. msm_route_ec_ref_rx = 1;
  3193. ec_ref_port_id = SLIMBUS_0_RX;
  3194. break;
  3195. case 2:
  3196. msm_route_ec_ref_rx = 2;
  3197. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3198. break;
  3199. case 3:
  3200. msm_route_ec_ref_rx = 3;
  3201. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3202. break;
  3203. case 4:
  3204. msm_route_ec_ref_rx = 4;
  3205. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3206. break;
  3207. case 5:
  3208. msm_route_ec_ref_rx = 5;
  3209. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3210. break;
  3211. case 6:
  3212. msm_route_ec_ref_rx = 6;
  3213. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3214. break;
  3215. case 7:
  3216. msm_route_ec_ref_rx = 7;
  3217. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3218. break;
  3219. case 9:
  3220. msm_route_ec_ref_rx = 9;
  3221. ec_ref_port_id = SLIMBUS_5_RX;
  3222. break;
  3223. case 10:
  3224. msm_route_ec_ref_rx = 10;
  3225. ec_ref_port_id = SLIMBUS_1_TX;
  3226. break;
  3227. case 11:
  3228. msm_route_ec_ref_rx = 11;
  3229. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3230. break;
  3231. case 12:
  3232. msm_route_ec_ref_rx = 12;
  3233. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3234. break;
  3235. case 13:
  3236. msm_route_ec_ref_rx = 13;
  3237. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3238. break;
  3239. case 14:
  3240. msm_route_ec_ref_rx = 14;
  3241. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3242. break;
  3243. case 15:
  3244. msm_route_ec_ref_rx = 15;
  3245. ec_ref_port_id = SLIMBUS_6_RX;
  3246. break;
  3247. case 16:
  3248. msm_route_ec_ref_rx = 16;
  3249. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3250. break;
  3251. case 17:
  3252. msm_route_ec_ref_rx = 17;
  3253. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3254. break;
  3255. case 18:
  3256. msm_route_ec_ref_rx = 18;
  3257. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3258. break;
  3259. case 19:
  3260. msm_route_ec_ref_rx = 19;
  3261. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3262. break;
  3263. case 20:
  3264. msm_route_ec_ref_rx = 20;
  3265. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3266. break;
  3267. case 21:
  3268. msm_route_ec_ref_rx = 21;
  3269. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3270. break;
  3271. case 22:
  3272. msm_route_ec_ref_rx = 22;
  3273. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3274. break;
  3275. case 23:
  3276. msm_route_ec_ref_rx = 23;
  3277. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3278. break;
  3279. default:
  3280. msm_route_ec_ref_rx = 0; /* NONE */
  3281. pr_err("%s EC ref rx %ld not valid\n",
  3282. __func__, ucontrol->value.integer.value[0]);
  3283. ec_ref_port_id = AFE_PORT_INVALID;
  3284. break;
  3285. }
  3286. adm_ec_ref_rx_id(ec_ref_port_id);
  3287. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3288. __func__, msm_route_ec_ref_rx);
  3289. mutex_unlock(&routing_lock);
  3290. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3291. msm_route_ec_ref_rx, e, update);
  3292. return 0;
  3293. }
  3294. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3295. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3296. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3297. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3298. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3299. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3300. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT"};
  3301. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3302. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3303. };
  3304. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3305. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3306. msm_route_ec_ref_rx_enum[0],
  3307. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3308. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3309. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3310. msm_route_ec_ref_rx_enum[0],
  3311. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3312. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3313. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 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_ul4 =
  3317. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 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_ul5 =
  3321. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 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_ul6 =
  3325. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 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_ul8 =
  3329. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 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_ul9 =
  3333. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 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_ul16 =
  3337. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 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_ul10 =
  3341. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 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_ul17 =
  3345. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 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_ul18 =
  3349. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 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_ul19 =
  3353. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 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 int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3357. struct snd_ctl_elem_value *ucontrol)
  3358. {
  3359. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3360. mutex_lock(&routing_lock);
  3361. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3362. mutex_unlock(&routing_lock);
  3363. return 0;
  3364. }
  3365. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3366. struct snd_ctl_elem_value *ucontrol)
  3367. {
  3368. struct snd_soc_dapm_widget *widget =
  3369. snd_soc_dapm_kcontrol_widget(kcontrol);
  3370. int mux = ucontrol->value.enumerated.item[0];
  3371. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3372. int ret = 1;
  3373. bool state = true;
  3374. uint16_t ext_ec_ref_port_id;
  3375. struct snd_soc_dapm_update *update = NULL;
  3376. if (mux >= e->items) {
  3377. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3378. return -EINVAL;
  3379. }
  3380. mutex_lock(&routing_lock);
  3381. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3382. switch (msm_route_ext_ec_ref) {
  3383. case EXT_EC_REF_PRI_MI2S_TX:
  3384. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3385. break;
  3386. case EXT_EC_REF_SEC_MI2S_TX:
  3387. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3388. break;
  3389. case EXT_EC_REF_TERT_MI2S_TX:
  3390. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3391. break;
  3392. case EXT_EC_REF_QUAT_MI2S_TX:
  3393. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3394. break;
  3395. case EXT_EC_REF_QUIN_MI2S_TX:
  3396. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3397. break;
  3398. case EXT_EC_REF_SLIM_1_TX:
  3399. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3400. break;
  3401. case EXT_EC_REF_NONE:
  3402. default:
  3403. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3404. state = false;
  3405. break;
  3406. }
  3407. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3408. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3409. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3410. mutex_unlock(&routing_lock);
  3411. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3412. update);
  3413. } else {
  3414. ret = -EINVAL;
  3415. mutex_unlock(&routing_lock);
  3416. }
  3417. return ret;
  3418. }
  3419. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3420. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3421. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3422. "SLIM_1_TX"};
  3423. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3424. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3425. };
  3426. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3427. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3428. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3429. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3430. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX,
  3431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3432. msm_routing_put_audio_mixer),
  3433. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3435. msm_routing_put_audio_mixer),
  3436. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
  3437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3438. msm_routing_put_audio_mixer),
  3439. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3441. msm_routing_put_audio_mixer),
  3442. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
  3443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3444. msm_routing_put_audio_mixer),
  3445. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3447. msm_routing_put_audio_mixer),
  3448. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
  3449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3450. msm_routing_put_audio_mixer),
  3451. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
  3452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3453. msm_routing_put_audio_mixer),
  3454. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
  3455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3456. msm_routing_put_audio_mixer),
  3457. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3459. msm_routing_put_audio_mixer),
  3460. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
  3461. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3462. msm_routing_put_audio_mixer),
  3463. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
  3464. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3465. msm_routing_put_audio_mixer),
  3466. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
  3467. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3468. msm_routing_put_audio_mixer),
  3469. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3471. msm_routing_put_audio_mixer),
  3472. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
  3473. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3474. msm_routing_put_audio_mixer),
  3475. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
  3476. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3477. msm_routing_put_audio_mixer),
  3478. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_I2S_RX,
  3479. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3480. msm_routing_put_audio_mixer),
  3481. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_I2S_RX,
  3482. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3483. msm_routing_put_audio_mixer),
  3484. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_I2S_RX,
  3485. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3486. msm_routing_put_audio_mixer),
  3487. };
  3488. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3489. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3491. msm_routing_put_audio_mixer),
  3492. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
  3493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3494. msm_routing_put_audio_mixer),
  3495. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3497. msm_routing_put_audio_mixer),
  3498. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
  3499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3500. msm_routing_put_audio_mixer),
  3501. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
  3502. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3503. msm_routing_put_audio_mixer),
  3504. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
  3505. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3506. msm_routing_put_audio_mixer),
  3507. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
  3508. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3509. msm_routing_put_audio_mixer),
  3510. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
  3511. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3512. msm_routing_put_audio_mixer),
  3513. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
  3514. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3515. msm_routing_put_audio_mixer),
  3516. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
  3517. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3518. msm_routing_put_audio_mixer),
  3519. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
  3520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3521. msm_routing_put_audio_mixer),
  3522. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
  3523. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3524. msm_routing_put_audio_mixer),
  3525. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
  3526. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3527. msm_routing_put_audio_mixer),
  3528. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
  3529. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3530. msm_routing_put_audio_mixer),
  3531. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
  3532. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3533. msm_routing_put_audio_mixer),
  3534. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
  3535. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3536. msm_routing_put_audio_mixer),
  3537. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_I2S_RX,
  3538. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3539. msm_routing_put_audio_mixer),
  3540. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_I2S_RX,
  3541. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3542. msm_routing_put_audio_mixer),
  3543. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_I2S_RX,
  3544. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3545. msm_routing_put_audio_mixer),
  3546. };
  3547. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3548. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX,
  3549. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3550. msm_routing_put_audio_mixer),
  3551. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
  3552. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3553. msm_routing_put_audio_mixer),
  3554. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
  3555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3556. msm_routing_put_audio_mixer),
  3557. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
  3558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3559. msm_routing_put_audio_mixer),
  3560. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
  3561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3562. msm_routing_put_audio_mixer),
  3563. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
  3564. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3565. msm_routing_put_audio_mixer),
  3566. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
  3567. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3568. msm_routing_put_audio_mixer),
  3569. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
  3570. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3571. msm_routing_put_audio_mixer),
  3572. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
  3573. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3574. msm_routing_put_audio_mixer),
  3575. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
  3576. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3577. msm_routing_put_audio_mixer),
  3578. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
  3579. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3580. msm_routing_put_audio_mixer),
  3581. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
  3582. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3583. msm_routing_put_audio_mixer),
  3584. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
  3585. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3586. msm_routing_put_audio_mixer),
  3587. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
  3588. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3589. msm_routing_put_audio_mixer),
  3590. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
  3591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3592. msm_routing_put_audio_mixer),
  3593. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
  3594. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3595. msm_routing_put_audio_mixer),
  3596. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SPDIF_RX,
  3597. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3598. msm_routing_put_audio_mixer),
  3599. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SPDIF_RX,
  3600. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3601. msm_routing_put_audio_mixer),
  3602. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SPDIF_RX,
  3603. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3604. msm_routing_put_audio_mixer),
  3605. };
  3606. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3607. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3608. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3609. msm_routing_put_audio_mixer),
  3610. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3611. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3612. msm_routing_put_audio_mixer),
  3613. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3614. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3615. msm_routing_put_audio_mixer),
  3616. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3617. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3618. msm_routing_put_audio_mixer),
  3619. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3621. msm_routing_put_audio_mixer),
  3622. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3624. msm_routing_put_audio_mixer),
  3625. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3629. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3630. msm_routing_put_audio_mixer),
  3631. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3632. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3633. msm_routing_put_audio_mixer),
  3634. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3636. msm_routing_put_audio_mixer),
  3637. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3641. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3642. msm_routing_put_audio_mixer),
  3643. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3644. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3645. msm_routing_put_audio_mixer),
  3646. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3647. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3648. msm_routing_put_audio_mixer),
  3649. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3654. msm_routing_put_audio_mixer),
  3655. };
  3656. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3657. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3662. msm_routing_put_audio_mixer),
  3663. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3664. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3665. msm_routing_put_audio_mixer),
  3666. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3668. msm_routing_put_audio_mixer),
  3669. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3674. msm_routing_put_audio_mixer),
  3675. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3676. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3677. msm_routing_put_audio_mixer),
  3678. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3679. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3680. msm_routing_put_audio_mixer),
  3681. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3686. msm_routing_put_audio_mixer),
  3687. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3688. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3689. msm_routing_put_audio_mixer),
  3690. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3691. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3692. msm_routing_put_audio_mixer),
  3693. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3695. msm_routing_put_audio_mixer),
  3696. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3698. msm_routing_put_audio_mixer),
  3699. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3701. msm_routing_put_audio_mixer),
  3702. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3704. msm_routing_put_audio_mixer),
  3705. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3706. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3707. msm_routing_put_audio_mixer),
  3708. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3709. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3710. msm_routing_put_audio_mixer),
  3711. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. };
  3715. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3716. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3718. msm_routing_put_audio_mixer),
  3719. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3724. msm_routing_put_audio_mixer),
  3725. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3726. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3727. msm_routing_put_audio_mixer),
  3728. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3735. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3736. msm_routing_put_audio_mixer),
  3737. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3739. msm_routing_put_audio_mixer),
  3740. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3748. msm_routing_put_audio_mixer),
  3749. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3750. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3751. msm_routing_put_audio_mixer),
  3752. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3759. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3760. msm_routing_put_audio_mixer),
  3761. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3762. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3763. msm_routing_put_audio_mixer),
  3764. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3771. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3772. msm_routing_put_audio_mixer),
  3773. };
  3774. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3775. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
  3791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3792. msm_routing_put_audio_mixer),
  3793. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
  3800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3801. msm_routing_put_audio_mixer),
  3802. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
  3812. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3813. msm_routing_put_audio_mixer),
  3814. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
  3821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3822. msm_routing_put_audio_mixer),
  3823. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_MI2S_RX,
  3824. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3825. msm_routing_put_audio_mixer),
  3826. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_MI2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_MI2S_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. };
  3833. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  3834. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3842. msm_routing_put_audio_mixer),
  3843. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3844. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3845. msm_routing_put_audio_mixer),
  3846. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3853. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3854. msm_routing_put_audio_mixer),
  3855. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3865. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3866. msm_routing_put_audio_mixer),
  3867. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3877. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3878. msm_routing_put_audio_mixer),
  3879. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3886. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3887. msm_routing_put_audio_mixer),
  3888. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3889. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3890. msm_routing_put_audio_mixer),
  3891. };
  3892. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  3893. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3894. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3895. msm_routing_put_audio_mixer),
  3896. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3898. msm_routing_put_audio_mixer),
  3899. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3906. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3907. msm_routing_put_audio_mixer),
  3908. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3915. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3916. msm_routing_put_audio_mixer),
  3917. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3918. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3919. msm_routing_put_audio_mixer),
  3920. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3927. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3928. msm_routing_put_audio_mixer),
  3929. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3940. msm_routing_put_audio_mixer),
  3941. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3948. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3949. msm_routing_put_audio_mixer),
  3950. };
  3951. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  3952. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3956. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3957. msm_routing_put_audio_mixer),
  3958. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3968. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3969. msm_routing_put_audio_mixer),
  3970. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3971. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3972. msm_routing_put_audio_mixer),
  3973. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3980. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3981. msm_routing_put_audio_mixer),
  3982. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3983. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3984. msm_routing_put_audio_mixer),
  3985. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3993. msm_routing_put_audio_mixer),
  3994. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3995. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3996. msm_routing_put_audio_mixer),
  3997. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4001. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4002. msm_routing_put_audio_mixer),
  4003. };
  4004. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4005. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. };
  4009. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4010. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4017. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4018. msm_routing_put_audio_mixer),
  4019. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4030. msm_routing_put_audio_mixer),
  4031. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4038. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4039. msm_routing_put_audio_mixer),
  4040. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4050. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4051. msm_routing_put_audio_mixer),
  4052. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4053. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4054. msm_routing_put_audio_mixer),
  4055. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4062. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4063. msm_routing_put_audio_mixer),
  4064. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4065. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4066. msm_routing_put_audio_mixer),
  4067. };
  4068. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4069. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4074. msm_routing_put_audio_mixer),
  4075. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4116. msm_routing_put_audio_mixer),
  4117. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4124. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4125. msm_routing_put_audio_mixer),
  4126. };
  4127. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4128. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4133. msm_routing_put_audio_mixer),
  4134. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4166. msm_routing_put_audio_mixer),
  4167. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4168. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4169. msm_routing_put_audio_mixer),
  4170. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. };
  4177. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4178. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4186. msm_routing_put_audio_mixer),
  4187. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4198. msm_routing_put_audio_mixer),
  4199. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4206. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4207. msm_routing_put_audio_mixer),
  4208. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4209. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4210. msm_routing_put_audio_mixer),
  4211. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4218. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4219. msm_routing_put_audio_mixer),
  4220. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. };
  4227. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4228. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
  4241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4242. msm_routing_put_audio_mixer),
  4243. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
  4259. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4260. msm_routing_put_audio_mixer),
  4261. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
  4271. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4272. msm_routing_put_audio_mixer),
  4273. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_HDMI_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_HDMI_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_HDMI_RX,
  4283. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4284. msm_routing_put_audio_mixer),
  4285. };
  4286. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4287. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4288. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4289. msm_routing_put_audio_mixer),
  4290. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4292. msm_routing_put_audio_mixer),
  4293. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4300. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4301. msm_routing_put_audio_mixer),
  4302. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4312. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4313. msm_routing_put_audio_mixer),
  4314. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4327. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4328. msm_routing_put_audio_mixer),
  4329. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. };
  4336. /* incall music delivery mixer */
  4337. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4338. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4340. msm_routing_put_audio_mixer),
  4341. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4346. msm_routing_put_audio_mixer),
  4347. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4348. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4349. msm_routing_put_audio_mixer),
  4350. };
  4351. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4352. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4354. msm_routing_put_audio_mixer),
  4355. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4362. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4363. msm_routing_put_audio_mixer),
  4364. };
  4365. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4366. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4374. msm_routing_put_audio_mixer),
  4375. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. };
  4379. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4380. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4382. msm_routing_put_audio_mixer),
  4383. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4417. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4418. msm_routing_put_audio_mixer),
  4419. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4427. msm_routing_put_audio_mixer),
  4428. };
  4429. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4430. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4444. msm_routing_put_audio_mixer),
  4445. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4453. msm_routing_put_audio_mixer),
  4454. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4456. msm_routing_put_audio_mixer),
  4457. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4467. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4468. msm_routing_put_audio_mixer),
  4469. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. };
  4479. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  4480. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_USB_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_USB_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_USB_RX,
  4487. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4488. msm_routing_put_audio_mixer),
  4489. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_USB_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_USB_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_USB_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_USB_RX,
  4499. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4500. msm_routing_put_audio_mixer),
  4501. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_USB_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_USB_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_USB_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_USB_RX,
  4511. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4512. msm_routing_put_audio_mixer),
  4513. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_USB_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_USB_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_USB_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_USB_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_USB_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. };
  4529. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  4530. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4534. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4535. msm_routing_put_audio_mixer),
  4536. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4561. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4562. msm_routing_put_audio_mixer),
  4563. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4585. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4586. msm_routing_put_audio_mixer),
  4587. };
  4588. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  4589. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4606. msm_routing_put_audio_mixer),
  4607. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4620. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4621. msm_routing_put_audio_mixer),
  4622. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. };
  4638. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  4639. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
  4643. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4644. msm_routing_put_audio_mixer),
  4645. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
  4655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4656. msm_routing_put_audio_mixer),
  4657. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
  4658. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4659. msm_routing_put_audio_mixer),
  4660. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
  4667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4668. msm_routing_put_audio_mixer),
  4669. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
  4679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4680. msm_routing_put_audio_mixer),
  4681. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_FM_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_FM_RX,
  4691. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4692. msm_routing_put_audio_mixer),
  4693. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_FM_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. };
  4697. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  4698. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
  4723. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4724. msm_routing_put_audio_mixer),
  4725. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AFE_PCM_RX,
  4747. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4748. msm_routing_put_audio_mixer),
  4749. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AFE_PCM_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AFE_PCM_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. };
  4756. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  4757. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
  4779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4780. msm_routing_put_audio_mixer),
  4781. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
  4791. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4792. msm_routing_put_audio_mixer),
  4793. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AUXPCM_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AUXPCM_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AUXPCM_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. };
  4815. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  4816. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4818. msm_routing_put_audio_mixer),
  4819. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4839. msm_routing_put_audio_mixer),
  4840. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4865. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4866. msm_routing_put_audio_mixer),
  4867. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. };
  4874. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  4875. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4915. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4916. msm_routing_put_audio_mixer),
  4917. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. };
  4924. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  4925. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4936. msm_routing_put_audio_mixer),
  4937. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4938. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4939. msm_routing_put_audio_mixer),
  4940. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4965. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4966. msm_routing_put_audio_mixer),
  4967. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4972. msm_routing_put_audio_mixer),
  4973. };
  4974. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  4975. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4998. msm_routing_put_audio_mixer),
  4999. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5012. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5013. msm_routing_put_audio_mixer),
  5014. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5015. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5016. msm_routing_put_audio_mixer),
  5017. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. };
  5024. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5025. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5048. msm_routing_put_audio_mixer),
  5049. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5059. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5060. msm_routing_put_audio_mixer),
  5061. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5071. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5072. msm_routing_put_audio_mixer),
  5073. };
  5074. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  5075. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5091. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5092. msm_routing_put_audio_mixer),
  5093. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5119. msm_routing_put_audio_mixer),
  5120. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5121. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5122. msm_routing_put_audio_mixer),
  5123. };
  5124. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  5125. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5165. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5166. msm_routing_put_audio_mixer),
  5167. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5172. msm_routing_put_audio_mixer),
  5173. };
  5174. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5175. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5180. msm_routing_put_audio_mixer),
  5181. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5188. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5189. msm_routing_put_audio_mixer),
  5190. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5192. msm_routing_put_audio_mixer),
  5193. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5201. msm_routing_put_audio_mixer),
  5202. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5204. msm_routing_put_audio_mixer),
  5205. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5212. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5213. msm_routing_put_audio_mixer),
  5214. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5215. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5216. msm_routing_put_audio_mixer),
  5217. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. };
  5224. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  5225. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5251. msm_routing_put_audio_mixer),
  5252. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5265. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5266. msm_routing_put_audio_mixer),
  5267. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. };
  5274. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  5275. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5304. msm_routing_put_audio_mixer),
  5305. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5316. msm_routing_put_audio_mixer),
  5317. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. };
  5324. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  5325. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5336. msm_routing_put_audio_mixer),
  5337. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. };
  5374. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  5375. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5397. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5398. msm_routing_put_audio_mixer),
  5399. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5422. msm_routing_put_audio_mixer),
  5423. };
  5424. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  5425. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5471. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5472. msm_routing_put_audio_mixer),
  5473. };
  5474. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  5475. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5522. msm_routing_put_audio_mixer),
  5523. };
  5524. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  5525. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. };
  5574. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  5575. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. };
  5624. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  5625. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. };
  5674. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  5675. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. };
  5724. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  5725. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. };
  5774. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  5775. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. };
  5824. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  5825. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. };
  5877. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  5878. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. };
  5927. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  5928. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. };
  5980. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  5981. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. };
  6033. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  6034. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6083. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6084. msm_routing_put_audio_mixer),
  6085. };
  6086. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  6087. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. };
  6139. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  6140. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. };
  6189. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  6190. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. };
  6242. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  6243. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. };
  6295. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  6296. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. };
  6348. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  6349. SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. };
  6485. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  6486. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. };
  6589. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  6590. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. };
  6693. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  6694. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. };
  6794. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  6795. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. };
  6913. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  6914. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. };
  7017. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  7018. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. };
  7124. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  7125. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7186. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7187. msm_routing_put_audio_mixer),
  7188. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7198. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7199. msm_routing_put_audio_mixer),
  7200. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7210. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7211. msm_routing_put_audio_mixer),
  7212. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. };
  7231. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  7232. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7272. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7273. msm_routing_put_audio_mixer),
  7274. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7284. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7285. msm_routing_put_audio_mixer),
  7286. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. };
  7293. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  7294. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7347. msm_routing_put_audio_mixer),
  7348. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7358. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7359. msm_routing_put_audio_mixer),
  7360. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. };
  7373. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  7374. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. };
  7396. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  7397. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7416. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7417. msm_routing_put_audio_mixer),
  7418. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. };
  7422. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  7423. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7424. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7425. msm_routing_put_audio_mixer),
  7426. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. };
  7445. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  7446. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7474. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7475. msm_routing_put_audio_mixer),
  7476. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7486. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7487. msm_routing_put_audio_mixer),
  7488. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7498. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7499. msm_routing_put_audio_mixer),
  7500. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7510. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7511. msm_routing_put_audio_mixer),
  7512. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. };
  7522. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  7523. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
  7524. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7525. msm_routing_put_voice_mixer),
  7526. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
  7527. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7528. msm_routing_put_voice_mixer),
  7529. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
  7530. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7531. msm_routing_put_voice_mixer),
  7532. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
  7533. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7534. msm_routing_put_voice_mixer),
  7535. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
  7536. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7537. msm_routing_put_voice_mixer),
  7538. };
  7539. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  7540. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
  7541. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7542. msm_routing_put_voice_mixer),
  7543. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
  7544. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7545. msm_routing_put_voice_mixer),
  7546. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
  7547. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7548. msm_routing_put_voice_mixer),
  7549. };
  7550. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  7551. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7552. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7553. msm_routing_put_voice_mixer),
  7554. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7555. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7556. msm_routing_put_voice_mixer),
  7557. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7558. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7559. msm_routing_put_voice_mixer),
  7560. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7561. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7562. msm_routing_put_voice_mixer),
  7563. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7564. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7565. msm_routing_put_voice_mixer),
  7566. };
  7567. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  7568. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7569. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7570. msm_routing_put_voice_mixer),
  7571. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7572. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7573. msm_routing_put_voice_mixer),
  7574. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7575. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7576. msm_routing_put_voice_mixer),
  7577. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7578. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7579. msm_routing_put_voice_mixer),
  7580. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7581. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7582. msm_routing_put_voice_mixer),
  7583. };
  7584. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  7585. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7586. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7587. msm_routing_put_voice_mixer),
  7588. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7589. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7590. msm_routing_put_voice_mixer),
  7591. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7592. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7593. msm_routing_put_voice_mixer),
  7594. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7595. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7596. msm_routing_put_voice_mixer),
  7597. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7598. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7599. msm_routing_put_voice_mixer),
  7600. };
  7601. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  7602. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_USB_RX,
  7603. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7604. msm_routing_put_voice_mixer),
  7605. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_USB_RX,
  7606. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7607. msm_routing_put_voice_mixer),
  7608. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_USB_RX,
  7609. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7610. msm_routing_put_voice_mixer),
  7611. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_USB_RX,
  7612. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7613. msm_routing_put_voice_mixer),
  7614. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_USB_RX,
  7615. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7616. msm_routing_put_voice_mixer),
  7617. };
  7618. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  7619. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7620. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7621. msm_routing_put_voice_mixer),
  7622. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7623. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7624. msm_routing_put_voice_mixer),
  7625. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7626. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7627. msm_routing_put_voice_mixer),
  7628. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7629. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7630. msm_routing_put_voice_mixer),
  7631. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7632. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7633. msm_routing_put_voice_mixer),
  7634. };
  7635. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  7636. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7637. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7638. msm_routing_put_voice_mixer),
  7639. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7640. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7641. msm_routing_put_voice_mixer),
  7642. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7643. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7644. msm_routing_put_voice_mixer),
  7645. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7646. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7647. msm_routing_put_voice_mixer),
  7648. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7649. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7650. msm_routing_put_voice_mixer),
  7651. };
  7652. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  7653. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
  7654. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7655. msm_routing_put_voice_mixer),
  7656. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
  7657. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7658. msm_routing_put_voice_mixer),
  7659. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
  7660. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7661. msm_routing_put_voice_mixer),
  7662. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
  7663. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7664. msm_routing_put_voice_mixer),
  7665. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
  7666. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7667. msm_routing_put_voice_mixer),
  7668. };
  7669. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  7670. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7671. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7672. msm_routing_put_voice_mixer),
  7673. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7674. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7675. msm_routing_put_voice_mixer),
  7676. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7677. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7678. msm_routing_put_voice_mixer),
  7679. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7680. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7681. msm_routing_put_voice_mixer),
  7682. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7683. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7684. msm_routing_put_voice_mixer),
  7685. };
  7686. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  7687. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7688. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7689. msm_routing_put_voice_mixer),
  7690. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7691. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7692. msm_routing_put_voice_mixer),
  7693. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7694. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7695. msm_routing_put_voice_mixer),
  7696. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7697. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7698. msm_routing_put_voice_mixer),
  7699. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7700. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7701. msm_routing_put_voice_mixer),
  7702. };
  7703. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  7704. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7705. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7706. msm_routing_put_voice_mixer),
  7707. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7708. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7709. msm_routing_put_voice_mixer),
  7710. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7711. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7712. msm_routing_put_voice_mixer),
  7713. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7714. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7715. msm_routing_put_voice_mixer),
  7716. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7717. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7718. msm_routing_put_voice_mixer),
  7719. };
  7720. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  7721. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7722. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7723. msm_routing_put_voice_mixer),
  7724. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7725. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7726. msm_routing_put_voice_mixer),
  7727. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7728. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7729. msm_routing_put_voice_mixer),
  7730. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7731. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7732. msm_routing_put_voice_mixer),
  7733. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7734. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7735. msm_routing_put_voice_mixer),
  7736. };
  7737. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  7738. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7739. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7740. msm_routing_put_voice_mixer),
  7741. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7742. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7743. msm_routing_put_voice_mixer),
  7744. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7745. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7746. msm_routing_put_voice_mixer),
  7747. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7748. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7749. msm_routing_put_voice_mixer),
  7750. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7751. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7752. msm_routing_put_voice_mixer),
  7753. };
  7754. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  7755. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7756. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7757. msm_routing_put_voice_mixer),
  7758. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7759. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7760. msm_routing_put_voice_mixer),
  7761. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7762. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7763. msm_routing_put_voice_mixer),
  7764. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7765. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7766. msm_routing_put_voice_mixer),
  7767. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7768. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7769. msm_routing_put_voice_mixer),
  7770. };
  7771. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  7772. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
  7773. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7774. msm_routing_put_voice_mixer),
  7775. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
  7776. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7777. msm_routing_put_voice_mixer),
  7778. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
  7779. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7780. msm_routing_put_voice_mixer),
  7781. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
  7782. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7783. msm_routing_put_voice_mixer),
  7784. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7785. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7786. msm_routing_put_voice_mixer),
  7787. };
  7788. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  7789. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
  7790. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7791. msm_routing_put_voice_mixer),
  7792. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
  7793. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7794. msm_routing_put_voice_mixer),
  7795. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
  7796. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7797. msm_routing_put_voice_mixer),
  7798. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
  7799. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7800. msm_routing_put_voice_mixer),
  7801. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
  7802. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7803. msm_routing_put_voice_mixer),
  7804. };
  7805. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  7806. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7807. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7808. msm_routing_put_voice_mixer),
  7809. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7810. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7811. msm_routing_put_voice_mixer),
  7812. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7813. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7814. msm_routing_put_voice_mixer),
  7815. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7816. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7817. msm_routing_put_voice_mixer),
  7818. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7819. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7820. msm_routing_put_voice_mixer),
  7821. };
  7822. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  7823. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7825. msm_routing_put_voice_mixer),
  7826. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7827. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7828. msm_routing_put_voice_mixer),
  7829. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7830. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7831. msm_routing_put_voice_mixer),
  7832. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7833. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7834. msm_routing_put_voice_mixer),
  7835. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7836. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7837. msm_routing_put_voice_mixer),
  7838. };
  7839. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  7840. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7841. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7842. msm_routing_put_voice_mixer),
  7843. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7844. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7845. msm_routing_put_voice_mixer),
  7846. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7847. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7848. msm_routing_put_voice_mixer),
  7849. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7850. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7851. msm_routing_put_voice_mixer),
  7852. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7853. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7854. msm_routing_put_voice_mixer),
  7855. };
  7856. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  7857. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7858. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7859. msm_routing_put_voice_mixer),
  7860. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7861. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7862. msm_routing_put_voice_mixer),
  7863. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7864. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7865. msm_routing_put_voice_mixer),
  7866. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7867. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7868. msm_routing_put_voice_mixer),
  7869. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7870. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7871. msm_routing_put_voice_mixer),
  7872. };
  7873. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  7874. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
  7875. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7876. msm_routing_put_voice_mixer),
  7877. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
  7878. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7879. msm_routing_put_voice_mixer),
  7880. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
  7881. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7882. msm_routing_put_voice_mixer),
  7883. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
  7884. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7885. msm_routing_put_voice_mixer),
  7886. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
  7887. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7888. msm_routing_put_voice_mixer),
  7889. };
  7890. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  7891. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7892. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7893. msm_routing_put_voice_mixer),
  7894. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7895. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7896. msm_routing_put_voice_mixer),
  7897. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7898. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7899. msm_routing_put_voice_mixer),
  7900. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7901. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7902. msm_routing_put_voice_mixer),
  7903. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7904. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7905. msm_routing_put_voice_mixer),
  7906. };
  7907. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  7908. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7909. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7910. msm_routing_put_voice_mixer),
  7911. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7912. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7913. msm_routing_put_voice_mixer),
  7914. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7915. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7916. msm_routing_put_voice_mixer),
  7917. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7918. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7919. msm_routing_put_voice_mixer),
  7920. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7921. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7922. msm_routing_put_voice_mixer),
  7923. };
  7924. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  7925. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7926. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7927. msm_routing_put_voice_mixer),
  7928. };
  7929. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  7930. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_EXTPROC_RX,
  7931. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7932. msm_routing_put_voice_mixer),
  7933. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_EXTPROC_RX,
  7934. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7935. msm_routing_put_voice_mixer),
  7936. };
  7937. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  7938. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7939. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7940. msm_routing_put_voice_mixer),
  7941. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7942. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7943. msm_routing_put_voice_mixer),
  7944. };
  7945. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  7946. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7947. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7948. msm_routing_put_voice_mixer),
  7949. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7950. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7951. msm_routing_put_voice_mixer),
  7952. };
  7953. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  7954. SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
  7955. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7956. msm_routing_put_voice_mixer),
  7957. SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
  7958. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7959. msm_routing_put_voice_mixer),
  7960. SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
  7961. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7962. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7963. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
  7964. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7965. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7966. SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
  7967. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7968. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7969. SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
  7970. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7971. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7972. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
  7973. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7974. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7975. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode1",
  7976. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7977. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7978. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode1",
  7979. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7980. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7981. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode1",
  7982. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7983. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7984. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
  7985. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7986. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7987. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
  7988. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7989. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7990. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode1",
  7991. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7992. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7993. SOC_SINGLE_EXT("SLIM_7_TX_MMode1",
  7994. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7995. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7996. SOC_SINGLE_EXT("SLIM_8_TX_MMode1",
  7997. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7998. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7999. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode1", MSM_BACKEND_DAI_USB_TX,
  8000. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8001. msm_routing_put_voice_mixer),
  8002. SOC_SINGLE_EXT("QUAT_TDM_TX_0_MMode1",
  8003. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  8004. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8005. };
  8006. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  8007. SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
  8008. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8009. msm_routing_put_voice_mixer),
  8010. SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
  8011. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8012. msm_routing_put_voice_mixer),
  8013. SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
  8014. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8015. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8016. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
  8017. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8018. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8019. SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
  8020. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8021. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8022. SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
  8023. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8024. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8025. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
  8026. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8027. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8028. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode2",
  8029. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8030. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8031. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode2",
  8032. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8033. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8034. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode2",
  8035. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8036. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8037. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
  8038. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8039. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8040. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
  8041. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8042. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8043. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode2",
  8044. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8045. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8046. SOC_SINGLE_EXT("SLIM_7_TX_MMode2",
  8047. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8048. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8049. SOC_SINGLE_EXT("SLIM_8_TX_MMode2",
  8050. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8051. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8052. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode2",
  8053. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8054. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8055. };
  8056. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  8057. SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
  8058. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8059. msm_routing_put_voice_mixer),
  8060. SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
  8061. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8062. msm_routing_put_voice_mixer),
  8063. SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8064. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8065. msm_routing_put_voice_mixer),
  8066. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8067. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8068. msm_routing_put_voice_mixer),
  8069. SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
  8070. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8071. msm_routing_put_voice_mixer),
  8072. SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
  8073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8074. msm_routing_put_voice_mixer),
  8075. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8076. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8077. msm_routing_put_voice_mixer),
  8078. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8079. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8080. msm_routing_put_voice_mixer),
  8081. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8082. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8083. msm_routing_put_voice_mixer),
  8084. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8086. msm_routing_put_voice_mixer),
  8087. SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8088. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8089. msm_routing_put_voice_mixer),
  8090. SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8091. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8092. msm_routing_put_voice_mixer),
  8093. SOC_SINGLE_EXT("INT3_MI2S_TX_Voip", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8094. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8095. msm_routing_put_voice_mixer),
  8096. SOC_SINGLE_EXT("SLIM_7_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8097. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8098. msm_routing_put_voice_mixer),
  8099. SOC_SINGLE_EXT("SLIM_8_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8100. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8101. msm_routing_put_voice_mixer),
  8102. SOC_SINGLE_EXT("USB_AUDIO_TX_Voip", MSM_BACKEND_DAI_USB_TX,
  8103. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8104. msm_routing_put_voice_mixer),
  8105. };
  8106. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  8107. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8108. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8109. msm_routing_put_voice_stub_mixer),
  8110. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8111. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8112. msm_routing_put_voice_stub_mixer),
  8113. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8114. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8115. msm_routing_put_voice_stub_mixer),
  8116. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8117. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8118. msm_routing_put_voice_stub_mixer),
  8119. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  8120. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8121. msm_routing_put_voice_stub_mixer),
  8122. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8123. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8124. msm_routing_put_voice_stub_mixer),
  8125. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8126. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8127. msm_routing_put_voice_stub_mixer),
  8128. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  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("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8132. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8133. msm_routing_put_voice_stub_mixer),
  8134. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8135. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8136. msm_routing_put_voice_stub_mixer),
  8137. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8138. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8139. msm_routing_put_voice_stub_mixer),
  8140. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8141. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8142. msm_routing_put_voice_stub_mixer),
  8143. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8144. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8145. msm_routing_put_voice_stub_mixer),
  8146. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8147. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8148. msm_routing_put_voice_stub_mixer),
  8149. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8151. msm_routing_put_voice_stub_mixer),
  8152. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8153. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8154. msm_routing_put_voice_stub_mixer),
  8155. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8156. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8157. msm_routing_put_voice_stub_mixer),
  8158. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8159. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8160. msm_routing_put_voice_stub_mixer),
  8161. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8162. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8163. msm_routing_put_voice_stub_mixer),
  8164. };
  8165. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  8166. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8167. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8168. msm_routing_put_voice_stub_mixer),
  8169. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8170. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8171. msm_routing_put_voice_stub_mixer),
  8172. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8173. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8174. msm_routing_put_voice_stub_mixer),
  8175. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8176. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8177. msm_routing_put_voice_stub_mixer),
  8178. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8179. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8180. msm_routing_put_voice_stub_mixer),
  8181. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8182. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8183. msm_routing_put_voice_stub_mixer),
  8184. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8185. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8186. msm_routing_put_voice_stub_mixer),
  8187. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8188. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8189. msm_routing_put_voice_stub_mixer),
  8190. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8191. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8192. msm_routing_put_voice_stub_mixer),
  8193. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8194. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8195. msm_routing_put_voice_stub_mixer),
  8196. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8197. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8198. msm_routing_put_voice_stub_mixer),
  8199. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8200. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8201. msm_routing_put_voice_stub_mixer),
  8202. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8203. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8204. msm_routing_put_voice_stub_mixer),
  8205. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8206. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8207. msm_routing_put_voice_stub_mixer),
  8208. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8209. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8210. msm_routing_put_voice_stub_mixer),
  8211. };
  8212. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  8213. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8214. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8215. msm_routing_put_voice_stub_mixer),
  8216. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8217. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8218. msm_routing_put_voice_stub_mixer),
  8219. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8220. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8221. msm_routing_put_voice_stub_mixer),
  8222. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8223. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8224. msm_routing_put_voice_stub_mixer),
  8225. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8226. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8227. msm_routing_put_voice_stub_mixer),
  8228. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8229. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8230. msm_routing_put_voice_stub_mixer),
  8231. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8232. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8233. msm_routing_put_voice_stub_mixer),
  8234. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8235. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8236. msm_routing_put_voice_stub_mixer),
  8237. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8238. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8239. msm_routing_put_voice_stub_mixer),
  8240. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8241. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8242. msm_routing_put_voice_stub_mixer),
  8243. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8244. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8245. msm_routing_put_voice_stub_mixer),
  8246. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8247. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8248. msm_routing_put_voice_stub_mixer),
  8249. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8250. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8251. msm_routing_put_voice_stub_mixer),
  8252. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8253. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8254. msm_routing_put_voice_stub_mixer),
  8255. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8256. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8257. msm_routing_put_voice_stub_mixer),
  8258. };
  8259. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  8260. SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
  8261. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8262. msm_routing_put_voice_mixer),
  8263. SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8264. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8265. msm_routing_put_voice_mixer),
  8266. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
  8267. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
  8268. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8269. SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
  8270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8271. msm_routing_put_voice_mixer),
  8272. SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
  8273. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8274. msm_routing_put_voice_mixer),
  8275. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8276. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8277. msm_routing_put_voice_mixer),
  8278. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8279. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8280. msm_routing_put_voice_mixer),
  8281. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8282. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8283. msm_routing_put_voice_mixer),
  8284. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8285. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8286. msm_routing_put_voice_mixer),
  8287. SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
  8288. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8289. msm_routing_put_voice_mixer),
  8290. SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8291. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8292. msm_routing_put_voice_mixer),
  8293. SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8295. msm_routing_put_voice_mixer),
  8296. SOC_SINGLE_EXT("INT3_MI2S_TX_QCHAT", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8297. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8298. msm_routing_put_voice_mixer),
  8299. SOC_SINGLE_EXT("SLIM_7_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8300. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8301. msm_routing_put_voice_mixer),
  8302. SOC_SINGLE_EXT("SLIM_8_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8303. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8304. msm_routing_put_voice_mixer),
  8305. SOC_SINGLE_EXT("USB_AUDIO_TX_QCHAT", MSM_BACKEND_DAI_USB_TX,
  8306. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8307. msm_routing_put_voice_mixer),
  8308. };
  8309. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  8310. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8311. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8312. msm_routing_put_port_mixer),
  8313. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8314. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8315. msm_routing_put_port_mixer),
  8316. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8317. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8318. msm_routing_put_port_mixer),
  8319. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8320. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8321. msm_routing_put_port_mixer),
  8322. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8323. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8324. msm_routing_put_port_mixer),
  8325. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8326. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8327. msm_routing_put_port_mixer),
  8328. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8329. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8330. msm_routing_put_port_mixer),
  8331. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8332. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8333. msm_routing_put_port_mixer),
  8334. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8335. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8336. msm_routing_put_port_mixer),
  8337. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8338. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8339. msm_routing_put_port_mixer),
  8340. };
  8341. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  8342. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8343. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8344. msm_routing_put_port_mixer),
  8345. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8346. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8347. msm_routing_put_port_mixer),
  8348. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8349. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8350. msm_routing_put_port_mixer),
  8351. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8352. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8353. msm_routing_put_port_mixer),
  8354. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8355. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8356. msm_routing_put_port_mixer),
  8357. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8358. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8359. msm_routing_put_port_mixer),
  8360. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8361. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8362. msm_routing_put_port_mixer),
  8363. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8364. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8365. msm_routing_put_port_mixer),
  8366. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8367. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8368. msm_routing_put_port_mixer),
  8369. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8370. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8371. msm_routing_put_port_mixer),
  8372. };
  8373. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  8374. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8375. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8376. msm_routing_put_port_mixer),
  8377. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8378. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8379. msm_routing_put_port_mixer),
  8380. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8381. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8382. msm_routing_put_port_mixer),
  8383. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8384. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8385. msm_routing_put_port_mixer),
  8386. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8387. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8388. msm_routing_put_port_mixer),
  8389. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8390. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8391. msm_routing_put_port_mixer),
  8392. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8393. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8394. msm_routing_put_port_mixer),
  8395. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8396. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8397. msm_routing_put_port_mixer),
  8398. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8399. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8400. msm_routing_put_port_mixer),
  8401. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8402. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8403. msm_routing_put_port_mixer),
  8404. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8405. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8406. msm_routing_put_port_mixer),
  8407. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8408. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8409. msm_routing_put_port_mixer),
  8410. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8411. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8412. msm_routing_put_port_mixer),
  8413. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8414. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8415. msm_routing_put_port_mixer),
  8416. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8417. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8418. msm_routing_put_port_mixer),
  8419. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8420. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8421. msm_routing_put_port_mixer),
  8422. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8423. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8424. msm_routing_put_port_mixer),
  8425. SOC_SINGLE_EXT("PRI_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8426. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8427. msm_routing_put_port_mixer),
  8428. SOC_SINGLE_EXT("SEC_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8430. msm_routing_put_port_mixer),
  8431. SOC_SINGLE_EXT("TERT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8432. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8433. msm_routing_put_port_mixer),
  8434. SOC_SINGLE_EXT("QUAT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8435. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8436. msm_routing_put_port_mixer),
  8437. SOC_SINGLE_EXT("QUIN_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8438. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8439. msm_routing_put_port_mixer),
  8440. };
  8441. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  8442. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8443. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8444. msm_routing_put_port_mixer),
  8445. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8446. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8447. msm_routing_put_port_mixer),
  8448. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8449. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8450. msm_routing_put_port_mixer),
  8451. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8452. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8453. msm_routing_put_port_mixer),
  8454. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
  8455. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  8456. msm_routing_put_port_mixer),
  8457. };
  8458. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  8459. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8460. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8461. msm_routing_put_port_mixer),
  8462. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8463. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8464. msm_routing_put_port_mixer),
  8465. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8466. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8467. msm_routing_put_port_mixer),
  8468. };
  8469. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  8470. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8471. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8472. msm_routing_put_port_mixer),
  8473. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8474. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8475. msm_routing_put_port_mixer),
  8476. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8477. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8478. msm_routing_put_port_mixer),
  8479. };
  8480. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  8481. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8482. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8483. msm_routing_put_port_mixer),
  8484. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8485. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8486. msm_routing_put_port_mixer),
  8487. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8488. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8489. msm_routing_put_port_mixer),
  8490. };
  8491. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  8492. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8493. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8494. msm_routing_put_port_mixer),
  8495. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8496. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8497. msm_routing_put_port_mixer),
  8498. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8499. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8500. msm_routing_put_port_mixer),
  8501. };
  8502. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  8503. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8504. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8505. msm_routing_put_port_mixer),
  8506. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8507. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  8508. msm_routing_put_port_mixer),
  8509. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8510. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8511. msm_routing_put_port_mixer),
  8512. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8513. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8514. msm_routing_put_port_mixer),
  8515. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8516. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8517. msm_routing_put_port_mixer),
  8518. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8519. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8520. msm_routing_put_port_mixer),
  8521. };
  8522. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  8523. SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8524. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  8525. msm_routing_put_port_mixer),
  8526. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8527. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8528. msm_routing_put_port_mixer),
  8529. SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8530. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  8531. msm_routing_put_port_mixer),
  8532. SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8533. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  8534. msm_routing_put_port_mixer),
  8535. SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8536. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  8537. msm_routing_put_port_mixer),
  8538. };
  8539. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  8540. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8541. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8542. msm_routing_put_port_mixer),
  8543. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8544. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8545. msm_routing_put_port_mixer),
  8546. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8547. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8548. msm_routing_put_port_mixer),
  8549. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8550. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8551. msm_routing_put_port_mixer),
  8552. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8553. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8554. msm_routing_put_port_mixer),
  8555. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8556. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8557. msm_routing_put_port_mixer),
  8558. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8559. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8560. msm_routing_put_port_mixer),
  8561. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8562. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8563. msm_routing_put_port_mixer),
  8564. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8565. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8566. msm_routing_put_port_mixer),
  8567. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8568. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8569. msm_routing_put_port_mixer),
  8570. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8571. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8572. msm_routing_put_port_mixer),
  8573. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8574. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8575. msm_routing_put_port_mixer),
  8576. };
  8577. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  8578. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8579. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8580. msm_routing_put_port_mixer),
  8581. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8582. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8583. msm_routing_put_port_mixer),
  8584. };
  8585. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  8586. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8587. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8588. msm_routing_put_port_mixer),
  8589. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8590. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8591. msm_routing_put_port_mixer),
  8592. };
  8593. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  8594. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
  8595. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8596. msm_routing_put_port_mixer),
  8597. };
  8598. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  8599. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  8600. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8601. msm_routing_put_port_mixer),
  8602. };
  8603. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  8604. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
  8605. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8606. msm_routing_put_port_mixer),
  8607. };
  8608. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  8609. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
  8610. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8611. msm_routing_put_port_mixer),
  8612. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
  8613. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8614. msm_routing_put_port_mixer),
  8615. };
  8616. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  8617. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8618. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8619. msm_routing_put_port_mixer),
  8620. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8621. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8622. msm_routing_put_port_mixer),
  8623. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8624. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8625. msm_routing_put_port_mixer),
  8626. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8627. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8628. msm_routing_put_port_mixer),
  8629. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8630. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8631. msm_routing_put_port_mixer),
  8632. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8633. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8634. msm_routing_put_port_mixer),
  8635. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8636. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8637. msm_routing_put_port_mixer),
  8638. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8639. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8640. msm_routing_put_port_mixer),
  8641. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8642. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8643. msm_routing_put_port_mixer),
  8644. };
  8645. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  8646. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_RX,
  8647. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  8648. msm_routing_put_port_mixer),
  8649. };
  8650. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  8651. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8652. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8653. msm_routing_put_port_mixer),
  8654. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8655. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8656. msm_routing_put_port_mixer),
  8657. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8658. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8659. msm_routing_put_port_mixer),
  8660. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8661. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8662. msm_routing_put_port_mixer),
  8663. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8664. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8665. msm_routing_put_port_mixer),
  8666. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8667. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8668. msm_routing_put_port_mixer),
  8669. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8670. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8671. msm_routing_put_port_mixer),
  8672. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8673. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8674. msm_routing_put_port_mixer),
  8675. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8676. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8677. msm_routing_put_port_mixer),
  8678. };
  8679. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  8680. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8681. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8682. msm_routing_put_port_mixer),
  8683. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8684. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8685. msm_routing_put_port_mixer),
  8686. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8687. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8688. msm_routing_put_port_mixer),
  8689. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8690. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8691. msm_routing_put_port_mixer),
  8692. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8693. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8694. msm_routing_put_port_mixer),
  8695. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8696. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8697. msm_routing_put_port_mixer),
  8698. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8699. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8700. msm_routing_put_port_mixer),
  8701. };
  8702. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  8703. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8704. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8705. msm_routing_get_port_mixer,
  8706. msm_routing_put_port_mixer),
  8707. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8708. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8709. msm_routing_get_port_mixer,
  8710. msm_routing_put_port_mixer),
  8711. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8712. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8713. msm_routing_get_port_mixer,
  8714. msm_routing_put_port_mixer),
  8715. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8716. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8717. msm_routing_get_port_mixer,
  8718. msm_routing_put_port_mixer),
  8719. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8720. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8721. msm_routing_get_port_mixer,
  8722. msm_routing_put_port_mixer),
  8723. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8724. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8725. msm_routing_get_port_mixer,
  8726. msm_routing_put_port_mixer),
  8727. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8728. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8729. msm_routing_get_port_mixer,
  8730. msm_routing_put_port_mixer),
  8731. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8732. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8733. msm_routing_get_port_mixer,
  8734. msm_routing_put_port_mixer),
  8735. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8736. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8737. msm_routing_get_port_mixer,
  8738. msm_routing_put_port_mixer),
  8739. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8740. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8741. msm_routing_get_port_mixer,
  8742. msm_routing_put_port_mixer),
  8743. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8744. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8745. msm_routing_get_port_mixer,
  8746. msm_routing_put_port_mixer),
  8747. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8748. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8749. msm_routing_get_port_mixer,
  8750. msm_routing_put_port_mixer),
  8751. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8752. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8753. msm_routing_get_port_mixer,
  8754. msm_routing_put_port_mixer),
  8755. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8756. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8757. msm_routing_get_port_mixer,
  8758. msm_routing_put_port_mixer),
  8759. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8760. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8761. msm_routing_get_port_mixer,
  8762. msm_routing_put_port_mixer),
  8763. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8764. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8765. msm_routing_get_port_mixer,
  8766. msm_routing_put_port_mixer),
  8767. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8768. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8769. msm_routing_get_port_mixer,
  8770. msm_routing_put_port_mixer),
  8771. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8772. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8773. msm_routing_get_port_mixer,
  8774. msm_routing_put_port_mixer),
  8775. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8776. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8777. msm_routing_get_port_mixer,
  8778. msm_routing_put_port_mixer),
  8779. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8780. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8781. msm_routing_get_port_mixer,
  8782. msm_routing_put_port_mixer),
  8783. };
  8784. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  8785. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8786. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8787. msm_routing_get_port_mixer,
  8788. msm_routing_put_port_mixer),
  8789. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8790. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8791. msm_routing_get_port_mixer,
  8792. msm_routing_put_port_mixer),
  8793. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8794. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8795. msm_routing_get_port_mixer,
  8796. msm_routing_put_port_mixer),
  8797. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8798. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8799. msm_routing_get_port_mixer,
  8800. msm_routing_put_port_mixer),
  8801. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8802. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8803. msm_routing_get_port_mixer,
  8804. msm_routing_put_port_mixer),
  8805. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8806. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8807. msm_routing_get_port_mixer,
  8808. msm_routing_put_port_mixer),
  8809. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8810. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8811. msm_routing_get_port_mixer,
  8812. msm_routing_put_port_mixer),
  8813. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8814. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8815. msm_routing_get_port_mixer,
  8816. msm_routing_put_port_mixer),
  8817. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8818. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8819. msm_routing_get_port_mixer,
  8820. msm_routing_put_port_mixer),
  8821. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8822. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8823. msm_routing_get_port_mixer,
  8824. msm_routing_put_port_mixer),
  8825. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8826. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8827. msm_routing_get_port_mixer,
  8828. msm_routing_put_port_mixer),
  8829. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8830. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8831. msm_routing_get_port_mixer,
  8832. msm_routing_put_port_mixer),
  8833. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8834. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8835. msm_routing_get_port_mixer,
  8836. msm_routing_put_port_mixer),
  8837. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8838. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8839. msm_routing_get_port_mixer,
  8840. msm_routing_put_port_mixer),
  8841. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8842. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8843. msm_routing_get_port_mixer,
  8844. msm_routing_put_port_mixer),
  8845. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8846. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8847. msm_routing_get_port_mixer,
  8848. msm_routing_put_port_mixer),
  8849. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8850. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8851. msm_routing_get_port_mixer,
  8852. msm_routing_put_port_mixer),
  8853. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8854. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8855. msm_routing_get_port_mixer,
  8856. msm_routing_put_port_mixer),
  8857. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8858. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8859. msm_routing_get_port_mixer,
  8860. msm_routing_put_port_mixer),
  8861. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8862. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8863. msm_routing_get_port_mixer,
  8864. msm_routing_put_port_mixer),
  8865. };
  8866. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  8867. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8868. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8869. msm_routing_get_port_mixer,
  8870. msm_routing_put_port_mixer),
  8871. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8872. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8873. msm_routing_get_port_mixer,
  8874. msm_routing_put_port_mixer),
  8875. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8876. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8877. msm_routing_get_port_mixer,
  8878. msm_routing_put_port_mixer),
  8879. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8881. msm_routing_get_port_mixer,
  8882. msm_routing_put_port_mixer),
  8883. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8884. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8885. msm_routing_get_port_mixer,
  8886. msm_routing_put_port_mixer),
  8887. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8888. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8889. msm_routing_get_port_mixer,
  8890. msm_routing_put_port_mixer),
  8891. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8892. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8893. msm_routing_get_port_mixer,
  8894. msm_routing_put_port_mixer),
  8895. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8896. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8897. msm_routing_get_port_mixer,
  8898. msm_routing_put_port_mixer),
  8899. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8900. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8901. msm_routing_get_port_mixer,
  8902. msm_routing_put_port_mixer),
  8903. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8904. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8905. msm_routing_get_port_mixer,
  8906. msm_routing_put_port_mixer),
  8907. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8908. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8909. msm_routing_get_port_mixer,
  8910. msm_routing_put_port_mixer),
  8911. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8912. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8913. msm_routing_get_port_mixer,
  8914. msm_routing_put_port_mixer),
  8915. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8916. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8917. msm_routing_get_port_mixer,
  8918. msm_routing_put_port_mixer),
  8919. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8920. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8921. msm_routing_get_port_mixer,
  8922. msm_routing_put_port_mixer),
  8923. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8924. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8925. msm_routing_get_port_mixer,
  8926. msm_routing_put_port_mixer),
  8927. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8928. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8929. msm_routing_get_port_mixer,
  8930. msm_routing_put_port_mixer),
  8931. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8932. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8933. msm_routing_get_port_mixer,
  8934. msm_routing_put_port_mixer),
  8935. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8936. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8937. msm_routing_get_port_mixer,
  8938. msm_routing_put_port_mixer),
  8939. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8940. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8941. msm_routing_get_port_mixer,
  8942. msm_routing_put_port_mixer),
  8943. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8944. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8945. msm_routing_get_port_mixer,
  8946. msm_routing_put_port_mixer),
  8947. };
  8948. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  8949. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8950. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8951. msm_routing_get_port_mixer,
  8952. msm_routing_put_port_mixer),
  8953. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8954. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8955. msm_routing_get_port_mixer,
  8956. msm_routing_put_port_mixer),
  8957. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8958. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8959. msm_routing_get_port_mixer,
  8960. msm_routing_put_port_mixer),
  8961. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8962. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8963. msm_routing_get_port_mixer,
  8964. msm_routing_put_port_mixer),
  8965. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8966. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8967. msm_routing_get_port_mixer,
  8968. msm_routing_put_port_mixer),
  8969. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8970. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8971. msm_routing_get_port_mixer,
  8972. msm_routing_put_port_mixer),
  8973. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8974. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8975. msm_routing_get_port_mixer,
  8976. msm_routing_put_port_mixer),
  8977. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8978. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8979. msm_routing_get_port_mixer,
  8980. msm_routing_put_port_mixer),
  8981. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8982. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8983. msm_routing_get_port_mixer,
  8984. msm_routing_put_port_mixer),
  8985. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8986. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8987. msm_routing_get_port_mixer,
  8988. msm_routing_put_port_mixer),
  8989. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8990. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8991. msm_routing_get_port_mixer,
  8992. msm_routing_put_port_mixer),
  8993. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8994. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8995. msm_routing_get_port_mixer,
  8996. msm_routing_put_port_mixer),
  8997. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8998. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8999. msm_routing_get_port_mixer,
  9000. msm_routing_put_port_mixer),
  9001. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9002. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9003. msm_routing_get_port_mixer,
  9004. msm_routing_put_port_mixer),
  9005. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9006. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9007. msm_routing_get_port_mixer,
  9008. msm_routing_put_port_mixer),
  9009. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9010. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9011. msm_routing_get_port_mixer,
  9012. msm_routing_put_port_mixer),
  9013. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9014. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9015. msm_routing_get_port_mixer,
  9016. msm_routing_put_port_mixer),
  9017. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9018. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9019. msm_routing_get_port_mixer,
  9020. msm_routing_put_port_mixer),
  9021. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9022. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9023. msm_routing_get_port_mixer,
  9024. msm_routing_put_port_mixer),
  9025. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9026. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9027. msm_routing_get_port_mixer,
  9028. msm_routing_put_port_mixer),
  9029. };
  9030. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  9031. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9032. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9033. msm_routing_get_port_mixer,
  9034. msm_routing_put_port_mixer),
  9035. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9036. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9037. msm_routing_get_port_mixer,
  9038. msm_routing_put_port_mixer),
  9039. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9040. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9041. msm_routing_get_port_mixer,
  9042. msm_routing_put_port_mixer),
  9043. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9044. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9045. msm_routing_get_port_mixer,
  9046. msm_routing_put_port_mixer),
  9047. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9048. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9049. msm_routing_get_port_mixer,
  9050. msm_routing_put_port_mixer),
  9051. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9052. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9053. msm_routing_get_port_mixer,
  9054. msm_routing_put_port_mixer),
  9055. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9056. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9057. msm_routing_get_port_mixer,
  9058. msm_routing_put_port_mixer),
  9059. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9060. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9061. msm_routing_get_port_mixer,
  9062. msm_routing_put_port_mixer),
  9063. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9064. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9065. msm_routing_get_port_mixer,
  9066. msm_routing_put_port_mixer),
  9067. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9068. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9069. msm_routing_get_port_mixer,
  9070. msm_routing_put_port_mixer),
  9071. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9072. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9073. msm_routing_get_port_mixer,
  9074. msm_routing_put_port_mixer),
  9075. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9076. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9077. msm_routing_get_port_mixer,
  9078. msm_routing_put_port_mixer),
  9079. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9080. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9081. msm_routing_get_port_mixer,
  9082. msm_routing_put_port_mixer),
  9083. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9084. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9085. msm_routing_get_port_mixer,
  9086. msm_routing_put_port_mixer),
  9087. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9088. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9089. msm_routing_get_port_mixer,
  9090. msm_routing_put_port_mixer),
  9091. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9092. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9093. msm_routing_get_port_mixer,
  9094. msm_routing_put_port_mixer),
  9095. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9096. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9097. msm_routing_get_port_mixer,
  9098. msm_routing_put_port_mixer),
  9099. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9100. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9101. msm_routing_get_port_mixer,
  9102. msm_routing_put_port_mixer),
  9103. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9104. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9105. msm_routing_get_port_mixer,
  9106. msm_routing_put_port_mixer),
  9107. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9108. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9109. msm_routing_get_port_mixer,
  9110. msm_routing_put_port_mixer),
  9111. };
  9112. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  9113. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9114. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9115. msm_routing_get_port_mixer,
  9116. msm_routing_put_port_mixer),
  9117. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9118. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9119. msm_routing_get_port_mixer,
  9120. msm_routing_put_port_mixer),
  9121. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9122. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9123. msm_routing_get_port_mixer,
  9124. msm_routing_put_port_mixer),
  9125. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9126. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9127. msm_routing_get_port_mixer,
  9128. msm_routing_put_port_mixer),
  9129. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9130. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9131. msm_routing_get_port_mixer,
  9132. msm_routing_put_port_mixer),
  9133. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9134. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9135. msm_routing_get_port_mixer,
  9136. msm_routing_put_port_mixer),
  9137. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9138. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9139. msm_routing_get_port_mixer,
  9140. msm_routing_put_port_mixer),
  9141. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9142. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9143. msm_routing_get_port_mixer,
  9144. msm_routing_put_port_mixer),
  9145. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9146. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9147. msm_routing_get_port_mixer,
  9148. msm_routing_put_port_mixer),
  9149. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9150. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9151. msm_routing_get_port_mixer,
  9152. msm_routing_put_port_mixer),
  9153. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9154. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9155. msm_routing_get_port_mixer,
  9156. msm_routing_put_port_mixer),
  9157. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9158. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9159. msm_routing_get_port_mixer,
  9160. msm_routing_put_port_mixer),
  9161. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9162. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9163. msm_routing_get_port_mixer,
  9164. msm_routing_put_port_mixer),
  9165. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9166. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9167. msm_routing_get_port_mixer,
  9168. msm_routing_put_port_mixer),
  9169. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9170. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9171. msm_routing_get_port_mixer,
  9172. msm_routing_put_port_mixer),
  9173. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9174. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9175. msm_routing_get_port_mixer,
  9176. msm_routing_put_port_mixer),
  9177. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9178. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9179. msm_routing_get_port_mixer,
  9180. msm_routing_put_port_mixer),
  9181. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9182. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9183. msm_routing_get_port_mixer,
  9184. msm_routing_put_port_mixer),
  9185. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9186. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9187. msm_routing_get_port_mixer,
  9188. msm_routing_put_port_mixer),
  9189. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9190. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9191. msm_routing_get_port_mixer,
  9192. msm_routing_put_port_mixer),
  9193. };
  9194. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  9195. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9196. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9197. msm_routing_get_port_mixer,
  9198. msm_routing_put_port_mixer),
  9199. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9200. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9201. msm_routing_get_port_mixer,
  9202. msm_routing_put_port_mixer),
  9203. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9204. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9205. msm_routing_get_port_mixer,
  9206. msm_routing_put_port_mixer),
  9207. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9208. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9209. msm_routing_get_port_mixer,
  9210. msm_routing_put_port_mixer),
  9211. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9212. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9213. msm_routing_get_port_mixer,
  9214. msm_routing_put_port_mixer),
  9215. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9216. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9217. msm_routing_get_port_mixer,
  9218. msm_routing_put_port_mixer),
  9219. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9220. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9221. msm_routing_get_port_mixer,
  9222. msm_routing_put_port_mixer),
  9223. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9224. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9225. msm_routing_get_port_mixer,
  9226. msm_routing_put_port_mixer),
  9227. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9228. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9229. msm_routing_get_port_mixer,
  9230. msm_routing_put_port_mixer),
  9231. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9232. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9233. msm_routing_get_port_mixer,
  9234. msm_routing_put_port_mixer),
  9235. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9236. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9237. msm_routing_get_port_mixer,
  9238. msm_routing_put_port_mixer),
  9239. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9240. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9241. msm_routing_get_port_mixer,
  9242. msm_routing_put_port_mixer),
  9243. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9244. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9245. msm_routing_get_port_mixer,
  9246. msm_routing_put_port_mixer),
  9247. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9248. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9249. msm_routing_get_port_mixer,
  9250. msm_routing_put_port_mixer),
  9251. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9252. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9253. msm_routing_get_port_mixer,
  9254. msm_routing_put_port_mixer),
  9255. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9256. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9257. msm_routing_get_port_mixer,
  9258. msm_routing_put_port_mixer),
  9259. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9260. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9261. msm_routing_get_port_mixer,
  9262. msm_routing_put_port_mixer),
  9263. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9264. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9265. msm_routing_get_port_mixer,
  9266. msm_routing_put_port_mixer),
  9267. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9268. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9269. msm_routing_get_port_mixer,
  9270. msm_routing_put_port_mixer),
  9271. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9272. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9273. msm_routing_get_port_mixer,
  9274. msm_routing_put_port_mixer),
  9275. };
  9276. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  9277. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9278. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9279. msm_routing_get_port_mixer,
  9280. msm_routing_put_port_mixer),
  9281. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9282. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9283. msm_routing_get_port_mixer,
  9284. msm_routing_put_port_mixer),
  9285. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9286. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9287. msm_routing_get_port_mixer,
  9288. msm_routing_put_port_mixer),
  9289. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9290. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9291. msm_routing_get_port_mixer,
  9292. msm_routing_put_port_mixer),
  9293. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9294. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9295. msm_routing_get_port_mixer,
  9296. msm_routing_put_port_mixer),
  9297. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9298. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9299. msm_routing_get_port_mixer,
  9300. msm_routing_put_port_mixer),
  9301. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9302. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9303. msm_routing_get_port_mixer,
  9304. msm_routing_put_port_mixer),
  9305. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9306. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9307. msm_routing_get_port_mixer,
  9308. msm_routing_put_port_mixer),
  9309. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9310. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9311. msm_routing_get_port_mixer,
  9312. msm_routing_put_port_mixer),
  9313. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9314. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9315. msm_routing_get_port_mixer,
  9316. msm_routing_put_port_mixer),
  9317. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9318. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9319. msm_routing_get_port_mixer,
  9320. msm_routing_put_port_mixer),
  9321. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9322. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9323. msm_routing_get_port_mixer,
  9324. msm_routing_put_port_mixer),
  9325. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9326. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9327. msm_routing_get_port_mixer,
  9328. msm_routing_put_port_mixer),
  9329. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9330. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9331. msm_routing_get_port_mixer,
  9332. msm_routing_put_port_mixer),
  9333. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9334. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9335. msm_routing_get_port_mixer,
  9336. msm_routing_put_port_mixer),
  9337. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9338. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9339. msm_routing_get_port_mixer,
  9340. msm_routing_put_port_mixer),
  9341. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9342. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9343. msm_routing_get_port_mixer,
  9344. msm_routing_put_port_mixer),
  9345. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9346. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9347. msm_routing_get_port_mixer,
  9348. msm_routing_put_port_mixer),
  9349. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9350. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9351. msm_routing_get_port_mixer,
  9352. msm_routing_put_port_mixer),
  9353. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9354. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9355. msm_routing_get_port_mixer,
  9356. msm_routing_put_port_mixer),
  9357. };
  9358. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  9359. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9360. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9361. msm_routing_get_port_mixer,
  9362. msm_routing_put_port_mixer),
  9363. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9364. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9365. msm_routing_get_port_mixer,
  9366. msm_routing_put_port_mixer),
  9367. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9368. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9369. msm_routing_get_port_mixer,
  9370. msm_routing_put_port_mixer),
  9371. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9372. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9373. msm_routing_get_port_mixer,
  9374. msm_routing_put_port_mixer),
  9375. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9376. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9377. msm_routing_get_port_mixer,
  9378. msm_routing_put_port_mixer),
  9379. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9380. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9381. msm_routing_get_port_mixer,
  9382. msm_routing_put_port_mixer),
  9383. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9385. msm_routing_get_port_mixer,
  9386. msm_routing_put_port_mixer),
  9387. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9388. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9389. msm_routing_get_port_mixer,
  9390. msm_routing_put_port_mixer),
  9391. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9392. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9393. msm_routing_get_port_mixer,
  9394. msm_routing_put_port_mixer),
  9395. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9396. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9397. msm_routing_get_port_mixer,
  9398. msm_routing_put_port_mixer),
  9399. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9400. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9401. msm_routing_get_port_mixer,
  9402. msm_routing_put_port_mixer),
  9403. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9404. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9405. msm_routing_get_port_mixer,
  9406. msm_routing_put_port_mixer),
  9407. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9408. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9409. msm_routing_get_port_mixer,
  9410. msm_routing_put_port_mixer),
  9411. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9412. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9413. msm_routing_get_port_mixer,
  9414. msm_routing_put_port_mixer),
  9415. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9416. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9417. msm_routing_get_port_mixer,
  9418. msm_routing_put_port_mixer),
  9419. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9420. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9421. msm_routing_get_port_mixer,
  9422. msm_routing_put_port_mixer),
  9423. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9424. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9425. msm_routing_get_port_mixer,
  9426. msm_routing_put_port_mixer),
  9427. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9428. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9429. msm_routing_get_port_mixer,
  9430. msm_routing_put_port_mixer),
  9431. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9432. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9433. msm_routing_get_port_mixer,
  9434. msm_routing_put_port_mixer),
  9435. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9436. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9437. msm_routing_get_port_mixer,
  9438. msm_routing_put_port_mixer),
  9439. };
  9440. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  9441. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9442. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9443. msm_routing_get_port_mixer,
  9444. msm_routing_put_port_mixer),
  9445. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9446. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9447. msm_routing_get_port_mixer,
  9448. msm_routing_put_port_mixer),
  9449. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9450. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9451. msm_routing_get_port_mixer,
  9452. msm_routing_put_port_mixer),
  9453. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9454. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9455. msm_routing_get_port_mixer,
  9456. msm_routing_put_port_mixer),
  9457. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9458. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9459. msm_routing_get_port_mixer,
  9460. msm_routing_put_port_mixer),
  9461. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9462. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9463. msm_routing_get_port_mixer,
  9464. msm_routing_put_port_mixer),
  9465. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9466. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9467. msm_routing_get_port_mixer,
  9468. msm_routing_put_port_mixer),
  9469. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9470. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9471. msm_routing_get_port_mixer,
  9472. msm_routing_put_port_mixer),
  9473. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9474. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9475. msm_routing_get_port_mixer,
  9476. msm_routing_put_port_mixer),
  9477. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9478. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9479. msm_routing_get_port_mixer,
  9480. msm_routing_put_port_mixer),
  9481. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9482. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9483. msm_routing_get_port_mixer,
  9484. msm_routing_put_port_mixer),
  9485. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9486. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9487. msm_routing_get_port_mixer,
  9488. msm_routing_put_port_mixer),
  9489. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9490. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9491. msm_routing_get_port_mixer,
  9492. msm_routing_put_port_mixer),
  9493. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9494. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9495. msm_routing_get_port_mixer,
  9496. msm_routing_put_port_mixer),
  9497. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9498. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9499. msm_routing_get_port_mixer,
  9500. msm_routing_put_port_mixer),
  9501. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9502. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9503. msm_routing_get_port_mixer,
  9504. msm_routing_put_port_mixer),
  9505. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9506. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9507. msm_routing_get_port_mixer,
  9508. msm_routing_put_port_mixer),
  9509. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9510. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9511. msm_routing_get_port_mixer,
  9512. msm_routing_put_port_mixer),
  9513. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9514. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9515. msm_routing_get_port_mixer,
  9516. msm_routing_put_port_mixer),
  9517. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9518. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9519. msm_routing_get_port_mixer,
  9520. msm_routing_put_port_mixer),
  9521. };
  9522. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  9523. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9524. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9525. msm_routing_get_port_mixer,
  9526. msm_routing_put_port_mixer),
  9527. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9528. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9529. msm_routing_get_port_mixer,
  9530. msm_routing_put_port_mixer),
  9531. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9532. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9533. msm_routing_get_port_mixer,
  9534. msm_routing_put_port_mixer),
  9535. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9536. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9537. msm_routing_get_port_mixer,
  9538. msm_routing_put_port_mixer),
  9539. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9540. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9541. msm_routing_get_port_mixer,
  9542. msm_routing_put_port_mixer),
  9543. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9544. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9545. msm_routing_get_port_mixer,
  9546. msm_routing_put_port_mixer),
  9547. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9548. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9549. msm_routing_get_port_mixer,
  9550. msm_routing_put_port_mixer),
  9551. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9552. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9553. msm_routing_get_port_mixer,
  9554. msm_routing_put_port_mixer),
  9555. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9556. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9557. msm_routing_get_port_mixer,
  9558. msm_routing_put_port_mixer),
  9559. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9560. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9561. msm_routing_get_port_mixer,
  9562. msm_routing_put_port_mixer),
  9563. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9564. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9565. msm_routing_get_port_mixer,
  9566. msm_routing_put_port_mixer),
  9567. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9568. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9569. msm_routing_get_port_mixer,
  9570. msm_routing_put_port_mixer),
  9571. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9572. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9573. msm_routing_get_port_mixer,
  9574. msm_routing_put_port_mixer),
  9575. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9576. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9577. msm_routing_get_port_mixer,
  9578. msm_routing_put_port_mixer),
  9579. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9580. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9581. msm_routing_get_port_mixer,
  9582. msm_routing_put_port_mixer),
  9583. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9584. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9585. msm_routing_get_port_mixer,
  9586. msm_routing_put_port_mixer),
  9587. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9588. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9589. msm_routing_get_port_mixer,
  9590. msm_routing_put_port_mixer),
  9591. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9592. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9593. msm_routing_get_port_mixer,
  9594. msm_routing_put_port_mixer),
  9595. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9596. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9597. msm_routing_get_port_mixer,
  9598. msm_routing_put_port_mixer),
  9599. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9600. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9601. msm_routing_get_port_mixer,
  9602. msm_routing_put_port_mixer),
  9603. };
  9604. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  9605. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9606. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9607. msm_routing_get_port_mixer,
  9608. msm_routing_put_port_mixer),
  9609. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9610. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9611. msm_routing_get_port_mixer,
  9612. msm_routing_put_port_mixer),
  9613. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9614. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9615. msm_routing_get_port_mixer,
  9616. msm_routing_put_port_mixer),
  9617. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9618. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9619. msm_routing_get_port_mixer,
  9620. msm_routing_put_port_mixer),
  9621. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9622. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9623. msm_routing_get_port_mixer,
  9624. msm_routing_put_port_mixer),
  9625. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9626. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9627. msm_routing_get_port_mixer,
  9628. msm_routing_put_port_mixer),
  9629. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9630. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9631. msm_routing_get_port_mixer,
  9632. msm_routing_put_port_mixer),
  9633. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9634. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9635. msm_routing_get_port_mixer,
  9636. msm_routing_put_port_mixer),
  9637. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9638. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9639. msm_routing_get_port_mixer,
  9640. msm_routing_put_port_mixer),
  9641. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9642. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9643. msm_routing_get_port_mixer,
  9644. msm_routing_put_port_mixer),
  9645. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9646. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9647. msm_routing_get_port_mixer,
  9648. msm_routing_put_port_mixer),
  9649. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9650. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9651. msm_routing_get_port_mixer,
  9652. msm_routing_put_port_mixer),
  9653. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9654. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9655. msm_routing_get_port_mixer,
  9656. msm_routing_put_port_mixer),
  9657. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9658. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9659. msm_routing_get_port_mixer,
  9660. msm_routing_put_port_mixer),
  9661. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9662. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9663. msm_routing_get_port_mixer,
  9664. msm_routing_put_port_mixer),
  9665. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9666. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9667. msm_routing_get_port_mixer,
  9668. msm_routing_put_port_mixer),
  9669. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9670. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9671. msm_routing_get_port_mixer,
  9672. msm_routing_put_port_mixer),
  9673. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9674. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9675. msm_routing_get_port_mixer,
  9676. msm_routing_put_port_mixer),
  9677. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9678. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9679. msm_routing_get_port_mixer,
  9680. msm_routing_put_port_mixer),
  9681. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9682. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9683. msm_routing_get_port_mixer,
  9684. msm_routing_put_port_mixer),
  9685. };
  9686. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  9687. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9688. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9689. msm_routing_get_port_mixer,
  9690. msm_routing_put_port_mixer),
  9691. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9692. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9693. msm_routing_get_port_mixer,
  9694. msm_routing_put_port_mixer),
  9695. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9696. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9697. msm_routing_get_port_mixer,
  9698. msm_routing_put_port_mixer),
  9699. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9700. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9701. msm_routing_get_port_mixer,
  9702. msm_routing_put_port_mixer),
  9703. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9704. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9705. msm_routing_get_port_mixer,
  9706. msm_routing_put_port_mixer),
  9707. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9708. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9709. msm_routing_get_port_mixer,
  9710. msm_routing_put_port_mixer),
  9711. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9712. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9713. msm_routing_get_port_mixer,
  9714. msm_routing_put_port_mixer),
  9715. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9716. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9717. msm_routing_get_port_mixer,
  9718. msm_routing_put_port_mixer),
  9719. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9720. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9721. msm_routing_get_port_mixer,
  9722. msm_routing_put_port_mixer),
  9723. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9724. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9725. msm_routing_get_port_mixer,
  9726. msm_routing_put_port_mixer),
  9727. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9728. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9729. msm_routing_get_port_mixer,
  9730. msm_routing_put_port_mixer),
  9731. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9732. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9733. msm_routing_get_port_mixer,
  9734. msm_routing_put_port_mixer),
  9735. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9736. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9737. msm_routing_get_port_mixer,
  9738. msm_routing_put_port_mixer),
  9739. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9740. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9741. msm_routing_get_port_mixer,
  9742. msm_routing_put_port_mixer),
  9743. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9744. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9745. msm_routing_get_port_mixer,
  9746. msm_routing_put_port_mixer),
  9747. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9748. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9749. msm_routing_get_port_mixer,
  9750. msm_routing_put_port_mixer),
  9751. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9752. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9753. msm_routing_get_port_mixer,
  9754. msm_routing_put_port_mixer),
  9755. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9756. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9757. msm_routing_get_port_mixer,
  9758. msm_routing_put_port_mixer),
  9759. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9760. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9761. msm_routing_get_port_mixer,
  9762. msm_routing_put_port_mixer),
  9763. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9764. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9765. msm_routing_get_port_mixer,
  9766. msm_routing_put_port_mixer),
  9767. };
  9768. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  9769. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9770. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9771. msm_routing_get_port_mixer,
  9772. msm_routing_put_port_mixer),
  9773. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9774. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9775. msm_routing_get_port_mixer,
  9776. msm_routing_put_port_mixer),
  9777. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9778. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9779. msm_routing_get_port_mixer,
  9780. msm_routing_put_port_mixer),
  9781. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9782. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9783. msm_routing_get_port_mixer,
  9784. msm_routing_put_port_mixer),
  9785. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9786. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9787. msm_routing_get_port_mixer,
  9788. msm_routing_put_port_mixer),
  9789. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9790. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9791. msm_routing_get_port_mixer,
  9792. msm_routing_put_port_mixer),
  9793. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9794. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9795. msm_routing_get_port_mixer,
  9796. msm_routing_put_port_mixer),
  9797. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9798. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9799. msm_routing_get_port_mixer,
  9800. msm_routing_put_port_mixer),
  9801. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9802. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9803. msm_routing_get_port_mixer,
  9804. msm_routing_put_port_mixer),
  9805. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9806. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9807. msm_routing_get_port_mixer,
  9808. msm_routing_put_port_mixer),
  9809. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9810. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9811. msm_routing_get_port_mixer,
  9812. msm_routing_put_port_mixer),
  9813. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9814. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9815. msm_routing_get_port_mixer,
  9816. msm_routing_put_port_mixer),
  9817. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9818. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9819. msm_routing_get_port_mixer,
  9820. msm_routing_put_port_mixer),
  9821. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9822. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9823. msm_routing_get_port_mixer,
  9824. msm_routing_put_port_mixer),
  9825. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9826. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9827. msm_routing_get_port_mixer,
  9828. msm_routing_put_port_mixer),
  9829. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9830. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9831. msm_routing_get_port_mixer,
  9832. msm_routing_put_port_mixer),
  9833. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9834. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9835. msm_routing_get_port_mixer,
  9836. msm_routing_put_port_mixer),
  9837. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9838. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9839. msm_routing_get_port_mixer,
  9840. msm_routing_put_port_mixer),
  9841. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9842. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9843. msm_routing_get_port_mixer,
  9844. msm_routing_put_port_mixer),
  9845. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9846. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9847. msm_routing_get_port_mixer,
  9848. msm_routing_put_port_mixer),
  9849. };
  9850. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  9851. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9852. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9853. msm_routing_get_port_mixer,
  9854. msm_routing_put_port_mixer),
  9855. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9856. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9857. msm_routing_get_port_mixer,
  9858. msm_routing_put_port_mixer),
  9859. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9860. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9861. msm_routing_get_port_mixer,
  9862. msm_routing_put_port_mixer),
  9863. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9864. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9865. msm_routing_get_port_mixer,
  9866. msm_routing_put_port_mixer),
  9867. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9868. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9869. msm_routing_get_port_mixer,
  9870. msm_routing_put_port_mixer),
  9871. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9872. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9873. msm_routing_get_port_mixer,
  9874. msm_routing_put_port_mixer),
  9875. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9876. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9877. msm_routing_get_port_mixer,
  9878. msm_routing_put_port_mixer),
  9879. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9880. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9881. msm_routing_get_port_mixer,
  9882. msm_routing_put_port_mixer),
  9883. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9884. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9885. msm_routing_get_port_mixer,
  9886. msm_routing_put_port_mixer),
  9887. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9888. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9889. msm_routing_get_port_mixer,
  9890. msm_routing_put_port_mixer),
  9891. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9892. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9893. msm_routing_get_port_mixer,
  9894. msm_routing_put_port_mixer),
  9895. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9896. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9897. msm_routing_get_port_mixer,
  9898. msm_routing_put_port_mixer),
  9899. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9900. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9901. msm_routing_get_port_mixer,
  9902. msm_routing_put_port_mixer),
  9903. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9904. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9905. msm_routing_get_port_mixer,
  9906. msm_routing_put_port_mixer),
  9907. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9908. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9909. msm_routing_get_port_mixer,
  9910. msm_routing_put_port_mixer),
  9911. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9912. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9913. msm_routing_get_port_mixer,
  9914. msm_routing_put_port_mixer),
  9915. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9916. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9917. msm_routing_get_port_mixer,
  9918. msm_routing_put_port_mixer),
  9919. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9920. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9921. msm_routing_get_port_mixer,
  9922. msm_routing_put_port_mixer),
  9923. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9924. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9925. msm_routing_get_port_mixer,
  9926. msm_routing_put_port_mixer),
  9927. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9928. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9929. msm_routing_get_port_mixer,
  9930. msm_routing_put_port_mixer),
  9931. };
  9932. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  9933. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9934. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9935. msm_routing_get_port_mixer,
  9936. msm_routing_put_port_mixer),
  9937. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9938. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9939. msm_routing_get_port_mixer,
  9940. msm_routing_put_port_mixer),
  9941. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9942. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9943. msm_routing_get_port_mixer,
  9944. msm_routing_put_port_mixer),
  9945. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9946. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9947. msm_routing_get_port_mixer,
  9948. msm_routing_put_port_mixer),
  9949. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9950. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9951. msm_routing_get_port_mixer,
  9952. msm_routing_put_port_mixer),
  9953. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9954. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9955. msm_routing_get_port_mixer,
  9956. msm_routing_put_port_mixer),
  9957. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9958. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9959. msm_routing_get_port_mixer,
  9960. msm_routing_put_port_mixer),
  9961. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9962. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9963. msm_routing_get_port_mixer,
  9964. msm_routing_put_port_mixer),
  9965. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9966. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9967. msm_routing_get_port_mixer,
  9968. msm_routing_put_port_mixer),
  9969. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9970. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9971. msm_routing_get_port_mixer,
  9972. msm_routing_put_port_mixer),
  9973. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9974. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9975. msm_routing_get_port_mixer,
  9976. msm_routing_put_port_mixer),
  9977. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9978. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9979. msm_routing_get_port_mixer,
  9980. msm_routing_put_port_mixer),
  9981. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9982. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9983. msm_routing_get_port_mixer,
  9984. msm_routing_put_port_mixer),
  9985. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9986. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9987. msm_routing_get_port_mixer,
  9988. msm_routing_put_port_mixer),
  9989. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9990. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9991. msm_routing_get_port_mixer,
  9992. msm_routing_put_port_mixer),
  9993. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9994. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9995. msm_routing_get_port_mixer,
  9996. msm_routing_put_port_mixer),
  9997. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9998. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9999. msm_routing_get_port_mixer,
  10000. msm_routing_put_port_mixer),
  10001. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10002. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10003. msm_routing_get_port_mixer,
  10004. msm_routing_put_port_mixer),
  10005. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10006. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10007. msm_routing_get_port_mixer,
  10008. msm_routing_put_port_mixer),
  10009. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10010. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10011. msm_routing_get_port_mixer,
  10012. msm_routing_put_port_mixer),
  10013. };
  10014. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  10015. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10016. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10017. msm_routing_get_port_mixer,
  10018. msm_routing_put_port_mixer),
  10019. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10020. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10021. msm_routing_get_port_mixer,
  10022. msm_routing_put_port_mixer),
  10023. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10024. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10025. msm_routing_get_port_mixer,
  10026. msm_routing_put_port_mixer),
  10027. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10028. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10029. msm_routing_get_port_mixer,
  10030. msm_routing_put_port_mixer),
  10031. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10032. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10033. msm_routing_get_port_mixer,
  10034. msm_routing_put_port_mixer),
  10035. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10036. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10037. msm_routing_get_port_mixer,
  10038. msm_routing_put_port_mixer),
  10039. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10040. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10041. msm_routing_get_port_mixer,
  10042. msm_routing_put_port_mixer),
  10043. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10044. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10045. msm_routing_get_port_mixer,
  10046. msm_routing_put_port_mixer),
  10047. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10048. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10049. msm_routing_get_port_mixer,
  10050. msm_routing_put_port_mixer),
  10051. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10052. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10053. msm_routing_get_port_mixer,
  10054. msm_routing_put_port_mixer),
  10055. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10056. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10057. msm_routing_get_port_mixer,
  10058. msm_routing_put_port_mixer),
  10059. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10060. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10061. msm_routing_get_port_mixer,
  10062. msm_routing_put_port_mixer),
  10063. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10064. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10065. msm_routing_get_port_mixer,
  10066. msm_routing_put_port_mixer),
  10067. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10068. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10069. msm_routing_get_port_mixer,
  10070. msm_routing_put_port_mixer),
  10071. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10072. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10073. msm_routing_get_port_mixer,
  10074. msm_routing_put_port_mixer),
  10075. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10076. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10077. msm_routing_get_port_mixer,
  10078. msm_routing_put_port_mixer),
  10079. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10080. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10081. msm_routing_get_port_mixer,
  10082. msm_routing_put_port_mixer),
  10083. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10084. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10085. msm_routing_get_port_mixer,
  10086. msm_routing_put_port_mixer),
  10087. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10088. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10089. msm_routing_get_port_mixer,
  10090. msm_routing_put_port_mixer),
  10091. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10092. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10093. msm_routing_get_port_mixer,
  10094. msm_routing_put_port_mixer),
  10095. };
  10096. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  10097. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10098. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10099. msm_routing_get_port_mixer,
  10100. msm_routing_put_port_mixer),
  10101. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10102. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10103. msm_routing_get_port_mixer,
  10104. msm_routing_put_port_mixer),
  10105. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10106. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10107. msm_routing_get_port_mixer,
  10108. msm_routing_put_port_mixer),
  10109. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10110. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10111. msm_routing_get_port_mixer,
  10112. msm_routing_put_port_mixer),
  10113. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10114. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10115. msm_routing_get_port_mixer,
  10116. msm_routing_put_port_mixer),
  10117. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10118. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10119. msm_routing_get_port_mixer,
  10120. msm_routing_put_port_mixer),
  10121. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10122. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10123. msm_routing_get_port_mixer,
  10124. msm_routing_put_port_mixer),
  10125. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10126. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10127. msm_routing_get_port_mixer,
  10128. msm_routing_put_port_mixer),
  10129. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10130. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10131. msm_routing_get_port_mixer,
  10132. msm_routing_put_port_mixer),
  10133. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10134. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10135. msm_routing_get_port_mixer,
  10136. msm_routing_put_port_mixer),
  10137. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10138. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10139. msm_routing_get_port_mixer,
  10140. msm_routing_put_port_mixer),
  10141. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10142. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10143. msm_routing_get_port_mixer,
  10144. msm_routing_put_port_mixer),
  10145. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10146. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10147. msm_routing_get_port_mixer,
  10148. msm_routing_put_port_mixer),
  10149. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10150. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10151. msm_routing_get_port_mixer,
  10152. msm_routing_put_port_mixer),
  10153. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10154. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10155. msm_routing_get_port_mixer,
  10156. msm_routing_put_port_mixer),
  10157. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10158. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10159. msm_routing_get_port_mixer,
  10160. msm_routing_put_port_mixer),
  10161. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10162. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10163. msm_routing_get_port_mixer,
  10164. msm_routing_put_port_mixer),
  10165. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10166. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10167. msm_routing_get_port_mixer,
  10168. msm_routing_put_port_mixer),
  10169. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10170. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10171. msm_routing_get_port_mixer,
  10172. msm_routing_put_port_mixer),
  10173. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10174. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10175. msm_routing_get_port_mixer,
  10176. msm_routing_put_port_mixer),
  10177. };
  10178. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  10179. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10180. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10181. msm_routing_get_port_mixer,
  10182. msm_routing_put_port_mixer),
  10183. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10184. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10185. msm_routing_get_port_mixer,
  10186. msm_routing_put_port_mixer),
  10187. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10188. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10189. msm_routing_get_port_mixer,
  10190. msm_routing_put_port_mixer),
  10191. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10192. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10193. msm_routing_get_port_mixer,
  10194. msm_routing_put_port_mixer),
  10195. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10196. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10197. msm_routing_get_port_mixer,
  10198. msm_routing_put_port_mixer),
  10199. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10200. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10201. msm_routing_get_port_mixer,
  10202. msm_routing_put_port_mixer),
  10203. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10204. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10205. msm_routing_get_port_mixer,
  10206. msm_routing_put_port_mixer),
  10207. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10208. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10209. msm_routing_get_port_mixer,
  10210. msm_routing_put_port_mixer),
  10211. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10212. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10213. msm_routing_get_port_mixer,
  10214. msm_routing_put_port_mixer),
  10215. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10216. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10217. msm_routing_get_port_mixer,
  10218. msm_routing_put_port_mixer),
  10219. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10220. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10221. msm_routing_get_port_mixer,
  10222. msm_routing_put_port_mixer),
  10223. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10224. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10225. msm_routing_get_port_mixer,
  10226. msm_routing_put_port_mixer),
  10227. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10228. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10229. msm_routing_get_port_mixer,
  10230. msm_routing_put_port_mixer),
  10231. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10232. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10233. msm_routing_get_port_mixer,
  10234. msm_routing_put_port_mixer),
  10235. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10236. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10237. msm_routing_get_port_mixer,
  10238. msm_routing_put_port_mixer),
  10239. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10240. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10241. msm_routing_get_port_mixer,
  10242. msm_routing_put_port_mixer),
  10243. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10244. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10245. msm_routing_get_port_mixer,
  10246. msm_routing_put_port_mixer),
  10247. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10248. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10249. msm_routing_get_port_mixer,
  10250. msm_routing_put_port_mixer),
  10251. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10252. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10253. msm_routing_get_port_mixer,
  10254. msm_routing_put_port_mixer),
  10255. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10256. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10257. msm_routing_get_port_mixer,
  10258. msm_routing_put_port_mixer),
  10259. };
  10260. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  10261. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10262. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10263. msm_routing_get_port_mixer,
  10264. msm_routing_put_port_mixer),
  10265. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10266. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10267. msm_routing_get_port_mixer,
  10268. msm_routing_put_port_mixer),
  10269. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10270. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10271. msm_routing_get_port_mixer,
  10272. msm_routing_put_port_mixer),
  10273. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10274. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10275. msm_routing_get_port_mixer,
  10276. msm_routing_put_port_mixer),
  10277. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10278. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10279. msm_routing_get_port_mixer,
  10280. msm_routing_put_port_mixer),
  10281. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10282. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10283. msm_routing_get_port_mixer,
  10284. msm_routing_put_port_mixer),
  10285. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10286. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10287. msm_routing_get_port_mixer,
  10288. msm_routing_put_port_mixer),
  10289. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10290. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10291. msm_routing_get_port_mixer,
  10292. msm_routing_put_port_mixer),
  10293. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10294. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10295. msm_routing_get_port_mixer,
  10296. msm_routing_put_port_mixer),
  10297. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10298. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10299. msm_routing_get_port_mixer,
  10300. msm_routing_put_port_mixer),
  10301. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10302. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10303. msm_routing_get_port_mixer,
  10304. msm_routing_put_port_mixer),
  10305. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10306. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10307. msm_routing_get_port_mixer,
  10308. msm_routing_put_port_mixer),
  10309. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10310. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10311. msm_routing_get_port_mixer,
  10312. msm_routing_put_port_mixer),
  10313. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10314. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10315. msm_routing_get_port_mixer,
  10316. msm_routing_put_port_mixer),
  10317. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10318. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10319. msm_routing_get_port_mixer,
  10320. msm_routing_put_port_mixer),
  10321. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10322. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10323. msm_routing_get_port_mixer,
  10324. msm_routing_put_port_mixer),
  10325. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10326. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10327. msm_routing_get_port_mixer,
  10328. msm_routing_put_port_mixer),
  10329. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10330. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10331. msm_routing_get_port_mixer,
  10332. msm_routing_put_port_mixer),
  10333. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10334. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10335. msm_routing_get_port_mixer,
  10336. msm_routing_put_port_mixer),
  10337. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10338. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10339. msm_routing_get_port_mixer,
  10340. msm_routing_put_port_mixer),
  10341. };
  10342. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  10343. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10344. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10345. msm_routing_put_port_mixer),
  10346. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10347. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10348. msm_routing_put_port_mixer),
  10349. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10350. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10351. msm_routing_put_port_mixer),
  10352. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10353. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10354. msm_routing_put_port_mixer),
  10355. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10356. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10357. msm_routing_put_port_mixer),
  10358. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10359. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10360. msm_routing_put_port_mixer),
  10361. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10362. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10363. msm_routing_put_port_mixer),
  10364. };
  10365. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  10366. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10367. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10368. msm_routing_put_port_mixer),
  10369. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10370. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10371. msm_routing_put_port_mixer),
  10372. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10373. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10374. msm_routing_put_port_mixer),
  10375. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10376. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10377. msm_routing_put_port_mixer),
  10378. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10379. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10380. msm_routing_put_port_mixer),
  10381. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10382. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10383. msm_routing_put_port_mixer),
  10384. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10385. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10386. msm_routing_put_port_mixer),
  10387. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10388. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10389. msm_routing_put_port_mixer),
  10390. };
  10391. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  10392. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10393. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10394. msm_routing_put_listen_mixer),
  10395. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10396. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10397. msm_routing_put_listen_mixer),
  10398. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10399. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10400. msm_routing_put_listen_mixer),
  10401. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10402. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10403. msm_routing_put_listen_mixer),
  10404. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10405. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10406. msm_routing_put_listen_mixer),
  10407. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10408. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10409. msm_routing_put_listen_mixer),
  10410. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10411. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10412. msm_routing_put_listen_mixer),
  10413. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10414. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10415. msm_routing_put_listen_mixer),
  10416. };
  10417. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  10418. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10419. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10420. msm_routing_put_listen_mixer),
  10421. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10422. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10423. msm_routing_put_listen_mixer),
  10424. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10425. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10426. msm_routing_put_listen_mixer),
  10427. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10428. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10429. msm_routing_put_listen_mixer),
  10430. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10431. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10432. msm_routing_put_listen_mixer),
  10433. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10434. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10435. msm_routing_put_listen_mixer),
  10436. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10437. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10438. msm_routing_put_listen_mixer),
  10439. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10440. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10441. msm_routing_put_listen_mixer),
  10442. };
  10443. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  10444. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10445. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10446. msm_routing_put_listen_mixer),
  10447. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10448. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10449. msm_routing_put_listen_mixer),
  10450. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10451. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10452. msm_routing_put_listen_mixer),
  10453. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10454. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10455. msm_routing_put_listen_mixer),
  10456. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10457. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10458. msm_routing_put_listen_mixer),
  10459. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10460. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10461. msm_routing_put_listen_mixer),
  10462. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10463. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10464. msm_routing_put_listen_mixer),
  10465. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10466. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10467. msm_routing_put_listen_mixer),
  10468. };
  10469. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  10470. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10471. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10472. msm_routing_put_listen_mixer),
  10473. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10474. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10475. msm_routing_put_listen_mixer),
  10476. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10477. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10478. msm_routing_put_listen_mixer),
  10479. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10480. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10481. msm_routing_put_listen_mixer),
  10482. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10483. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10484. msm_routing_put_listen_mixer),
  10485. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10486. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10487. msm_routing_put_listen_mixer),
  10488. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10489. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10490. msm_routing_put_listen_mixer),
  10491. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10492. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10493. msm_routing_put_listen_mixer),
  10494. };
  10495. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  10496. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10497. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10498. msm_routing_put_listen_mixer),
  10499. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10500. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10501. msm_routing_put_listen_mixer),
  10502. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10503. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10504. msm_routing_put_listen_mixer),
  10505. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10506. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10507. msm_routing_put_listen_mixer),
  10508. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10509. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10510. msm_routing_put_listen_mixer),
  10511. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10512. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10513. msm_routing_put_listen_mixer),
  10514. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10515. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10516. msm_routing_put_listen_mixer),
  10517. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10518. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10519. msm_routing_put_listen_mixer),
  10520. };
  10521. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  10522. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10523. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10524. msm_routing_put_listen_mixer),
  10525. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10526. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10527. msm_routing_put_listen_mixer),
  10528. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10529. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10530. msm_routing_put_listen_mixer),
  10531. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10532. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10533. msm_routing_put_listen_mixer),
  10534. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10535. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10536. msm_routing_put_listen_mixer),
  10537. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10538. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10539. msm_routing_put_listen_mixer),
  10540. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10541. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10542. msm_routing_put_listen_mixer),
  10543. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10544. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10545. msm_routing_put_listen_mixer),
  10546. };
  10547. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  10548. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10549. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10550. msm_routing_put_listen_mixer),
  10551. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10552. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10553. msm_routing_put_listen_mixer),
  10554. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10555. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10556. msm_routing_put_listen_mixer),
  10557. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10558. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10559. msm_routing_put_listen_mixer),
  10560. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10561. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10562. msm_routing_put_listen_mixer),
  10563. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10564. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10565. msm_routing_put_listen_mixer),
  10566. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10567. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10568. msm_routing_put_listen_mixer),
  10569. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10570. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10571. msm_routing_put_listen_mixer),
  10572. };
  10573. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  10574. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10575. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10576. msm_routing_put_listen_mixer),
  10577. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10578. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10579. msm_routing_put_listen_mixer),
  10580. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10581. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10582. msm_routing_put_listen_mixer),
  10583. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10584. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10585. msm_routing_put_listen_mixer),
  10586. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10587. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10588. msm_routing_put_listen_mixer),
  10589. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10590. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10591. msm_routing_put_listen_mixer),
  10592. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10593. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10594. msm_routing_put_listen_mixer),
  10595. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10596. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10597. msm_routing_put_listen_mixer),
  10598. };
  10599. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  10600. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10601. 0, 1, 0, msm_routing_get_switch_mixer,
  10602. msm_routing_put_switch_mixer);
  10603. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  10604. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10605. 0, 1, 0, msm_routing_get_switch_mixer,
  10606. msm_routing_put_switch_mixer);
  10607. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  10608. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10609. 0, 1, 0, msm_routing_get_switch_mixer,
  10610. msm_routing_put_switch_mixer);
  10611. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  10612. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10613. 0, 1, 0, msm_routing_get_switch_mixer,
  10614. msm_routing_put_switch_mixer);
  10615. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  10616. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10617. 0, 1, 0, msm_routing_get_switch_mixer,
  10618. msm_routing_put_switch_mixer);
  10619. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  10620. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10621. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  10622. msm_routing_put_fm_pcmrx_switch_mixer);
  10623. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  10624. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10625. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  10626. msm_routing_put_int0_mi2s_switch_mixer);
  10627. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  10628. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10629. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  10630. msm_routing_put_int4_mi2s_switch_mixer);
  10631. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  10632. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10633. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  10634. msm_routing_put_pri_mi2s_switch_mixer);
  10635. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  10636. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10637. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  10638. msm_routing_put_sec_mi2s_switch_mixer);
  10639. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  10640. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10641. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  10642. msm_routing_put_tert_mi2s_switch_mixer);
  10643. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  10644. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10645. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  10646. msm_routing_put_quat_mi2s_switch_mixer);
  10647. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  10648. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10649. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  10650. msm_routing_put_quin_mi2s_switch_mixer);
  10651. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  10652. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10653. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10654. msm_routing_put_hfp_switch_mixer);
  10655. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  10656. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10657. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10658. msm_routing_put_hfp_switch_mixer);
  10659. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  10660. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10661. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10662. msm_routing_put_hfp_switch_mixer);
  10663. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  10664. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10665. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10666. msm_routing_put_hfp_switch_mixer);
  10667. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  10668. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10669. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  10670. msm_routing_put_usb_switch_mixer);
  10671. static const struct soc_enum lsm_port_enum =
  10672. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  10673. static const char * const lsm_func_text[] = {
  10674. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  10675. };
  10676. static const struct soc_enum lsm_func_enum =
  10677. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  10678. static const struct snd_kcontrol_new lsm_controls[] = {
  10679. /* kcontrol of lsm_function */
  10680. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10681. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10682. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10683. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10684. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10685. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10686. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10687. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10688. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10689. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10690. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10691. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10692. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10693. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10694. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10695. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10696. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10697. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10698. /* kcontrol of lsm_port */
  10699. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  10700. msm_routing_lsm_port_get,
  10701. msm_routing_lsm_port_put),
  10702. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  10703. msm_routing_lsm_port_get,
  10704. msm_routing_lsm_port_put),
  10705. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  10706. msm_routing_lsm_port_get,
  10707. msm_routing_lsm_port_put),
  10708. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  10709. msm_routing_lsm_port_get,
  10710. msm_routing_lsm_port_put),
  10711. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  10712. msm_routing_lsm_port_get,
  10713. msm_routing_lsm_port_put),
  10714. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  10715. msm_routing_lsm_port_get,
  10716. msm_routing_lsm_port_put),
  10717. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  10718. msm_routing_lsm_port_get,
  10719. msm_routing_lsm_port_put),
  10720. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  10721. msm_routing_lsm_port_get,
  10722. msm_routing_lsm_port_put),
  10723. };
  10724. static const char * const aanc_slim_0_rx_text[] = {
  10725. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  10726. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  10727. };
  10728. static const struct soc_enum aanc_slim_0_rx_enum =
  10729. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  10730. aanc_slim_0_rx_text);
  10731. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  10732. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  10733. msm_routing_slim_0_rx_aanc_mux_get,
  10734. msm_routing_slim_0_rx_aanc_mux_put)
  10735. };
  10736. static int msm_routing_get_stereo_to_custom_stereo_control(
  10737. struct snd_kcontrol *kcontrol,
  10738. struct snd_ctl_elem_value *ucontrol)
  10739. {
  10740. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  10741. return 0;
  10742. }
  10743. static int msm_routing_put_stereo_to_custom_stereo_control(
  10744. struct snd_kcontrol *kcontrol,
  10745. struct snd_ctl_elem_value *ucontrol)
  10746. {
  10747. int flag = 0, i = 0, rc = 0, idx = 0;
  10748. int be_index = 0, port_id, topo_id;
  10749. unsigned int session_id = 0;
  10750. uint16_t op_FL_ip_FL_weight = 0;
  10751. uint16_t op_FL_ip_FR_weight = 0;
  10752. uint16_t op_FR_ip_FL_weight = 0;
  10753. uint16_t op_FR_ip_FR_weight = 0;
  10754. flag = ucontrol->value.integer.value[0];
  10755. pr_debug("%s E flag %d\n", __func__, flag);
  10756. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  10757. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  10758. __func__, is_custom_stereo_on, flag);
  10759. return 0;
  10760. }
  10761. is_custom_stereo_on = flag ? true : false;
  10762. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  10763. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  10764. port_id = msm_bedais[be_index].port_id;
  10765. if (!msm_bedais[be_index].active)
  10766. continue;
  10767. if ((port_id != SLIMBUS_0_RX) &&
  10768. (port_id != RT_PROXY_PORT_001_RX) &&
  10769. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  10770. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  10771. continue;
  10772. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  10773. MSM_FRONTEND_DAI_MM_SIZE) {
  10774. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  10775. LEGACY_PCM_MODE)
  10776. goto skip_send_custom_stereo;
  10777. session_id =
  10778. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  10779. if (is_custom_stereo_on) {
  10780. op_FL_ip_FL_weight =
  10781. Q14_GAIN_ZERO_POINT_FIVE;
  10782. op_FL_ip_FR_weight =
  10783. Q14_GAIN_ZERO_POINT_FIVE;
  10784. op_FR_ip_FL_weight =
  10785. Q14_GAIN_ZERO_POINT_FIVE;
  10786. op_FR_ip_FR_weight =
  10787. Q14_GAIN_ZERO_POINT_FIVE;
  10788. } else {
  10789. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  10790. op_FL_ip_FR_weight = 0;
  10791. op_FR_ip_FL_weight = 0;
  10792. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  10793. }
  10794. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  10795. unsigned long copp =
  10796. session_copp_map[i]
  10797. [SESSION_TYPE_RX][be_index];
  10798. if (!test_bit(idx, &copp))
  10799. goto skip_send_custom_stereo;
  10800. topo_id = adm_get_topology_for_port_copp_idx(
  10801. msm_bedais[be_index].port_id, idx);
  10802. if (topo_id < 0)
  10803. pr_debug("%s:Err:custom stereo topo %d",
  10804. __func__, topo_id);
  10805. pr_debug("idx %d\n", idx);
  10806. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  10807. rc = msm_ds2_dap_set_custom_stereo_onoff
  10808. (msm_bedais[be_index].port_id,
  10809. idx, is_custom_stereo_on);
  10810. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  10811. rc = dolby_dap_set_custom_stereo_onoff(
  10812. msm_bedais[be_index].port_id,
  10813. idx, is_custom_stereo_on);
  10814. else
  10815. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  10816. (msm_bedais[be_index].port_id,
  10817. idx, session_id,
  10818. op_FL_ip_FL_weight,
  10819. op_FL_ip_FR_weight,
  10820. op_FR_ip_FL_weight,
  10821. op_FR_ip_FR_weight);
  10822. if (rc < 0)
  10823. skip_send_custom_stereo:
  10824. pr_err("%s: err setting custom stereo\n",
  10825. __func__);
  10826. }
  10827. }
  10828. }
  10829. return 0;
  10830. }
  10831. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  10832. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  10833. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  10834. msm_routing_put_stereo_to_custom_stereo_control),
  10835. };
  10836. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10837. struct snd_ctl_elem_value *ucontrol)
  10838. {
  10839. return 0;
  10840. }
  10841. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10842. struct snd_ctl_elem_value *ucontrol)
  10843. {
  10844. int i = 0, j;
  10845. int num_app_types = ucontrol->value.integer.value[i++];
  10846. pr_debug("%s\n", __func__);
  10847. memset(app_type_cfg, 0, MAX_APP_TYPES*
  10848. sizeof(struct msm_pcm_routing_app_type_data));
  10849. if (num_app_types > MAX_APP_TYPES) {
  10850. pr_err("%s: number of app types exceed the max supported\n",
  10851. __func__);
  10852. return -EINVAL;
  10853. }
  10854. for (j = 0; j < num_app_types; j++) {
  10855. app_type_cfg[j].app_type =
  10856. ucontrol->value.integer.value[i++];
  10857. app_type_cfg[j].sample_rate =
  10858. ucontrol->value.integer.value[i++];
  10859. app_type_cfg[j].bit_width =
  10860. ucontrol->value.integer.value[i++];
  10861. }
  10862. return 0;
  10863. }
  10864. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  10865. struct snd_ctl_elem_value *ucontrol)
  10866. {
  10867. int j, fe_id, be_id, port_type;
  10868. int ret = 0;
  10869. unsigned long copp;
  10870. struct msm_pcm_routing_bdai_data *bedai;
  10871. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10872. SESSION_TYPE_RX;
  10873. int app_type = ucontrol->value.integer.value[1];
  10874. int gain = (ucontrol->value.integer.value[2] +
  10875. ucontrol->value.integer.value[3])/2;
  10876. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10877. MSM_AFE_PORT_TYPE_TX;
  10878. mutex_lock(&routing_lock);
  10879. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10880. if (is_be_dai_extproc(be_id))
  10881. continue;
  10882. bedai = &msm_bedais[be_id];
  10883. if (afe_get_port_type(bedai->port_id) != port_type)
  10884. continue;
  10885. if (!bedai->active)
  10886. continue;
  10887. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10888. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10889. continue;
  10890. if (app_type !=
  10891. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10892. continue;
  10893. copp = session_copp_map[fe_id][dir][be_id];
  10894. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  10895. if (!test_bit(j, &copp))
  10896. continue;
  10897. ret |= adm_set_volume(bedai->port_id, j, gain);
  10898. }
  10899. }
  10900. }
  10901. mutex_unlock(&routing_lock);
  10902. return ret ? -EINVAL : 0;
  10903. }
  10904. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  10905. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  10906. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  10907. msm_routing_put_app_type_cfg_control),
  10908. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  10909. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  10910. };
  10911. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  10912. struct snd_ctl_elem_value *ucontrol)
  10913. {
  10914. int copp_idx, fe_id, be_id, port_type;
  10915. int ret = 0;
  10916. unsigned long copp;
  10917. struct msm_pcm_routing_bdai_data *bedai;
  10918. char *param_data = NULL;
  10919. uint32_t *update_param_data = NULL;
  10920. uint32_t param_size = sizeof(uint32_t) +
  10921. sizeof(struct adm_param_data_v5);
  10922. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10923. SESSION_TYPE_RX;
  10924. int app_type = ucontrol->value.integer.value[1];
  10925. int module_id = ucontrol->value.integer.value[2];
  10926. int instance_id = ucontrol->value.integer.value[3];
  10927. int param_id = ucontrol->value.integer.value[4];
  10928. int param_value = ucontrol->value.integer.value[5];
  10929. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10930. MSM_AFE_PORT_TYPE_TX;
  10931. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  10932. __func__, app_type, module_id,
  10933. instance_id, param_id, param_value);
  10934. param_data = kzalloc(param_size, GFP_KERNEL);
  10935. if (!param_data)
  10936. return -ENOMEM;
  10937. update_param_data = (uint32_t *)param_data;
  10938. *update_param_data++ = module_id;
  10939. *update_param_data++ = param_id;
  10940. *update_param_data++ = sizeof(uint32_t);
  10941. *update_param_data++ = param_value;
  10942. mutex_lock(&routing_lock);
  10943. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10944. if (is_be_dai_extproc(be_id))
  10945. continue;
  10946. bedai = &msm_bedais[be_id];
  10947. if (afe_get_port_type(bedai->port_id) != port_type)
  10948. continue;
  10949. if (!bedai->active)
  10950. continue;
  10951. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10952. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10953. continue;
  10954. if (app_type !=
  10955. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10956. continue;
  10957. copp = session_copp_map[fe_id][dir][be_id];
  10958. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  10959. copp_idx++) {
  10960. if (!test_bit(copp_idx, &copp))
  10961. continue;
  10962. ret = adm_send_params_v5(bedai->port_id,
  10963. copp_idx,
  10964. param_data,
  10965. param_size);
  10966. if (ret) {
  10967. pr_err("%s: Setting param failed with err=%d\n",
  10968. __func__, ret);
  10969. ret = -EINVAL;
  10970. goto done;
  10971. }
  10972. }
  10973. }
  10974. }
  10975. done:
  10976. mutex_unlock(&routing_lock);
  10977. kfree(param_data);
  10978. return ret;
  10979. }
  10980. static const struct snd_kcontrol_new module_cfg_controls[] = {
  10981. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  10982. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  10983. };
  10984. static int msm_routing_get_lsm_app_type_cfg_control(
  10985. struct snd_kcontrol *kcontrol,
  10986. struct snd_ctl_elem_value *ucontrol)
  10987. {
  10988. return 0;
  10989. }
  10990. static int msm_routing_put_lsm_app_type_cfg_control(
  10991. struct snd_kcontrol *kcontrol,
  10992. struct snd_ctl_elem_value *ucontrol)
  10993. {
  10994. int i = 0, j;
  10995. int num_app_types = ucontrol->value.integer.value[i++];
  10996. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  10997. sizeof(struct msm_pcm_routing_app_type_data));
  10998. if (num_app_types > MAX_APP_TYPES) {
  10999. pr_err("%s: number of app types exceed the max supported\n",
  11000. __func__);
  11001. return -EINVAL;
  11002. }
  11003. for (j = 0; j < num_app_types; j++) {
  11004. lsm_app_type_cfg[j].app_type =
  11005. ucontrol->value.integer.value[i++];
  11006. lsm_app_type_cfg[j].sample_rate =
  11007. ucontrol->value.integer.value[i++];
  11008. lsm_app_type_cfg[j].bit_width =
  11009. ucontrol->value.integer.value[i++];
  11010. }
  11011. return 0;
  11012. }
  11013. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  11014. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  11015. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  11016. msm_routing_put_lsm_app_type_cfg_control),
  11017. };
  11018. static int msm_routing_get_use_ds1_or_ds2_control(
  11019. struct snd_kcontrol *kcontrol,
  11020. struct snd_ctl_elem_value *ucontrol)
  11021. {
  11022. ucontrol->value.integer.value[0] = is_ds2_on;
  11023. return 0;
  11024. }
  11025. static int msm_routing_put_use_ds1_or_ds2_control(
  11026. struct snd_kcontrol *kcontrol,
  11027. struct snd_ctl_elem_value *ucontrol)
  11028. {
  11029. is_ds2_on = ucontrol->value.integer.value[0];
  11030. return 0;
  11031. }
  11032. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  11033. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  11034. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  11035. msm_routing_put_use_ds1_or_ds2_control),
  11036. };
  11037. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  11038. struct snd_ctl_elem_value *ucontrol) {
  11039. int rc = 0;
  11040. int be_idx = 0;
  11041. char *param_value;
  11042. int *update_param_value;
  11043. uint32_t param_length = sizeof(uint32_t);
  11044. uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
  11045. param_value = kzalloc(param_length + param_payload_len, GFP_KERNEL);
  11046. if (!param_value)
  11047. return -ENOMEM;
  11048. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  11049. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  11050. break;
  11051. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  11052. rc = adm_get_params(SLIMBUS_0_TX, 0,
  11053. RMS_MODULEID_APPI_PASSTHRU,
  11054. RMS_PARAM_FIRST_SAMPLE,
  11055. param_length + param_payload_len,
  11056. param_value);
  11057. if (rc) {
  11058. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  11059. kfree(param_value);
  11060. return -EINVAL;
  11061. }
  11062. update_param_value = (int *)param_value;
  11063. ucontrol->value.integer.value[0] = update_param_value[0];
  11064. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  11065. __func__, update_param_value[0]);
  11066. }
  11067. kfree(param_value);
  11068. return 0;
  11069. }
  11070. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  11071. struct snd_ctl_elem_value *ucontrol)
  11072. {
  11073. voc_session_id = ucontrol->value.integer.value[0];
  11074. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  11075. return 0;
  11076. }
  11077. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  11078. struct snd_ctl_elem_value *ucontrol)
  11079. {
  11080. ucontrol->value.integer.value[0] = voc_session_id;
  11081. return 0;
  11082. }
  11083. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  11084. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  11085. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  11086. msm_voc_session_id_put),
  11087. };
  11088. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  11089. struct snd_ctl_elem_info *uinfo)
  11090. {
  11091. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11092. uinfo->count = sizeof(struct sound_focus_param);
  11093. return 0;
  11094. }
  11095. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  11096. struct snd_ctl_elem_value *ucontrol)
  11097. {
  11098. int ret = 0;
  11099. struct sound_focus_param soundFocusData;
  11100. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11101. sizeof(struct sound_focus_param));
  11102. ret = voc_set_sound_focus(soundFocusData);
  11103. if (ret) {
  11104. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11105. __func__, ret);
  11106. ret = -EINVAL;
  11107. }
  11108. return ret;
  11109. }
  11110. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  11111. struct snd_ctl_elem_value *ucontrol)
  11112. {
  11113. int ret = 0;
  11114. struct sound_focus_param soundFocusData;
  11115. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  11116. ret = voc_get_sound_focus(&soundFocusData);
  11117. if (ret) {
  11118. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11119. __func__, ret);
  11120. ret = -EINVAL;
  11121. goto done;
  11122. }
  11123. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11124. sizeof(struct sound_focus_param));
  11125. done:
  11126. return ret;
  11127. }
  11128. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  11129. struct snd_ctl_elem_info *uinfo)
  11130. {
  11131. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11132. uinfo->count = sizeof(struct source_tracking_param);
  11133. return 0;
  11134. }
  11135. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  11136. struct snd_ctl_elem_value *ucontrol)
  11137. {
  11138. return -EINVAL;
  11139. }
  11140. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  11141. int *copp_idx)
  11142. {
  11143. int i, idx, be_idx;
  11144. int ret = 0;
  11145. unsigned long copp;
  11146. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  11147. ret = q6audio_validate_port(port_id);
  11148. if (ret < 0) {
  11149. pr_err("%s: port validation failed id 0x%x ret %d\n",
  11150. __func__, port_id, ret);
  11151. ret = -EINVAL;
  11152. goto done;
  11153. }
  11154. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  11155. if (msm_bedais[be_idx].port_id == port_id)
  11156. break;
  11157. }
  11158. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  11159. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  11160. ret = -EINVAL;
  11161. goto done;
  11162. }
  11163. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  11164. MSM_FRONTEND_DAI_MM_SIZE) {
  11165. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11166. copp = session_copp_map[i]
  11167. [session_type][be_idx];
  11168. if (test_bit(idx, &copp))
  11169. break;
  11170. }
  11171. if (idx >= MAX_COPPS_PER_PORT)
  11172. continue;
  11173. else
  11174. break;
  11175. }
  11176. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  11177. pr_err("%s: Invalid FE, exiting\n", __func__);
  11178. ret = -EINVAL;
  11179. goto done;
  11180. }
  11181. *copp_idx = idx;
  11182. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  11183. done:
  11184. return ret;
  11185. }
  11186. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  11187. const char *prefix, int *port_id)
  11188. {
  11189. int ret = 0;
  11190. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  11191. /*
  11192. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  11193. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  11194. * and compare the string with the backend name to derive the port id.
  11195. */
  11196. if (!strcmp(kcontrol->id.name + strlen(prefix),
  11197. "SLIMBUS_0")) {
  11198. *port_id = SLIMBUS_0_TX;
  11199. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11200. "TERT_MI2S")) {
  11201. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  11202. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11203. "INT3_MI2S")) {
  11204. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  11205. } else {
  11206. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  11207. __func__, kcontrol->id.name);
  11208. ret = -EINVAL;
  11209. goto done;
  11210. }
  11211. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  11212. __func__, kcontrol->id.name, *port_id);
  11213. done:
  11214. return ret;
  11215. }
  11216. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  11217. struct snd_ctl_elem_value *ucontrol)
  11218. {
  11219. int ret = 0;
  11220. struct sound_focus_param soundFocusData;
  11221. int port_id, copp_idx;
  11222. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11223. "Sound Focus Audio Tx ", &port_id);
  11224. if (ret != 0) {
  11225. pr_err("%s: Error in deriving port id, err=%d\n",
  11226. __func__, ret);
  11227. ret = -EINVAL;
  11228. goto done;
  11229. }
  11230. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11231. &copp_idx);
  11232. if (ret) {
  11233. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11234. __func__, port_id);
  11235. ret = -EINVAL;
  11236. goto done;
  11237. }
  11238. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11239. sizeof(struct sound_focus_param));
  11240. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  11241. if (ret) {
  11242. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11243. __func__, ret);
  11244. ret = -EINVAL;
  11245. goto done;
  11246. }
  11247. done:
  11248. return ret;
  11249. }
  11250. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  11251. struct snd_ctl_elem_value *ucontrol)
  11252. {
  11253. int ret = 0;
  11254. struct sound_focus_param soundFocusData;
  11255. int port_id, copp_idx;
  11256. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11257. "Sound Focus Audio Tx ", &port_id);
  11258. if (ret) {
  11259. pr_err("%s: Error in deriving port id, err=%d\n",
  11260. __func__, ret);
  11261. ret = -EINVAL;
  11262. goto done;
  11263. }
  11264. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11265. &copp_idx);
  11266. if (ret) {
  11267. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11268. __func__, port_id);
  11269. ret = -EINVAL;
  11270. goto done;
  11271. }
  11272. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  11273. if (ret) {
  11274. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11275. __func__, ret);
  11276. ret = -EINVAL;
  11277. goto done;
  11278. }
  11279. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11280. sizeof(struct sound_focus_param));
  11281. done:
  11282. return ret;
  11283. }
  11284. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  11285. struct snd_ctl_elem_value *ucontrol)
  11286. {
  11287. int ret = 0;
  11288. struct source_tracking_param sourceTrackingData;
  11289. int port_id, copp_idx;
  11290. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11291. "Source Tracking Audio Tx ", &port_id);
  11292. if (ret) {
  11293. pr_err("%s: Error in deriving port id, err=%d\n",
  11294. __func__, ret);
  11295. ret = -EINVAL;
  11296. goto done;
  11297. }
  11298. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11299. &copp_idx);
  11300. if (ret) {
  11301. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11302. __func__, port_id);
  11303. ret = -EINVAL;
  11304. goto done;
  11305. }
  11306. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  11307. if (ret) {
  11308. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11309. __func__, ret);
  11310. ret = -EINVAL;
  11311. goto done;
  11312. }
  11313. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11314. sizeof(struct source_tracking_param));
  11315. done:
  11316. return ret;
  11317. }
  11318. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  11319. {
  11320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11321. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11322. .name = "Sound Focus Voice Tx SLIMBUS_0",
  11323. .info = msm_sound_focus_info,
  11324. .get = msm_voice_sound_focus_get,
  11325. .put = msm_voice_sound_focus_put,
  11326. },
  11327. {
  11328. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11330. .name = "Source Tracking Voice Tx SLIMBUS_0",
  11331. .info = msm_source_tracking_info,
  11332. .get = msm_voice_source_tracking_get,
  11333. },
  11334. {
  11335. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11336. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11337. .name = "Sound Focus Audio Tx SLIMBUS_0",
  11338. .info = msm_sound_focus_info,
  11339. .get = msm_audio_sound_focus_get,
  11340. .put = msm_audio_sound_focus_put,
  11341. },
  11342. {
  11343. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11344. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11345. .name = "Source Tracking Audio Tx SLIMBUS_0",
  11346. .info = msm_source_tracking_info,
  11347. .get = msm_audio_source_tracking_get,
  11348. },
  11349. {
  11350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11351. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11352. .name = "Sound Focus Voice Tx TERT_MI2S",
  11353. .info = msm_sound_focus_info,
  11354. .get = msm_voice_sound_focus_get,
  11355. .put = msm_voice_sound_focus_put,
  11356. },
  11357. {
  11358. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11360. .name = "Source Tracking Voice Tx TERT_MI2S",
  11361. .info = msm_source_tracking_info,
  11362. .get = msm_voice_source_tracking_get,
  11363. },
  11364. {
  11365. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11366. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11367. .name = "Sound Focus Audio Tx TERT_MI2S",
  11368. .info = msm_sound_focus_info,
  11369. .get = msm_audio_sound_focus_get,
  11370. .put = msm_audio_sound_focus_put,
  11371. },
  11372. {
  11373. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11374. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11375. .name = "Source Tracking Audio Tx TERT_MI2S",
  11376. .info = msm_source_tracking_info,
  11377. .get = msm_audio_source_tracking_get,
  11378. },
  11379. {
  11380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11381. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11382. .name = "Sound Focus Voice Tx INT3_MI2S",
  11383. .info = msm_sound_focus_info,
  11384. .get = msm_voice_sound_focus_get,
  11385. .put = msm_voice_sound_focus_put,
  11386. },
  11387. {
  11388. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11390. .name = "Source Tracking Voice Tx INT3_MI2S",
  11391. .info = msm_source_tracking_info,
  11392. .get = msm_voice_source_tracking_get,
  11393. },
  11394. {
  11395. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11396. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11397. .name = "Sound Focus Audio Tx INT3_MI2S",
  11398. .info = msm_sound_focus_info,
  11399. .get = msm_audio_sound_focus_get,
  11400. .put = msm_audio_sound_focus_put,
  11401. },
  11402. {
  11403. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11404. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11405. .name = "Source Tracking Audio Tx INT3_MI2S",
  11406. .info = msm_source_tracking_info,
  11407. .get = msm_audio_source_tracking_get,
  11408. },
  11409. };
  11410. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  11411. struct snd_ctl_elem_value *ucontrol)
  11412. {
  11413. int ret = 0;
  11414. int item;
  11415. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11416. pr_debug("%s item is %d\n", __func__,
  11417. ucontrol->value.enumerated.item[0]);
  11418. mutex_lock(&routing_lock);
  11419. item = ucontrol->value.enumerated.item[0];
  11420. if (item < e->items) {
  11421. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11422. __func__, e->shift_l, e->values[item]);
  11423. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11424. e->values[item] < MSM_BACKEND_DAI_MAX)
  11425. /* Enable feedback TX path */
  11426. ret = afe_spk_prot_feed_back_cfg(
  11427. msm_bedais[e->values[item]].port_id,
  11428. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  11429. else {
  11430. pr_debug("%s values are out of range item %d\n",
  11431. __func__, e->values[item]);
  11432. /* Disable feedback TX path */
  11433. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11434. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  11435. else
  11436. ret = -EINVAL;
  11437. }
  11438. } else {
  11439. pr_err("%s item value is out of range item\n", __func__);
  11440. ret = -EINVAL;
  11441. }
  11442. mutex_unlock(&routing_lock);
  11443. return ret;
  11444. }
  11445. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  11446. struct snd_ctl_elem_value *ucontrol)
  11447. {
  11448. int ret = 0;
  11449. int item;
  11450. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11451. pr_debug("%s item is %d\n", __func__,
  11452. ucontrol->value.enumerated.item[0]);
  11453. mutex_lock(&routing_lock);
  11454. item = ucontrol->value.enumerated.item[0];
  11455. if (item < e->items) {
  11456. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11457. __func__, e->shift_l, e->values[item]);
  11458. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11459. e->values[item] < MSM_BACKEND_DAI_MAX)
  11460. /* Enable feedback TX path */
  11461. ret = afe_spk_prot_feed_back_cfg(
  11462. msm_bedais[e->values[item]].port_id,
  11463. msm_bedais[e->shift_l].port_id,
  11464. 1, 1, 1);
  11465. else {
  11466. pr_debug("%s values are out of range item %d\n",
  11467. __func__, e->values[item]);
  11468. /* Disable feedback TX path */
  11469. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11470. ret = afe_spk_prot_feed_back_cfg(0,
  11471. 0, 0, 0, 0);
  11472. else
  11473. ret = -EINVAL;
  11474. }
  11475. } else {
  11476. pr_err("%s item value is out of range item\n", __func__);
  11477. ret = -EINVAL;
  11478. }
  11479. mutex_unlock(&routing_lock);
  11480. return ret;
  11481. }
  11482. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  11483. struct snd_ctl_elem_value *ucontrol)
  11484. {
  11485. pr_debug("%s\n", __func__);
  11486. return 0;
  11487. }
  11488. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  11489. struct snd_ctl_elem_value *ucontrol)
  11490. {
  11491. pr_debug("%s\n", __func__);
  11492. ucontrol->value.enumerated.item[0] = 0;
  11493. return 0;
  11494. }
  11495. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  11496. "ZERO", "SLIM4_TX"
  11497. };
  11498. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  11499. "ZERO", "SLIM4_TX"
  11500. };
  11501. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  11502. "ZERO", "SENARY_TX"
  11503. };
  11504. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  11505. "ZERO", "INT5_MI2S_TX"
  11506. };
  11507. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  11508. "ZERO", "INT5_MI2S_TX"
  11509. };
  11510. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  11511. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11512. };
  11513. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  11514. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11515. };
  11516. static const int const mi2s_rx_vi_fb_tx_value[] = {
  11517. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  11518. };
  11519. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  11520. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11521. };
  11522. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  11523. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11524. };
  11525. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  11526. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11527. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  11528. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  11529. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  11530. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11531. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  11532. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  11533. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  11534. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  11535. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  11536. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  11537. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  11538. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11539. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  11540. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  11541. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  11542. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  11543. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11544. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  11545. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  11546. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  11547. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  11548. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  11549. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  11550. spkr_prot_put_vi_lch_port);
  11551. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  11552. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  11553. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  11554. spkr_prot_put_vi_rch_port);
  11555. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  11556. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  11557. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  11558. spkr_prot_put_vi_lch_port);
  11559. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  11560. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  11561. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  11562. spkr_prot_put_vi_lch_port);
  11563. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  11564. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  11565. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  11566. spkr_prot_put_vi_rch_port);
  11567. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  11568. /* Frontend AIF */
  11569. /* Widget name equals to Front-End DAI name<Need confirmation>,
  11570. * Stream name must contains substring of front-end dai name
  11571. */
  11572. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  11573. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  11574. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  11575. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  11576. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  11577. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  11578. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  11579. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  11580. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  11581. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  11582. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  11583. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  11584. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  11585. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  11586. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  11587. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  11588. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  11589. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  11590. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  11591. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  11592. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  11593. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  11594. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  11595. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  11596. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  11597. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  11598. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  11599. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  11600. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  11601. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  11602. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  11603. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  11604. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  11605. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  11606. "VoiceMMode1 Playback", 0, 0, 0, 0),
  11607. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  11608. "VoiceMMode1 Capture", 0, 0, 0, 0),
  11609. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  11610. "VoiceMMode2 Playback", 0, 0, 0, 0),
  11611. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  11612. "VoiceMMode2 Capture", 0, 0, 0, 0),
  11613. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  11614. 0, 0, 0, 0),
  11615. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  11616. 0, 0, 0, 0),
  11617. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  11618. 0, 0, 0, 0),
  11619. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  11620. 0, 0, 0, 0),
  11621. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  11622. 0, 0, 0, 0),
  11623. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  11624. 0, 0, 0, 0),
  11625. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  11626. 0, 0, 0, 0),
  11627. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  11628. 0, 0, 0, 0),
  11629. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  11630. 0, 0, 0, 0),
  11631. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  11632. 0, 0, 0, 0),
  11633. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  11634. 0, 0, 0, 0),
  11635. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  11636. 0, 0, 0, 0),
  11637. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  11638. 0, 0, 0, 0),
  11639. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  11640. 0, 0, 0, 0),
  11641. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  11642. 0, 0, 0, 0),
  11643. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  11644. 0, 0, 0, 0),
  11645. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  11646. 0, 0, 0, 0),
  11647. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  11648. 0, 0, 0, 0),
  11649. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  11650. 0, 0, 0, 0),
  11651. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  11652. 0, 0, 0, 0),
  11653. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  11654. 0, 0, 0, 0),
  11655. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  11656. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  11657. 0, 0, 0, 0),
  11658. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  11659. "INT0 MI2S_RX Hostless Playback",
  11660. 0, 0, 0, 0),
  11661. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  11662. "INT4 MI2S_RX Hostless Playback",
  11663. 0, 0, 0, 0),
  11664. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  11665. "Primary MI2S_RX Hostless Playback",
  11666. 0, 0, 0, 0),
  11667. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  11668. "Secondary MI2S_RX Hostless Playback",
  11669. 0, 0, 0, 0),
  11670. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  11671. "Tertiary MI2S_RX Hostless Playback",
  11672. 0, 0, 0, 0),
  11673. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  11674. "Quaternary MI2S_RX Hostless Playback",
  11675. 0, 0, 0, 0),
  11676. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  11677. "Quinary MI2S_RX Hostless Playback",
  11678. 0, 0, 0, 0),
  11679. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  11680. 0, 0, 0, 0),
  11681. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  11682. 0, 0, 0, 0),
  11683. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  11684. 0, 0, 0, 0),
  11685. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  11686. "INT3 MI2S_TX Hostless Capture",
  11687. 0, 0, 0, 0),
  11688. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  11689. "Tertiary MI2S_TX Hostless Capture",
  11690. 0, 0, 0, 0),
  11691. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  11692. "Secondary MI2S_TX Hostless Capture",
  11693. 0, 0, 0, 0),
  11694. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  11695. "Primary MI2S_TX Hostless Capture",
  11696. 0, 0, 0, 0),
  11697. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  11698. 0, 0, 0, 0),
  11699. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  11700. 0, 0, 0, 0),
  11701. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  11702. "Quaternary MI2S_TX Hostless Capture",
  11703. 0, 0, 0, 0),
  11704. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  11705. "Quinary MI2S_TX Hostless Capture",
  11706. 0, 0, 0, 0),
  11707. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  11708. "Primary TDM0 Hostless Playback",
  11709. 0, 0, 0, 0),
  11710. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  11711. "Primary TDM0 Hostless Capture",
  11712. 0, 0, 0, 0),
  11713. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  11714. "Primary TDM1 Hostless Playback",
  11715. 0, 0, 0, 0),
  11716. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  11717. "Primary TDM1 Hostless Capture",
  11718. 0, 0, 0, 0),
  11719. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  11720. "Primary TDM2 Hostless Playback",
  11721. 0, 0, 0, 0),
  11722. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  11723. "Primary TDM2 Hostless Capture",
  11724. 0, 0, 0, 0),
  11725. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  11726. "Primary TDM3 Hostless Playback",
  11727. 0, 0, 0, 0),
  11728. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  11729. "Primary TDM3 Hostless Capture",
  11730. 0, 0, 0, 0),
  11731. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  11732. "Primary TDM4 Hostless Playback",
  11733. 0, 0, 0, 0),
  11734. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  11735. "Primary TDM4 Hostless Capture",
  11736. 0, 0, 0, 0),
  11737. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  11738. "Primary TDM5 Hostless Playback",
  11739. 0, 0, 0, 0),
  11740. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  11741. "Primary TDM5 Hostless Capture",
  11742. 0, 0, 0, 0),
  11743. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  11744. "Primary TDM6 Hostless Playback",
  11745. 0, 0, 0, 0),
  11746. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  11747. "Primary TDM6 Hostless Capture",
  11748. 0, 0, 0, 0),
  11749. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  11750. "Primary TDM7 Hostless Playback",
  11751. 0, 0, 0, 0),
  11752. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  11753. "Primary TDM7 Hostless Capture",
  11754. 0, 0, 0, 0),
  11755. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  11756. "Secondary TDM0 Hostless Playback",
  11757. 0, 0, 0, 0),
  11758. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  11759. "Secondary TDM0 Hostless Capture",
  11760. 0, 0, 0, 0),
  11761. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  11762. "Secondary TDM1 Hostless Playback",
  11763. 0, 0, 0, 0),
  11764. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  11765. "Secondary TDM1 Hostless Capture",
  11766. 0, 0, 0, 0),
  11767. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  11768. "Secondary TDM2 Hostless Playback",
  11769. 0, 0, 0, 0),
  11770. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  11771. "Secondary TDM2 Hostless Capture",
  11772. 0, 0, 0, 0),
  11773. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  11774. "Secondary TDM3 Hostless Playback",
  11775. 0, 0, 0, 0),
  11776. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  11777. "Secondary TDM3 Hostless Capture",
  11778. 0, 0, 0, 0),
  11779. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  11780. "Secondary TDM4 Hostless Playback",
  11781. 0, 0, 0, 0),
  11782. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  11783. "Secondary TDM4 Hostless Capture",
  11784. 0, 0, 0, 0),
  11785. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  11786. "Secondary TDM5 Hostless Playback",
  11787. 0, 0, 0, 0),
  11788. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  11789. "Secondary TDM5 Hostless Capture",
  11790. 0, 0, 0, 0),
  11791. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  11792. "Secondary TDM6 Hostless Playback",
  11793. 0, 0, 0, 0),
  11794. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  11795. "Secondary TDM6 Hostless Capture",
  11796. 0, 0, 0, 0),
  11797. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  11798. "Secondary TDM7 Hostless Playback",
  11799. 0, 0, 0, 0),
  11800. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  11801. "Secondary TDM7 Hostless Capture",
  11802. 0, 0, 0, 0),
  11803. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  11804. "Tertiary TDM0 Hostless Playback",
  11805. 0, 0, 0, 0),
  11806. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  11807. "Tertiary TDM0 Hostless Capture",
  11808. 0, 0, 0, 0),
  11809. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  11810. "Tertiary TDM1 Hostless Playback",
  11811. 0, 0, 0, 0),
  11812. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  11813. "Tertiary TDM1 Hostless Capture",
  11814. 0, 0, 0, 0),
  11815. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  11816. "Tertiary TDM2 Hostless Playback",
  11817. 0, 0, 0, 0),
  11818. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  11819. "Tertiary TDM2 Hostless Capture",
  11820. 0, 0, 0, 0),
  11821. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  11822. "Tertiary TDM3 Hostless Playback",
  11823. 0, 0, 0, 0),
  11824. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  11825. "Tertiary TDM3 Hostless Capture",
  11826. 0, 0, 0, 0),
  11827. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  11828. "Tertiary TDM4 Hostless Playback",
  11829. 0, 0, 0, 0),
  11830. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  11831. "Tertiary TDM4 Hostless Capture",
  11832. 0, 0, 0, 0),
  11833. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  11834. "Tertiary TDM5 Hostless Playback",
  11835. 0, 0, 0, 0),
  11836. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  11837. "Tertiary TDM5 Hostless Capture",
  11838. 0, 0, 0, 0),
  11839. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  11840. "Tertiary TDM6 Hostless Playback",
  11841. 0, 0, 0, 0),
  11842. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  11843. "Tertiary TDM6 Hostless Capture",
  11844. 0, 0, 0, 0),
  11845. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  11846. "Tertiary TDM7 Hostless Playback",
  11847. 0, 0, 0, 0),
  11848. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  11849. "Tertiary TDM7 Hostless Capture",
  11850. 0, 0, 0, 0),
  11851. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  11852. "Quaternary TDM0 Hostless Playback",
  11853. 0, 0, 0, 0),
  11854. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  11855. "Quaternary TDM0 Hostless Capture",
  11856. 0, 0, 0, 0),
  11857. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  11858. "Quaternary TDM1 Hostless Playback",
  11859. 0, 0, 0, 0),
  11860. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  11861. "Quaternary TDM1 Hostless Capture",
  11862. 0, 0, 0, 0),
  11863. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  11864. "Quaternary TDM2 Hostless Playback",
  11865. 0, 0, 0, 0),
  11866. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  11867. "Quaternary TDM2 Hostless Capture",
  11868. 0, 0, 0, 0),
  11869. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  11870. "Quaternary TDM3 Hostless Playback",
  11871. 0, 0, 0, 0),
  11872. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  11873. "Quaternary TDM3 Hostless Capture",
  11874. 0, 0, 0, 0),
  11875. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  11876. "Quaternary TDM4 Hostless Playback",
  11877. 0, 0, 0, 0),
  11878. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  11879. "Quaternary TDM4 Hostless Capture",
  11880. 0, 0, 0, 0),
  11881. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  11882. "Quaternary TDM5 Hostless Playback",
  11883. 0, 0, 0, 0),
  11884. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  11885. "Quaternary TDM5 Hostless Capture",
  11886. 0, 0, 0, 0),
  11887. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  11888. "Quaternary TDM6 Hostless Playback",
  11889. 0, 0, 0, 0),
  11890. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  11891. "Quaternary TDM6 Hostless Capture",
  11892. 0, 0, 0, 0),
  11893. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  11894. "Quaternary TDM7 Hostless Playback",
  11895. 0, 0, 0, 0),
  11896. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  11897. "Quaternary TDM7 Hostless Capture",
  11898. 0, 0, 0, 0),
  11899. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  11900. "Quinary TDM0 Hostless Playback",
  11901. 0, 0, 0, 0),
  11902. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  11903. "Quinary TDM0 Hostless Capture",
  11904. 0, 0, 0, 0),
  11905. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  11906. "Quinary TDM1 Hostless Playback",
  11907. 0, 0, 0, 0),
  11908. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  11909. "Quinary TDM1 Hostless Capture",
  11910. 0, 0, 0, 0),
  11911. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  11912. "Quinary TDM2 Hostless Playback",
  11913. 0, 0, 0, 0),
  11914. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  11915. "Quinary TDM2 Hostless Capture",
  11916. 0, 0, 0, 0),
  11917. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  11918. "Quinary TDM3 Hostless Playback",
  11919. 0, 0, 0, 0),
  11920. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  11921. "Quinary TDM3 Hostless Capture",
  11922. 0, 0, 0, 0),
  11923. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  11924. "Quinary TDM4 Hostless Playback",
  11925. 0, 0, 0, 0),
  11926. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  11927. "Quinary TDM4 Hostless Capture",
  11928. 0, 0, 0, 0),
  11929. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  11930. "Quinary TDM5 Hostless Playback",
  11931. 0, 0, 0, 0),
  11932. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  11933. "Quinary TDM5 Hostless Capture",
  11934. 0, 0, 0, 0),
  11935. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  11936. "Quinary TDM6 Hostless Playback",
  11937. 0, 0, 0, 0),
  11938. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  11939. "Quinary TDM6 Hostless Capture",
  11940. 0, 0, 0, 0),
  11941. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  11942. "Quinary TDM7 Hostless Playback",
  11943. 0, 0, 0, 0),
  11944. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  11945. "Quinary TDM7 Hostless Capture",
  11946. 0, 0, 0, 0),
  11947. /* LSM */
  11948. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  11949. 0, 0, 0, 0),
  11950. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  11951. 0, 0, 0, 0),
  11952. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  11953. 0, 0, 0, 0),
  11954. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  11955. 0, 0, 0, 0),
  11956. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  11957. 0, 0, 0, 0),
  11958. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  11959. 0, 0, 0, 0),
  11960. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  11961. 0, 0, 0, 0),
  11962. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  11963. 0, 0, 0, 0),
  11964. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  11965. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  11966. /* Backend AIF */
  11967. /* Stream name equals to backend dai link stream name */
  11968. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  11969. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  11970. 0, 0, 0, 0),
  11971. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  11972. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  11973. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  11974. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  11975. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  11976. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  11977. 0, 0, 0, 0),
  11978. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  11979. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  11980. 0, 0, 0, 0),
  11981. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  11982. 0, 0, 0, 0),
  11983. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  11984. 0, 0, 0, 0),
  11985. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  11986. "Secondary MI2S Playback SD1",
  11987. 0, 0, 0, 0),
  11988. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  11989. 0, 0, 0, 0),
  11990. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  11991. 0, 0, 0, 0),
  11992. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  11993. 0, 0, 0, 0),
  11994. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  11995. 0, 0, 0, 0),
  11996. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  11997. 0, 0, 0, 0),
  11998. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  11999. 0, 0, 0, 0),
  12000. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  12001. 0, 0, 0, 0),
  12002. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  12003. 0, 0, 0, 0),
  12004. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  12005. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  12006. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  12007. 0, 0, 0, 0),
  12008. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  12009. 0, 0, 0, 0),
  12010. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  12011. 0, 0, 0, 0),
  12012. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  12013. 0, 0, 0, 0),
  12014. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  12015. 0, 0, 0, 0),
  12016. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  12017. 0, 0, 0, 0),
  12018. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  12019. 0, 0, 0, 0),
  12020. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  12021. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  12022. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  12023. 0, 0, 0, 0),
  12024. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  12025. 0, 0, 0, 0),
  12026. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  12027. 0, 0, 0, 0),
  12028. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  12029. 0, 0, 0, 0),
  12030. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  12031. 0, 0, 0, 0),
  12032. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  12033. 0, 0, 0, 0),
  12034. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  12035. 0, 0, 0, 0),
  12036. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  12037. 0, 0, 0, 0),
  12038. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  12039. 0, 0, 0, 0),
  12040. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  12041. 0, 0, 0, 0),
  12042. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  12043. 0, 0, 0, 0),
  12044. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  12045. 0, 0, 0, 0),
  12046. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  12047. 0, 0, 0, 0),
  12048. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  12049. 0, 0, 0, 0),
  12050. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  12051. 0, 0, 0, 0),
  12052. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  12053. 0, 0, 0, 0),
  12054. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  12055. 0, 0, 0, 0),
  12056. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  12057. 0, 0, 0, 0),
  12058. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  12059. 0, 0, 0, 0),
  12060. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  12061. 0, 0, 0, 0),
  12062. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  12063. 0, 0, 0, 0),
  12064. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  12065. 0, 0, 0, 0),
  12066. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  12067. 0, 0, 0, 0),
  12068. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  12069. 0, 0, 0, 0),
  12070. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  12071. 0, 0, 0, 0),
  12072. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  12073. 0, 0, 0, 0),
  12074. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  12075. 0, 0, 0, 0),
  12076. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  12077. 0, 0, 0, 0),
  12078. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  12079. 0, 0, 0, 0),
  12080. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  12081. 0, 0, 0, 0),
  12082. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  12083. 0, 0, 0, 0),
  12084. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  12085. 0, 0, 0, 0),
  12086. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  12087. 0, 0, 0, 0),
  12088. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  12089. 0, 0, 0, 0),
  12090. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  12091. 0, 0, 0, 0),
  12092. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  12093. 0, 0, 0, 0),
  12094. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  12095. 0, 0, 0, 0),
  12096. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  12097. 0, 0, 0, 0),
  12098. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  12099. 0, 0, 0, 0),
  12100. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  12101. 0, 0, 0, 0),
  12102. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  12103. 0, 0, 0, 0),
  12104. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  12105. 0, 0, 0, 0),
  12106. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  12107. 0, 0, 0, 0),
  12108. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  12109. 0, 0, 0, 0),
  12110. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  12111. 0, 0, 0, 0),
  12112. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  12113. 0, 0, 0, 0),
  12114. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  12115. 0, 0, 0, 0),
  12116. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  12117. 0, 0, 0, 0),
  12118. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  12119. 0, 0, 0, 0),
  12120. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  12121. 0, 0, 0, 0),
  12122. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  12123. 0, 0, 0, 0),
  12124. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  12125. 0, 0, 0, 0),
  12126. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  12127. 0, 0, 0, 0),
  12128. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  12129. 0, 0, 0, 0),
  12130. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  12131. 0, 0, 0, 0),
  12132. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  12133. 0, 0, 0, 0),
  12134. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  12135. 0, 0, 0, 0),
  12136. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  12137. 0, 0, 0, 0),
  12138. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  12139. 0, 0, 0, 0),
  12140. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  12141. 0, 0, 0, 0),
  12142. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  12143. 0, 0, 0, 0),
  12144. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  12145. 0, 0, 0, 0),
  12146. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  12147. 0, 0, 0, 0),
  12148. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  12149. 0, 0, 0, 0),
  12150. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  12151. 0, 0, 0, 0),
  12152. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  12153. 0, 0, 0, 0),
  12154. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  12155. 0, 0, 0, 0),
  12156. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  12157. 0, 0, 0, 0),
  12158. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  12159. 0, 0, 0, 0),
  12160. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  12161. 0, 0, 0, 0),
  12162. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  12163. 0, 0, 0, 0),
  12164. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  12165. 0, 0, 0, 0),
  12166. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  12167. 0, 0, 0, 0),
  12168. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  12169. 0, 0, 0, 0),
  12170. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  12171. 0, 0, 0, 0),
  12172. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  12173. 0, 0, 0, 0),
  12174. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  12175. 0, 0, 0, 0),
  12176. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  12177. 0, 0, 0, 0),
  12178. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  12179. 0, 0, 0, 0),
  12180. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  12181. 0, 0, 0, 0),
  12182. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  12183. 0, 0, 0, 0),
  12184. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  12185. 0, 0, 0, 0),
  12186. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  12187. 0, 0, 0, 0),
  12188. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  12189. 0, 0, 0, 0),
  12190. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  12191. 0, 0, 0, 0),
  12192. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  12193. 0, 0, 0, 0),
  12194. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  12195. 0, 0, 0, 0),
  12196. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  12197. 0, 0, 0, 0),
  12198. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  12199. 0, 0, 0, 0),
  12200. /* incall */
  12201. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  12202. 0, 0, 0, 0),
  12203. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  12204. 0, 0, 0, 0),
  12205. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  12206. 0, 0, 0, 0),
  12207. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  12208. 0, 0, 0, 0),
  12209. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  12210. 0, 0, 0, 0),
  12211. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  12212. 0, 0, 0, 0),
  12213. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  12214. 0, 0, 0, 0),
  12215. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  12216. 0, 0, 0, 0),
  12217. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  12218. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  12219. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  12220. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  12221. 0, 0, 0, 0),
  12222. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  12223. 0, 0, 0, 0),
  12224. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  12225. 0, 0, 0, 0),
  12226. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  12227. 0, 0, 0, 0),
  12228. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  12229. 0, 0, 0, 0),
  12230. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  12231. 0, 0, 0, 0),
  12232. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  12233. 0, 0, 0, 0),
  12234. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  12235. 0, 0, 0, 0),
  12236. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  12237. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  12238. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  12239. 0, 0, 0, 0),
  12240. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  12241. 0, 0, 0, 0),
  12242. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  12243. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  12244. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  12245. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  12246. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  12247. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  12248. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  12249. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  12250. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  12251. /* In- call recording */
  12252. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  12253. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  12254. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  12255. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  12256. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  12257. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  12258. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  12259. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  12260. /* Switch Definitions */
  12261. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  12262. &slim_fm_switch_mixer_controls),
  12263. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  12264. &slim1_fm_switch_mixer_controls),
  12265. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  12266. &slim3_fm_switch_mixer_controls),
  12267. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  12268. &slim4_fm_switch_mixer_controls),
  12269. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  12270. &slim6_fm_switch_mixer_controls),
  12271. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12272. &pcm_rx_switch_mixer_controls),
  12273. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12274. &int0_mi2s_rx_switch_mixer_controls),
  12275. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12276. &int4_mi2s_rx_switch_mixer_controls),
  12277. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12278. &pri_mi2s_rx_switch_mixer_controls),
  12279. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12280. &sec_mi2s_rx_switch_mixer_controls),
  12281. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12282. &tert_mi2s_rx_switch_mixer_controls),
  12283. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12284. &quat_mi2s_rx_switch_mixer_controls),
  12285. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12286. &quin_mi2s_rx_switch_mixer_controls),
  12287. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12288. &hfp_pri_aux_switch_mixer_controls),
  12289. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12290. &hfp_aux_switch_mixer_controls),
  12291. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  12292. &hfp_int_switch_mixer_controls),
  12293. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  12294. &hfp_slim7_switch_mixer_controls),
  12295. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  12296. &usb_switch_mixer_controls),
  12297. /* Mixer definitions */
  12298. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12299. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  12300. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12301. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  12302. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12303. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  12304. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12305. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  12306. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12307. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  12308. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12309. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  12310. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  12311. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  12312. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  12313. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  12314. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12315. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  12316. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12317. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  12318. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12319. quaternary_mi2s_rx_mixer_controls,
  12320. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  12321. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12322. tertiary_mi2s_rx_mixer_controls,
  12323. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  12324. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12325. secondary_mi2s_rx_mixer_controls,
  12326. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  12327. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12328. secondary_mi2s_rx2_mixer_controls,
  12329. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  12330. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12331. primary_mi2s_rx_mixer_controls,
  12332. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  12333. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12334. int0_mi2s_rx_mixer_controls,
  12335. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  12336. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12337. int4_mi2s_rx_mixer_controls,
  12338. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  12339. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12340. quinary_mi2s_rx_mixer_controls,
  12341. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  12342. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12343. pri_tdm_rx_0_mixer_controls,
  12344. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  12345. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12346. pri_tdm_rx_1_mixer_controls,
  12347. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  12348. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12349. pri_tdm_rx_2_mixer_controls,
  12350. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  12351. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12352. pri_tdm_rx_3_mixer_controls,
  12353. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  12354. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12355. pri_tdm_tx_0_mixer_controls,
  12356. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  12357. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12358. sec_tdm_rx_0_mixer_controls,
  12359. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  12360. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12361. sec_tdm_rx_1_mixer_controls,
  12362. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  12363. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12364. sec_tdm_rx_2_mixer_controls,
  12365. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  12366. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12367. sec_tdm_rx_3_mixer_controls,
  12368. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  12369. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12370. sec_tdm_tx_0_mixer_controls,
  12371. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  12372. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12373. tert_tdm_rx_0_mixer_controls,
  12374. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  12375. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12376. tert_tdm_tx_0_mixer_controls,
  12377. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  12378. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12379. tert_tdm_rx_1_mixer_controls,
  12380. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  12381. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12382. tert_tdm_rx_2_mixer_controls,
  12383. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  12384. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12385. tert_tdm_rx_3_mixer_controls,
  12386. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  12387. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12388. tert_tdm_rx_4_mixer_controls,
  12389. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  12390. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12391. quat_tdm_rx_0_mixer_controls,
  12392. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  12393. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12394. quat_tdm_tx_0_mixer_controls,
  12395. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  12396. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12397. quat_tdm_rx_1_mixer_controls,
  12398. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  12399. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12400. quat_tdm_rx_2_mixer_controls,
  12401. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  12402. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12403. quat_tdm_rx_3_mixer_controls,
  12404. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  12405. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12406. quin_tdm_rx_0_mixer_controls,
  12407. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  12408. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12409. quin_tdm_tx_0_mixer_controls,
  12410. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  12411. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12412. quin_tdm_rx_1_mixer_controls,
  12413. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  12414. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12415. quin_tdm_rx_2_mixer_controls,
  12416. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  12417. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12418. quin_tdm_rx_3_mixer_controls,
  12419. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  12420. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  12421. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  12422. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  12423. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  12424. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  12425. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  12426. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  12427. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  12428. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  12429. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  12430. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  12431. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  12432. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  12433. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  12434. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  12435. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  12436. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  12437. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  12438. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  12439. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  12440. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  12441. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  12442. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  12443. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  12444. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  12445. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  12446. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  12447. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  12448. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12449. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  12450. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12451. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  12452. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12453. tert_auxpcm_rx_mixer_controls,
  12454. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  12455. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12456. quat_auxpcm_rx_mixer_controls,
  12457. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  12458. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12459. quin_auxpcm_rx_mixer_controls,
  12460. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  12461. /* incall */
  12462. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  12463. incall_music_delivery_mixer_controls,
  12464. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  12465. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12466. incall_music2_delivery_mixer_controls,
  12467. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  12468. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12469. slimbus_4_rx_mixer_controls,
  12470. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  12471. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12472. slimbus_6_rx_mixer_controls,
  12473. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  12474. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12475. usb_audio_rx_mixer_controls,
  12476. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  12477. /* Voice Mixer */
  12478. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  12479. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  12480. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  12481. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  12482. SND_SOC_NOPM, 0, 0,
  12483. sec_i2s_rx_voice_mixer_controls,
  12484. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  12485. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  12486. SND_SOC_NOPM, 0, 0,
  12487. sec_mi2s_rx_voice_mixer_controls,
  12488. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  12489. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  12490. SND_SOC_NOPM, 0, 0,
  12491. slimbus_rx_voice_mixer_controls,
  12492. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  12493. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  12494. SND_SOC_NOPM, 0, 0,
  12495. bt_sco_rx_voice_mixer_controls,
  12496. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  12497. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  12498. SND_SOC_NOPM, 0, 0,
  12499. afe_pcm_rx_voice_mixer_controls,
  12500. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  12501. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  12502. SND_SOC_NOPM, 0, 0,
  12503. aux_pcm_rx_voice_mixer_controls,
  12504. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  12505. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  12506. SND_SOC_NOPM, 0, 0,
  12507. sec_aux_pcm_rx_voice_mixer_controls,
  12508. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  12509. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  12510. SND_SOC_NOPM, 0, 0,
  12511. tert_aux_pcm_rx_voice_mixer_controls,
  12512. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  12513. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  12514. SND_SOC_NOPM, 0, 0,
  12515. quat_aux_pcm_rx_voice_mixer_controls,
  12516. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  12517. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  12518. SND_SOC_NOPM, 0, 0,
  12519. quin_aux_pcm_rx_voice_mixer_controls,
  12520. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  12521. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  12522. SND_SOC_NOPM, 0, 0,
  12523. hdmi_rx_voice_mixer_controls,
  12524. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  12525. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  12526. SND_SOC_NOPM, 0, 0,
  12527. mi2s_rx_voice_mixer_controls,
  12528. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  12529. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  12530. SND_SOC_NOPM, 0, 0,
  12531. pri_mi2s_rx_voice_mixer_controls,
  12532. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  12533. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  12534. SND_SOC_NOPM, 0, 0,
  12535. int0_mi2s_rx_voice_mixer_controls,
  12536. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  12537. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  12538. SND_SOC_NOPM, 0, 0,
  12539. int4_mi2s_rx_voice_mixer_controls,
  12540. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  12541. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  12542. SND_SOC_NOPM, 0, 0,
  12543. tert_mi2s_rx_voice_mixer_controls,
  12544. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  12545. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  12546. SND_SOC_NOPM, 0, 0,
  12547. quat_mi2s_rx_voice_mixer_controls,
  12548. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  12549. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  12550. SND_SOC_NOPM, 0, 0,
  12551. quin_mi2s_rx_voice_mixer_controls,
  12552. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  12553. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  12554. SND_SOC_NOPM, 0, 0,
  12555. quat_tdm_rx_2_voice_mixer_controls,
  12556. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  12557. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  12558. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  12559. ARRAY_SIZE(tx_voip_mixer_controls)),
  12560. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  12561. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  12562. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  12563. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  12564. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  12565. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  12566. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12567. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  12568. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12569. int_bt_a2dp_rx_mixer_controls,
  12570. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  12571. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12572. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  12573. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12574. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  12575. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12576. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  12577. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12578. tx_voice2_stub_mixer_controls,
  12579. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  12580. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12581. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  12582. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  12583. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  12584. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  12585. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  12586. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12587. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  12588. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  12589. SND_SOC_NOPM, 0, 0,
  12590. slimbus_6_rx_voice_mixer_controls,
  12591. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  12592. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12593. slimbus_7_rx_voice_mixer_controls,
  12594. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  12595. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12596. slimbus_8_rx_voice_mixer_controls,
  12597. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  12598. /* port mixer */
  12599. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  12600. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  12601. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  12602. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  12603. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  12604. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  12605. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  12606. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  12607. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  12608. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  12609. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  12610. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  12611. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  12612. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  12613. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  12614. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  12615. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  12616. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  12617. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12618. sbus_1_rx_port_mixer_controls,
  12619. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  12620. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12621. bt_sco_rx_port_mixer_controls,
  12622. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  12623. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  12624. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  12625. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  12626. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  12627. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  12628. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  12629. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  12630. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  12631. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  12632. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  12633. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  12634. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  12635. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  12636. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  12637. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  12638. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  12639. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  12640. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  12641. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12642. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  12643. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12644. primary_mi2s_rx_port_mixer_controls,
  12645. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  12646. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12647. sec_mi2s_rx_port_mixer_controls,
  12648. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  12649. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12650. tert_mi2s_rx_port_mixer_controls,
  12651. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  12652. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12653. quat_mi2s_rx_port_mixer_controls,
  12654. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  12655. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12656. quin_mi2s_rx_port_mixer_controls,
  12657. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  12658. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12659. pri_tdm_rx_0_port_mixer_controls,
  12660. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  12661. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12662. pri_tdm_rx_1_port_mixer_controls,
  12663. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  12664. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12665. pri_tdm_rx_2_port_mixer_controls,
  12666. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  12667. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12668. pri_tdm_rx_3_port_mixer_controls,
  12669. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  12670. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12671. sec_tdm_rx_0_port_mixer_controls,
  12672. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  12673. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12674. sec_tdm_rx_1_port_mixer_controls,
  12675. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  12676. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12677. sec_tdm_rx_2_port_mixer_controls,
  12678. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  12679. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12680. sec_tdm_rx_3_port_mixer_controls,
  12681. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  12682. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12683. tert_tdm_rx_0_port_mixer_controls,
  12684. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  12685. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12686. tert_tdm_rx_1_port_mixer_controls,
  12687. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  12688. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12689. tert_tdm_rx_2_port_mixer_controls,
  12690. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  12691. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12692. tert_tdm_rx_3_port_mixer_controls,
  12693. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  12694. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12695. quat_tdm_rx_0_port_mixer_controls,
  12696. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  12697. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12698. quat_tdm_rx_1_port_mixer_controls,
  12699. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  12700. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12701. quat_tdm_rx_2_port_mixer_controls,
  12702. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  12703. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12704. quat_tdm_rx_3_port_mixer_controls,
  12705. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  12706. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12707. quin_tdm_rx_0_port_mixer_controls,
  12708. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  12709. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12710. quin_tdm_rx_1_port_mixer_controls,
  12711. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  12712. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12713. quin_tdm_rx_2_port_mixer_controls,
  12714. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  12715. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12716. quin_tdm_rx_3_port_mixer_controls,
  12717. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  12718. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12719. int0_mi2s_rx_port_mixer_controls,
  12720. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  12721. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12722. int4_mi2s_rx_port_mixer_controls,
  12723. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  12724. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  12725. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  12726. ARRAY_SIZE(tx_qchat_mixer_controls)),
  12727. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  12728. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  12729. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  12730. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  12731. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  12732. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  12733. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  12734. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  12735. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  12736. /* lsm mixer definitions */
  12737. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  12738. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  12739. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  12740. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  12741. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  12742. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  12743. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  12744. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  12745. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  12746. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  12747. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  12748. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  12749. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  12750. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  12751. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  12752. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  12753. /* Virtual Pins to force backends ON atm */
  12754. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  12755. SND_SOC_DAPM_INPUT("BE_IN"),
  12756. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  12757. &slim0_rx_vi_fb_lch_mux),
  12758. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  12759. &slim0_rx_vi_fb_rch_mux),
  12760. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  12761. &mi2s_rx_vi_fb_mux),
  12762. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12763. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  12764. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12765. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  12766. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  12767. &voc_ext_ec_mux),
  12768. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  12769. &ext_ec_ref_mux_ul1),
  12770. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  12771. &ext_ec_ref_mux_ul2),
  12772. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  12773. &ext_ec_ref_mux_ul3),
  12774. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  12775. &ext_ec_ref_mux_ul4),
  12776. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  12777. &ext_ec_ref_mux_ul5),
  12778. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  12779. &ext_ec_ref_mux_ul6),
  12780. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  12781. &ext_ec_ref_mux_ul8),
  12782. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  12783. &ext_ec_ref_mux_ul9),
  12784. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  12785. &ext_ec_ref_mux_ul10),
  12786. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  12787. &ext_ec_ref_mux_ul16),
  12788. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  12789. &ext_ec_ref_mux_ul17),
  12790. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  12791. &ext_ec_ref_mux_ul18),
  12792. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  12793. &ext_ec_ref_mux_ul19),
  12794. };
  12795. static const struct snd_soc_dapm_route intercon[] = {
  12796. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12797. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12798. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12799. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12800. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12801. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12802. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12803. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12804. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12805. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12806. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12807. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12808. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12809. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12810. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12811. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12812. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  12813. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12814. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12815. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12816. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12817. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12818. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12819. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12820. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12821. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12822. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12823. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12824. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12825. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12826. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12827. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12828. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12829. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  12830. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12831. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12832. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12833. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12834. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12835. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12836. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12837. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12838. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12839. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12840. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12841. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12842. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12843. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12844. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12845. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12846. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  12847. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12848. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12849. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12850. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12851. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12852. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12853. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12854. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12855. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12856. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12857. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12858. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12859. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12860. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12861. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12862. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12863. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  12864. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12865. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12866. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12867. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12868. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12869. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12870. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12871. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12872. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12873. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12874. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12875. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12876. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12877. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12878. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12879. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12880. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  12881. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  12882. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  12883. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  12884. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  12885. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  12886. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  12887. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  12888. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  12889. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  12890. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  12891. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  12892. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  12893. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  12894. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  12895. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  12896. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  12897. {"HDMI", NULL, "HDMI Mixer"},
  12898. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  12899. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  12900. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  12901. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  12902. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  12903. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  12904. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  12905. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  12906. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  12907. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  12908. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  12909. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  12910. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  12911. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  12912. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  12913. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  12914. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  12915. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12916. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12917. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12918. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12919. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12920. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12921. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12922. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12923. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12924. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12925. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12926. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12927. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12928. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12929. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12930. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12931. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  12932. /* incall */
  12933. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  12934. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  12935. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  12936. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  12937. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  12938. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12939. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12940. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12941. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12942. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  12943. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12944. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12945. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12946. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12947. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  12948. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12949. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12950. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12951. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12952. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12953. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12954. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12955. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12956. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12957. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12958. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12959. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12960. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12961. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12962. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12963. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12964. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  12965. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12966. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12967. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12968. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12969. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12970. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12971. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12972. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12973. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12974. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12975. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12976. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12977. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12978. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12979. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12980. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12981. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  12982. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12983. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12984. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12985. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12986. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12987. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12988. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12989. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12990. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12991. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12992. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12993. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12994. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12995. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12996. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12997. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12998. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  12999. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13000. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13001. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13002. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13003. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13004. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13005. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  13006. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13007. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13008. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13009. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13010. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13011. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13012. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13013. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13014. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13015. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13016. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13017. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13018. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13019. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13020. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13021. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13022. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13023. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13024. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13025. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13026. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13027. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13028. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13029. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13030. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13031. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13032. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13033. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13034. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13035. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13036. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13037. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13038. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13039. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13040. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13041. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13042. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13043. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13044. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13045. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13046. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13047. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  13048. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13049. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13050. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13051. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13052. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13053. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13054. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13055. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13056. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13057. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13058. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13059. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13060. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13061. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13062. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13063. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  13064. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13065. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13066. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13067. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13068. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13069. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13070. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13071. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13072. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13073. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13074. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13075. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13076. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13077. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13078. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  13079. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13080. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13081. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13082. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13083. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13084. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13085. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13086. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13087. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13088. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13089. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13090. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13091. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13092. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13093. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  13094. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13095. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  13096. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13097. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13098. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13099. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13100. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13101. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13102. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13103. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13104. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13105. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13106. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13107. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13108. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13109. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13110. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13111. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13112. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13113. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  13114. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13115. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13116. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13117. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13118. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13119. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13120. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13121. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13122. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13123. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13124. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13125. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13126. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13127. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13128. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13129. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  13130. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13131. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13132. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13133. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13134. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13135. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13136. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13137. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13138. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13139. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13140. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13141. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13142. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13143. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13144. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13145. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  13146. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13147. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13148. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13149. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13150. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13151. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13152. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13153. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13154. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13155. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13156. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13157. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13158. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13159. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13160. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13161. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13162. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13163. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  13164. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13165. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13166. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13167. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13168. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13169. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13170. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13171. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13172. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13173. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13174. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13175. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13176. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13177. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13178. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13179. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13180. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  13181. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13182. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13183. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13184. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13185. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13186. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13187. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13188. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13189. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13190. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13191. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13192. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13193. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13194. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13195. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13196. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13197. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  13198. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13199. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13200. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13201. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13202. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13203. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13204. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13205. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13206. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13207. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13208. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13209. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13210. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13211. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13212. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13213. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13214. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  13215. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13216. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13217. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13218. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13219. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13220. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13221. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13222. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13223. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13224. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13225. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13226. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13227. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13228. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13229. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13230. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13231. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  13232. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13233. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13234. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13235. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13236. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13237. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13238. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13239. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13240. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13241. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13242. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13243. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13244. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13245. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13246. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13247. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13248. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  13249. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13250. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13251. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13252. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13253. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13254. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13255. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13256. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13257. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13258. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13259. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13260. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13261. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13262. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13263. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13264. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13265. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  13266. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13267. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13268. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13269. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13270. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13271. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13272. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13273. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13274. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13275. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13276. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13277. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13278. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13279. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13280. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13281. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13282. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  13283. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13284. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13285. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13286. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13287. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13288. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13289. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13290. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13291. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13292. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13293. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13294. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13295. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13296. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13297. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13298. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13299. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  13300. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13301. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13302. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13303. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13304. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13305. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13306. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13307. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13308. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13309. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13310. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13311. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13312. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13313. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13314. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13315. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13316. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  13317. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13318. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13319. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13320. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13321. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13322. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13323. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13324. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13325. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13326. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13327. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13328. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13329. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13330. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13331. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13332. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13333. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  13334. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13335. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13336. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13337. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13338. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13339. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13340. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13341. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13342. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13343. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13344. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13345. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13346. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13347. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13348. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13349. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13350. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  13351. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13352. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13353. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13354. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13355. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13356. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13357. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13358. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13359. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13360. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13361. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13362. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13363. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13364. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13365. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13366. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13367. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  13368. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13369. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13370. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13371. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13372. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13373. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13374. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13375. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13376. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13377. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13378. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13379. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13380. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13381. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13382. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13383. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13384. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  13385. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13386. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13387. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13388. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13389. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13390. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13391. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13392. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13393. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13394. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13395. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13396. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13397. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13398. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13399. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13400. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13401. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  13402. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13403. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13404. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13405. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13406. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13407. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13408. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13409. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13410. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13411. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13412. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13413. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13414. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13415. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13416. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13417. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13418. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  13419. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13420. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13421. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13422. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13423. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13424. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13425. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13426. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13427. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13428. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13429. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13430. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13431. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13432. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13433. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13434. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13435. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  13436. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13437. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13438. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13439. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13440. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13441. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13442. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13443. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13444. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13445. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13446. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13447. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13448. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13449. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13450. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13451. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13452. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13453. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  13454. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13455. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13456. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13457. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13458. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13459. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13460. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13461. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13462. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13463. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13464. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13465. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13466. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13467. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13468. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13469. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13470. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  13471. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13472. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13473. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13474. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13475. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13476. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13477. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13478. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13479. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13480. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13481. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13482. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13483. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13484. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13485. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13486. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13487. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13488. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  13489. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13490. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13491. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13492. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13493. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13494. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13495. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13496. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13497. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13498. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13499. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13500. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13501. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13502. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13503. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13504. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13505. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13506. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  13507. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13508. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13509. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13510. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13511. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13512. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13513. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13514. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13515. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13516. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13517. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13518. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13519. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13520. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13521. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13522. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13523. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13524. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  13525. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13526. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13527. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13528. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13529. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13530. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13531. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13532. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13533. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13534. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13535. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13536. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13537. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13538. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13539. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13540. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13541. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13542. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  13543. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13544. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13545. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13546. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13547. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13548. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13549. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13550. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13551. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13552. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13553. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13554. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13555. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13556. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13557. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13558. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13559. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  13560. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13561. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13562. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13563. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13564. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13565. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13566. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13567. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13568. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13569. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13570. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13571. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13572. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13573. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13574. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13575. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13576. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13577. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  13578. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13579. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13580. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13581. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13582. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13583. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13584. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13585. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13586. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13587. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13588. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13589. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13590. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13591. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13592. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13593. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13594. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13595. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  13596. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13597. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13598. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13599. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13600. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13601. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13602. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13603. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13604. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13605. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13606. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13607. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13608. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13609. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13610. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13611. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13612. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13613. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  13614. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  13615. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  13616. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  13617. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  13618. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  13619. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  13620. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  13621. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13622. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13623. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13624. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13625. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13626. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13627. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13628. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13629. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13630. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13631. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13632. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13633. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13634. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13635. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13636. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13637. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13638. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13639. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13640. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13641. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13642. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13643. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13644. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13645. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13646. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13647. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13648. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13649. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13650. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13651. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13652. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  13653. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13654. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13655. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13656. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13657. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13658. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13659. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13660. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13661. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13662. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13663. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13664. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13665. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13666. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13667. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13668. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13669. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13670. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13671. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13672. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13673. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13674. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13675. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13676. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13677. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13678. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13679. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13680. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13681. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13682. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13683. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13684. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13685. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13686. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13687. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13688. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13689. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13690. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13691. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13692. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13693. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13694. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13695. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13696. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13697. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13698. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13699. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13700. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13701. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13702. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13703. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13704. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13705. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13706. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13707. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13708. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13709. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13710. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13711. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13712. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13713. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13714. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13715. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13716. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13717. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13718. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13719. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13720. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13721. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13722. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13723. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13724. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13725. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13726. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13727. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13728. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13729. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13730. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13731. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13732. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13733. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13734. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13735. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13736. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13737. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13738. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13739. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13740. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13741. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13742. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13743. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13744. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13745. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13746. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13747. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13748. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13749. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13750. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13751. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13752. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13753. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13754. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13755. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13756. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13757. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13758. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13759. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13760. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13761. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13762. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13763. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13764. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13765. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13766. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13767. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13768. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13769. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13770. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13771. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13772. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13773. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13774. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13775. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13776. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13777. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13778. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13779. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13780. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13781. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13782. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13783. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13784. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13785. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13786. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13787. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13788. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13789. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13790. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13791. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13792. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13793. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13794. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13795. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13796. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13797. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13798. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13799. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13800. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13801. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13802. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13803. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13804. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13805. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13806. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13807. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13808. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13809. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13810. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13811. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13812. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13813. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13814. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13815. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13816. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13817. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13818. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13819. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13820. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13821. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13822. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13823. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13824. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13825. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13826. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13827. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13828. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13829. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13830. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13831. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13832. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13833. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13834. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13835. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13836. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13837. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13838. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13839. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13840. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13841. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13842. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13843. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13844. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13845. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13846. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13847. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13848. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13849. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13850. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13851. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13852. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13853. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13854. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13855. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13856. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13857. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13858. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13859. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13860. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13861. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13862. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13863. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13864. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13865. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13866. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13867. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13868. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13869. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13870. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13871. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13872. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13873. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13874. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13875. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13876. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13877. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13878. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13879. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13880. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13881. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13882. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13883. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13884. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13885. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13886. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13887. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13888. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13889. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13890. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13891. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13892. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13893. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13894. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13895. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13896. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13897. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13898. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13899. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13900. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13901. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13902. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13903. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13904. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13905. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13906. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13907. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13908. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  13909. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13910. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13911. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13912. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13913. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13914. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13915. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13916. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13917. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13918. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13919. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13920. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13921. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13922. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13923. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13924. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13925. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13926. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  13927. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13928. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13929. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13930. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13931. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13932. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13933. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13934. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13935. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13936. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13937. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13938. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13939. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13940. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13941. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13942. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13943. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  13944. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13945. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13946. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13947. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13948. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13949. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13950. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13951. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13952. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13953. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13954. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13955. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13956. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13957. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13958. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13959. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13960. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  13961. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13962. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13963. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13964. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13965. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13966. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13967. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13968. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13969. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13970. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13971. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13972. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13973. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13974. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13975. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13976. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13977. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13978. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13979. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13980. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13981. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13982. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13983. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13984. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13985. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13986. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13987. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13988. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13989. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13990. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  13991. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13992. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  13993. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  13994. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  13995. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  13996. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  13997. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  13998. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  13999. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  14000. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  14001. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  14002. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  14003. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  14004. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  14005. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14006. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14007. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14008. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14009. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14010. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14011. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14012. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14013. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14014. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14015. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14016. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14017. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14018. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14019. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14020. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14021. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  14022. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14023. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14024. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14025. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14026. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14027. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14028. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14029. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14030. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14031. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14032. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14033. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14034. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14035. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14036. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14037. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14038. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  14039. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14040. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14041. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14042. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14043. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14044. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14045. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14046. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14047. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14048. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14049. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14050. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14051. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14052. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14053. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14054. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14055. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  14056. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14057. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14058. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14059. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14060. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14061. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14062. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14063. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14064. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14065. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14066. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14067. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14068. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14069. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14070. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14071. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14072. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  14073. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14074. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14075. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14076. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14077. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14078. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14079. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14080. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14081. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14082. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14083. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14084. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14085. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14086. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14087. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14088. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14089. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  14090. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14091. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14092. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14093. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14094. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14095. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  14096. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14097. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14098. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14099. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  14100. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14101. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14102. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14103. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14104. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14105. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  14106. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14107. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14108. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14109. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14110. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14111. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  14112. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14113. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14114. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14115. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14116. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14117. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  14118. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14119. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14120. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14121. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14122. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14123. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  14124. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14125. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14126. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14127. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14128. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14129. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  14130. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14131. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14132. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14133. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14134. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14135. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  14136. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14137. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14138. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14139. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14140. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14141. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  14142. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14143. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14144. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14145. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14146. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14147. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  14148. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14149. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14150. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14151. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14152. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14153. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  14154. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14155. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14156. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14157. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14158. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14159. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  14160. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14161. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14162. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14163. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14164. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14165. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  14166. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14167. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14168. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14169. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14170. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14171. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  14172. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14173. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14174. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14175. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14176. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14177. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  14178. {"HDMI", NULL, "HDMI_DL_HL"},
  14179. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14180. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14181. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14182. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14183. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14184. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14185. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14186. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14187. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14188. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14189. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14190. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  14191. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14192. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14193. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14194. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14195. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14196. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  14197. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14198. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14199. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14200. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14201. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14202. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  14203. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14204. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14205. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14206. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14207. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14208. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  14209. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14210. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14211. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14212. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14213. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  14214. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14215. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14216. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14217. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14218. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  14219. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14220. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  14221. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14222. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14223. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14224. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14225. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14226. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14227. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  14228. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  14229. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  14230. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14231. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14232. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14233. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14234. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14235. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14236. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14237. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14238. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14239. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14240. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14241. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14242. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14243. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14244. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14245. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14246. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14247. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14248. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14249. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14250. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14251. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14252. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14253. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14254. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14255. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14256. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14257. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14258. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14259. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14260. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14261. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14262. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14263. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14264. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14265. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14266. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14267. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14268. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14269. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14270. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14271. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14272. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14273. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14274. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14275. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14276. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14277. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14278. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14279. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14280. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14281. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14282. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14283. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14284. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14285. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14286. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14287. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14288. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14289. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14290. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14291. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14292. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14293. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14294. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14295. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14296. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14297. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14298. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14299. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14300. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14301. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14302. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14303. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  14304. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  14305. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  14306. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  14307. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  14308. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  14309. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  14310. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  14311. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  14312. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  14313. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  14314. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  14315. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  14316. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  14317. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  14318. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  14319. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  14320. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  14321. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  14322. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  14323. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  14324. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  14325. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  14326. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  14327. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  14328. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  14329. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  14330. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  14331. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  14332. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  14333. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  14334. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  14335. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  14336. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  14337. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  14338. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  14339. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  14340. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  14341. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  14342. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  14343. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  14344. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  14345. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  14346. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  14347. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  14348. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  14349. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  14350. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  14351. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  14352. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  14353. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  14354. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  14355. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  14356. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  14357. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  14358. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  14359. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  14360. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  14361. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  14362. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  14363. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  14364. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  14365. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  14366. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  14367. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  14368. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  14369. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  14370. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  14371. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  14372. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  14373. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  14374. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  14375. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  14376. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  14377. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  14378. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  14379. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  14380. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  14381. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  14382. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14383. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14384. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14385. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14386. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14387. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14388. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14389. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14390. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  14391. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14392. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14393. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14394. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14395. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14396. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14397. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14398. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14399. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  14400. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14401. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14402. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14403. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14404. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14405. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14406. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14407. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14408. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  14409. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14410. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14411. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14412. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14413. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14414. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14415. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14416. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14417. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  14418. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14419. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14420. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14421. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14422. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14423. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14424. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14425. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14426. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  14427. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14428. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14429. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14430. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14431. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14432. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14433. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  14434. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14435. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14436. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14437. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14438. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14439. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14440. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  14441. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14442. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14443. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14444. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14445. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14446. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14447. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  14448. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  14449. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  14450. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  14451. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  14452. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  14453. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  14454. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  14455. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  14456. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  14457. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  14458. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  14459. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  14460. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  14461. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  14462. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  14463. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  14464. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  14465. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  14466. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  14467. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  14468. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  14469. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  14470. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  14471. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  14472. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  14473. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  14474. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  14475. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  14476. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  14477. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  14478. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  14479. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  14480. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  14481. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  14482. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  14483. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  14484. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14485. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  14486. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14487. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  14488. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  14489. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  14490. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  14491. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  14492. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  14493. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  14494. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  14495. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  14496. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  14497. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  14498. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14499. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  14500. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14501. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  14502. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  14503. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  14504. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  14505. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  14506. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  14507. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  14508. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  14509. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  14510. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  14511. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  14512. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  14513. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  14514. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  14515. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  14516. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  14517. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  14518. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  14519. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  14520. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  14521. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  14522. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  14523. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  14524. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  14525. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  14526. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  14527. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  14528. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  14529. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  14530. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  14531. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  14532. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  14533. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  14534. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  14535. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  14536. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  14537. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  14538. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  14539. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  14540. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  14541. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  14542. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  14543. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  14544. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  14545. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  14546. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  14547. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  14548. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14549. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14550. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14551. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14552. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14553. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14554. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14555. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14556. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14557. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14558. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14559. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14560. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14561. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14562. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14563. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14564. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14565. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14566. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14567. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14568. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  14569. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14570. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14571. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14572. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14573. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14574. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14575. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14576. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14577. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14578. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14579. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14580. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14581. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14582. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14583. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14584. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14585. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14586. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14587. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14588. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14589. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  14590. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14591. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14592. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14593. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14594. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14595. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14596. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14597. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14598. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14599. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14600. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14601. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14602. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14603. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14604. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14605. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14606. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14607. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14608. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14609. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14610. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  14611. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14612. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14613. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14614. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14615. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14616. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14617. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14618. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14619. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14620. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14621. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14622. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14623. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14624. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14625. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14626. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14627. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14628. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14629. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14630. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14631. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  14632. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14633. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14634. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14635. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14636. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14637. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14638. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14639. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14640. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14641. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14642. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14643. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14644. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14645. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14646. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14647. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14648. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14649. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14650. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14651. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14652. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  14653. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14654. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14655. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14656. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14657. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14658. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14659. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14660. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14661. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14662. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14663. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14664. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14665. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14666. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14667. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14668. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14669. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14670. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14671. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14672. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14673. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  14674. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14675. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14676. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14677. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14678. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14679. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14680. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14681. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14682. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14683. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14684. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14685. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14686. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14687. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14688. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14689. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14690. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14691. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14692. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14693. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14694. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  14695. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14696. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14697. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14698. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14699. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14700. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14701. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14702. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14703. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14704. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14705. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14706. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14707. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14708. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14709. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14710. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14711. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14712. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14713. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14714. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14715. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  14716. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14717. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14718. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14719. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14720. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14721. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14722. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14723. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14724. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14725. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14726. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14727. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14728. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14729. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14730. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14731. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14732. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14733. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14734. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14735. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14736. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  14737. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14738. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14739. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14740. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14741. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14742. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14743. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14744. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14745. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14746. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14747. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14748. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14749. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14750. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14751. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14752. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14753. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14754. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14755. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14756. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14757. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  14758. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14759. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14760. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14761. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14762. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14763. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14764. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14765. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14766. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14767. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14768. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14769. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14770. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14771. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14772. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14773. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14774. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14775. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14776. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14777. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14778. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  14779. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14780. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14781. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14782. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14783. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14784. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14785. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14786. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14787. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14788. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14789. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14790. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14791. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14792. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14793. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14794. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14795. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14796. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14797. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14798. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14799. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  14800. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14801. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14802. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14803. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14804. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14805. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14806. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14807. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14808. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14809. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14810. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14811. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14812. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14813. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14814. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14815. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14816. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14817. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14818. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14819. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14820. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  14821. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14822. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14823. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14824. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14825. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14826. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14827. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14828. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14829. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14830. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14831. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14832. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14833. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14834. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14835. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14836. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14837. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14838. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14839. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14840. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14841. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  14842. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14843. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14844. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14845. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14846. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14847. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14848. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14849. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14850. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14851. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14852. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14853. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14854. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14855. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14856. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14857. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14858. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14859. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14860. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14861. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14862. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  14863. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14864. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14865. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14866. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14867. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14868. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14869. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14870. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14871. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14872. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14873. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14874. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14875. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14876. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14877. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14878. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14879. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14880. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14881. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14882. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14883. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  14884. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14885. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14886. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14887. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14888. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14889. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14890. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14891. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14892. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14893. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14894. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14895. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14896. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14897. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14898. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14899. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14900. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14901. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14902. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14903. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14904. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  14905. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14906. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14907. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14908. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14909. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14910. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14911. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14912. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14913. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14914. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14915. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14916. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14917. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14918. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14919. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14920. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14921. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14922. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14923. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14924. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14925. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  14926. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14927. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14928. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14929. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14930. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14931. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14932. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14933. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14934. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14935. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14936. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14937. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14938. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14939. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14940. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14941. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14942. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14943. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14944. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14945. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14946. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  14947. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14948. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14949. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14950. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14951. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14952. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14953. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14954. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14955. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14956. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14957. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14958. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14959. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14960. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14961. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14962. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14963. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14964. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14965. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14966. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14967. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  14968. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14969. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14970. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14971. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14972. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14973. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14974. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14975. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14976. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14977. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14978. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  14979. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14980. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14981. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14982. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14983. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14984. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14985. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14986. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14987. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14988. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14989. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  14990. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14991. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  14992. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14993. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14994. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14995. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14996. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14997. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  14998. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  14999. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15000. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15001. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15002. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15003. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15004. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15005. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15006. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15007. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  15008. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15009. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15010. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  15011. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  15012. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  15013. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  15014. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  15015. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  15016. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15017. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15018. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15019. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15020. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15021. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  15022. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15023. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15024. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15025. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  15026. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15027. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15028. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15029. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  15030. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15031. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15032. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15033. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  15034. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15035. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15036. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15037. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  15038. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15039. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15040. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15041. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15042. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15043. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15044. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15045. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15046. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15047. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  15048. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15049. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15050. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15051. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15052. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15053. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15054. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15055. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15056. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15057. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  15058. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15059. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15060. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15061. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15062. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15063. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15064. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15065. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15066. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15067. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15068. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15069. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  15070. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15071. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15072. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15073. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15074. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15075. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15076. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15077. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15078. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15079. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15080. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15081. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  15082. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15083. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15084. {"STUB_RX", NULL, "STUB_RX Mixer"},
  15085. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15086. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15087. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  15088. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15089. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15090. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  15091. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15092. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15093. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15094. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15095. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15096. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  15097. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15098. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15099. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15100. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15101. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15102. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  15103. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15104. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15105. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15106. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  15107. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15108. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15109. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  15110. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  15111. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15112. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  15113. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  15114. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  15115. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  15116. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15117. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15118. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15119. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15120. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15121. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15122. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15123. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15124. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15125. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15126. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15127. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15128. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  15129. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15130. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  15131. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15132. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  15133. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15134. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  15135. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15136. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15137. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  15138. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15139. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15140. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15141. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15142. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15143. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15144. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15145. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15146. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15147. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  15148. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15149. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15150. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15151. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15152. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15153. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15154. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15155. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15156. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  15157. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15158. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15159. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15160. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15161. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15162. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15163. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15164. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  15165. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15166. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15167. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15168. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15169. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15170. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15171. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15172. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15173. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15174. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  15175. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15176. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15177. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15178. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15179. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15180. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15181. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15182. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  15183. /* Backend Enablement */
  15184. {"BE_OUT", NULL, "PRI_I2S_RX"},
  15185. {"BE_OUT", NULL, "SEC_I2S_RX"},
  15186. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  15187. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  15188. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  15189. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15190. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  15191. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  15192. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  15193. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  15194. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  15195. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  15196. {"BE_OUT", NULL, "HDMI"},
  15197. {"BE_OUT", NULL, "DISPLAY_PORT"},
  15198. {"BE_OUT", NULL, "SPDIF_RX"},
  15199. {"BE_OUT", NULL, "MI2S_RX"},
  15200. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  15201. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  15202. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  15203. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  15204. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  15205. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  15206. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  15207. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  15208. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  15209. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  15210. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  15211. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15212. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  15213. {"BE_OUT", NULL, "INT_FM_RX"},
  15214. {"BE_OUT", NULL, "PCM_RX"},
  15215. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15216. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15217. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  15218. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  15219. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  15220. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  15221. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15222. {"BE_OUT", NULL, "INT_FM_RX"},
  15223. {"BE_OUT", NULL, "PCM_RX"},
  15224. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15225. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  15226. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  15227. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  15228. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  15229. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  15230. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  15231. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  15232. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  15233. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  15234. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  15235. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  15236. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  15237. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  15238. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  15239. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  15240. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  15241. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  15242. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  15243. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  15244. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  15245. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  15246. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  15247. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  15248. {"PRI_I2S_TX", NULL, "BE_IN"},
  15249. {"MI2S_TX", NULL, "BE_IN"},
  15250. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  15251. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  15252. {"PRI_MI2S_TX", NULL, "BE_IN"},
  15253. {"TERT_MI2S_TX", NULL, "BE_IN"},
  15254. {"INT0_MI2S_TX", NULL, "BE_IN"},
  15255. {"INT2_MI2S_TX", NULL, "BE_IN"},
  15256. {"INT3_MI2S_TX", NULL, "BE_IN"},
  15257. {"INT4_MI2S_TX", NULL, "BE_IN"},
  15258. {"INT5_MI2S_TX", NULL, "BE_IN"},
  15259. {"SEC_MI2S_TX", NULL, "BE_IN"},
  15260. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  15261. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  15262. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  15263. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  15264. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  15265. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  15266. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  15267. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  15268. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  15269. {"USB_AUDIO_TX", NULL, "BE_IN" },
  15270. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  15271. {"INT_FM_TX", NULL, "BE_IN"},
  15272. {"PCM_TX", NULL, "BE_IN"},
  15273. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15274. {"BE_OUT", NULL, "STUB_RX"},
  15275. {"STUB_TX", NULL, "BE_IN"},
  15276. {"STUB_1_TX", NULL, "BE_IN"},
  15277. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15278. {"AUX_PCM_TX", NULL, "BE_IN"},
  15279. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  15280. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  15281. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  15282. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  15283. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  15284. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  15285. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15286. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15287. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  15288. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15289. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15290. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  15291. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  15292. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  15293. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  15294. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  15295. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  15296. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  15297. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  15298. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  15299. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  15300. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  15301. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  15302. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  15303. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  15304. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  15305. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  15306. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  15307. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  15308. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  15309. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  15310. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  15311. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  15312. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  15313. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  15314. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  15315. };
  15316. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  15317. struct snd_pcm_hw_params *params)
  15318. {
  15319. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15320. unsigned int be_id = rtd->dai_link->id;
  15321. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15322. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15323. return -EINVAL;
  15324. }
  15325. mutex_lock(&routing_lock);
  15326. msm_bedais[be_id].sample_rate = params_rate(params);
  15327. msm_bedais[be_id].channel = params_channels(params);
  15328. msm_bedais[be_id].format = params_format(params);
  15329. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  15330. __func__, msm_bedais[be_id].sample_rate,
  15331. msm_bedais[be_id].format, be_id);
  15332. mutex_unlock(&routing_lock);
  15333. return 0;
  15334. }
  15335. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  15336. {
  15337. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15338. unsigned int be_id = rtd->dai_link->id;
  15339. int i, session_type, path_type, topology;
  15340. struct msm_pcm_routing_bdai_data *bedai;
  15341. struct msm_pcm_routing_fdai_data *fdai;
  15342. pr_debug("%s: substream->pcm->id:%s\n",
  15343. __func__, substream->pcm->id);
  15344. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15345. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15346. return -EINVAL;
  15347. }
  15348. bedai = &msm_bedais[be_id];
  15349. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  15350. 0 : 1);
  15351. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15352. path_type = ADM_PATH_PLAYBACK;
  15353. else
  15354. path_type = ADM_PATH_LIVE_REC;
  15355. mutex_lock(&routing_lock);
  15356. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15357. if (!is_mm_lsm_fe_id(i))
  15358. continue;
  15359. fdai = &fe_dai_map[i][session_type];
  15360. if (fdai->strm_id != INVALID_SESSION) {
  15361. int idx;
  15362. int port_id;
  15363. unsigned long copp =
  15364. session_copp_map[i][session_type][be_id];
  15365. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  15366. if (test_bit(idx, &copp))
  15367. break;
  15368. fdai->be_srate = bedai->sample_rate;
  15369. port_id = bedai->port_id;
  15370. topology = adm_get_topology_for_port_copp_idx(port_id,
  15371. idx);
  15372. adm_close(bedai->port_id, fdai->perf_mode, idx);
  15373. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  15374. __func__, copp, i, session_type, be_id,
  15375. topology);
  15376. clear_bit(idx,
  15377. &session_copp_map[i][session_type][be_id]);
  15378. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15379. (bedai->passthr_mode[i] == LEGACY_PCM))
  15380. msm_pcm_routing_deinit_pp(bedai->port_id,
  15381. topology);
  15382. }
  15383. }
  15384. bedai->active = 0;
  15385. bedai->sample_rate = 0;
  15386. bedai->channel = 0;
  15387. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  15388. if (bedai->passthr_mode[i] != LISTEN)
  15389. bedai->passthr_mode[i] = LEGACY_PCM;
  15390. }
  15391. mutex_unlock(&routing_lock);
  15392. return 0;
  15393. }
  15394. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  15395. {
  15396. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15397. unsigned int be_id = rtd->dai_link->id;
  15398. int i, path_type, topology;
  15399. int session_type = INVALID_SESSION;
  15400. struct msm_pcm_routing_bdai_data *bedai;
  15401. u32 channels, sample_rate;
  15402. uint16_t bits_per_sample = 16, voc_path_type;
  15403. struct msm_pcm_routing_fdai_data *fdai;
  15404. u32 session_id;
  15405. struct media_format_info voc_be_media_format;
  15406. bool is_lsm;
  15407. pr_debug("%s: substream->pcm->id:%s\n",
  15408. __func__, substream->pcm->id);
  15409. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15410. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15411. return -EINVAL;
  15412. }
  15413. bedai = &msm_bedais[be_id];
  15414. mutex_lock(&routing_lock);
  15415. if (bedai->active == 1)
  15416. goto done; /* Ignore prepare if back-end already active */
  15417. /* AFE port is not active at this point. However, still
  15418. * go ahead setting active flag under the notion that
  15419. * QDSP6 is able to handle ADM starting before AFE port
  15420. * is started.
  15421. */
  15422. bedai->active = 1;
  15423. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15424. if (!(is_mm_lsm_fe_id(i) &&
  15425. route_check_fe_id_adm_support(i)))
  15426. continue;
  15427. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  15428. if (bedai->passthr_mode[i] != LEGACY_PCM)
  15429. path_type = ADM_PATH_COMPRESSED_RX;
  15430. else
  15431. path_type = ADM_PATH_PLAYBACK;
  15432. session_type = SESSION_TYPE_RX;
  15433. } else {
  15434. path_type = ADM_PATH_LIVE_REC;
  15435. session_type = SESSION_TYPE_TX;
  15436. }
  15437. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  15438. (i <= MSM_FRONTEND_DAI_LSM8);
  15439. fdai = &fe_dai_map[i][session_type];
  15440. if (fdai->strm_id != INVALID_SESSION) {
  15441. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  15442. if (session_type == SESSION_TYPE_TX &&
  15443. fdai->be_srate &&
  15444. (fdai->be_srate != bedai->sample_rate)) {
  15445. pr_debug("%s: flush strm %d diff BE rates\n",
  15446. __func__,
  15447. fdai->strm_id);
  15448. if (fdai->event_info.event_func)
  15449. fdai->event_info.event_func(
  15450. MSM_PCM_RT_EVT_BUF_RECFG,
  15451. fdai->event_info.priv_data);
  15452. fdai->be_srate = 0; /* might not need it */
  15453. }
  15454. bits_per_sample = msm_routing_get_bit_width(
  15455. bedai->format);
  15456. app_type =
  15457. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  15458. if (app_type && is_lsm) {
  15459. app_type_idx =
  15460. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  15461. sample_rate =
  15462. fe_dai_app_type_cfg[i][session_type][be_id]
  15463. .sample_rate;
  15464. bits_per_sample =
  15465. lsm_app_type_cfg[app_type_idx].bit_width;
  15466. } else if (app_type) {
  15467. app_type_idx =
  15468. msm_pcm_routing_get_app_type_idx(app_type);
  15469. sample_rate =
  15470. fe_dai_app_type_cfg[i][session_type]
  15471. [be_id].sample_rate;
  15472. bits_per_sample =
  15473. app_type_cfg[app_type_idx].bit_width;
  15474. } else
  15475. sample_rate = bedai->sample_rate;
  15476. /*
  15477. * check if ADM needs to be configured with different
  15478. * channel mapping than backend
  15479. */
  15480. if (!bedai->adm_override_ch)
  15481. channels = bedai->channel;
  15482. else
  15483. channels = bedai->adm_override_ch;
  15484. acdb_dev_id =
  15485. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  15486. topology = msm_routing_get_adm_topology(i, session_type,
  15487. be_id);
  15488. copp_idx = adm_open(bedai->port_id, path_type,
  15489. sample_rate, channels, topology,
  15490. fdai->perf_mode, bits_per_sample,
  15491. app_type, acdb_dev_id);
  15492. if ((copp_idx < 0) ||
  15493. (copp_idx >= MAX_COPPS_PER_PORT)) {
  15494. pr_err("%s: adm open failed\n", __func__);
  15495. mutex_unlock(&routing_lock);
  15496. return -EINVAL;
  15497. }
  15498. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  15499. __func__, i, session_type, be_id);
  15500. set_bit(copp_idx,
  15501. &session_copp_map[i][session_type][be_id]);
  15502. if (msm_is_resample_needed(
  15503. sample_rate,
  15504. bedai->sample_rate))
  15505. adm_copp_mfc_cfg(
  15506. bedai->port_id, copp_idx,
  15507. bedai->sample_rate);
  15508. msm_pcm_routing_build_matrix(i, session_type, path_type,
  15509. fdai->perf_mode,
  15510. bedai->passthr_mode[i]);
  15511. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15512. (bedai->passthr_mode[i] == LEGACY_PCM))
  15513. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  15514. topology, channels);
  15515. }
  15516. }
  15517. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15518. session_id = msm_pcm_routing_get_voc_sessionid(i);
  15519. if (session_id) {
  15520. pr_debug("%s voice session_id: 0x%x\n", __func__,
  15521. session_id);
  15522. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15523. voc_path_type = RX_PATH;
  15524. else
  15525. voc_path_type = TX_PATH;
  15526. voc_set_route_flag(session_id, voc_path_type, 1);
  15527. memset(&voc_be_media_format, 0,
  15528. sizeof(struct media_format_info));
  15529. voc_be_media_format.port_id = bedai->port_id;
  15530. voc_be_media_format.num_channels = bedai->channel;
  15531. voc_be_media_format.sample_rate = bedai->sample_rate;
  15532. voc_be_media_format.bits_per_sample = bedai->format;
  15533. /* Defaulting this to 1 for voice call usecases */
  15534. voc_be_media_format.channel_mapping[0] = 1;
  15535. voc_set_device_config(session_id, voc_path_type,
  15536. &voc_be_media_format);
  15537. if (voc_get_route_flag(session_id, RX_PATH) &&
  15538. voc_get_route_flag(session_id, TX_PATH))
  15539. voc_enable_device(session_id);
  15540. }
  15541. }
  15542. /* Check if backend is an external ec ref port and set as needed */
  15543. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  15544. memset(&voc_be_media_format, 0,
  15545. sizeof(struct media_format_info));
  15546. /* Get format info for ec ref port from msm_bedais[] */
  15547. voc_be_media_format.port_id = bedai->port_id;
  15548. voc_be_media_format.num_channels = bedai->channel;
  15549. voc_be_media_format.bits_per_sample = bedai->format;
  15550. voc_be_media_format.sample_rate = bedai->sample_rate;
  15551. /* Defaulting this to 1 for voice call usecases */
  15552. voc_be_media_format.channel_mapping[0] = 1;
  15553. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  15554. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  15555. __func__, voc_be_media_format.port_id,
  15556. voc_be_media_format.num_channels,
  15557. voc_be_media_format.bits_per_sample,
  15558. voc_be_media_format.sample_rate);
  15559. }
  15560. done:
  15561. mutex_unlock(&routing_lock);
  15562. return 0;
  15563. }
  15564. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  15565. int fe_id)
  15566. {
  15567. int index, topo_id, be_idx;
  15568. unsigned long pp_config = 0;
  15569. bool mute_on;
  15570. int latency;
  15571. bool compr_passthr_mode = true;
  15572. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  15573. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  15574. pr_err("%s: Device pp params on invalid port %d\n",
  15575. __func__, port_id);
  15576. return -EINVAL;
  15577. }
  15578. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15579. if (port_id == msm_bedais[be_idx].port_id)
  15580. break;
  15581. }
  15582. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15583. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15584. return -EINVAL;
  15585. }
  15586. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15587. if (msm_bedais_pp_params[index].port_id == port_id)
  15588. break;
  15589. }
  15590. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15591. pr_err("%s: Invalid backend pp params index %d\n",
  15592. __func__, index);
  15593. return -EINVAL;
  15594. }
  15595. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  15596. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  15597. pr_err("%s: Invalid passthrough topology 0x%x\n",
  15598. __func__, topo_id);
  15599. return -EINVAL;
  15600. }
  15601. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  15602. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  15603. compr_passthr_mode = false;
  15604. pp_config = msm_bedais_pp_params[index].pp_params_config;
  15605. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  15606. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15607. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  15608. mute_on = msm_bedais_pp_params[index].mute_on;
  15609. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15610. adm_send_compressed_device_mute(port_id,
  15611. copp_idx,
  15612. mute_on);
  15613. }
  15614. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  15615. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15616. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  15617. &pp_config);
  15618. latency = msm_bedais_pp_params[index].latency;
  15619. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15620. adm_send_compressed_device_latency(port_id,
  15621. copp_idx,
  15622. latency);
  15623. }
  15624. return 0;
  15625. }
  15626. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15627. struct snd_ctl_elem_value *ucontrol)
  15628. {
  15629. int pp_id = ucontrol->value.integer.value[0];
  15630. int port_id = 0;
  15631. int index, be_idx, i, topo_id, idx;
  15632. bool mute;
  15633. int latency;
  15634. bool compr_passthr_mode = true;
  15635. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  15636. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15637. port_id = msm_bedais[be_idx].port_id;
  15638. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  15639. break;
  15640. }
  15641. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15642. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15643. return -EINVAL;
  15644. }
  15645. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15646. if (msm_bedais_pp_params[index].port_id == port_id)
  15647. break;
  15648. }
  15649. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15650. pr_err("%s: Invalid pp params backend index %d\n",
  15651. __func__, index);
  15652. return -EINVAL;
  15653. }
  15654. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  15655. MSM_FRONTEND_DAI_MM_SIZE) {
  15656. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  15657. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  15658. compr_passthr_mode = false;
  15659. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15660. unsigned long copp =
  15661. session_copp_map[i]
  15662. [SESSION_TYPE_RX][be_idx];
  15663. if (!test_bit(idx, &copp))
  15664. continue;
  15665. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  15666. idx);
  15667. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  15668. continue;
  15669. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  15670. __func__, port_id, copp, msm_bedais[be_idx].active,
  15671. msm_bedais[be_idx].passthr_mode[i]);
  15672. switch (pp_id) {
  15673. case ADM_PP_PARAM_MUTE_ID:
  15674. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15675. mute = ucontrol->value.integer.value[1] ? true : false;
  15676. msm_bedais_pp_params[index].mute_on = mute;
  15677. set_bit(ADM_PP_PARAM_MUTE_BIT,
  15678. &msm_bedais_pp_params[index].pp_params_config);
  15679. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15680. adm_send_compressed_device_mute(port_id,
  15681. idx, mute);
  15682. break;
  15683. case ADM_PP_PARAM_LATENCY_ID:
  15684. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15685. msm_bedais_pp_params[index].latency =
  15686. ucontrol->value.integer.value[1];
  15687. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  15688. &msm_bedais_pp_params[index].pp_params_config);
  15689. latency = msm_bedais_pp_params[index].latency =
  15690. ucontrol->value.integer.value[1];
  15691. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15692. adm_send_compressed_device_latency(port_id,
  15693. idx, latency);
  15694. break;
  15695. default:
  15696. pr_info("%s, device pp param %d not supported\n",
  15697. __func__, pp_id);
  15698. break;
  15699. }
  15700. }
  15701. }
  15702. return 0;
  15703. }
  15704. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15705. struct snd_ctl_elem_value *ucontrol)
  15706. {
  15707. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  15708. return 0;
  15709. }
  15710. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  15711. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  15712. 0, 3, msm_routing_get_device_pp_params_mixer,
  15713. msm_routing_put_device_pp_params_mixer),
  15714. };
  15715. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  15716. struct snd_ctl_elem_value *ucontrol)
  15717. {
  15718. ucontrol->value.integer.value[0] =
  15719. core_get_license_status(ASM_MEDIA_FMT_APTX);
  15720. pr_debug("%s: status %ld\n", __func__,
  15721. ucontrol->value.integer.value[0]);
  15722. return 0;
  15723. }
  15724. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  15725. struct snd_ctl_elem_value *ucontrol)
  15726. {
  15727. int32_t status = 0;
  15728. status = core_set_license(ucontrol->value.integer.value[0],
  15729. APTX_CLASSIC_DEC_LICENSE_ID);
  15730. pr_debug("%s: status %d\n", __func__, status);
  15731. return status;
  15732. }
  15733. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  15734. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  15735. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  15736. msm_aptx_dec_license_control_put),
  15737. };
  15738. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  15739. struct snd_ctl_elem_info *uinfo)
  15740. {
  15741. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  15742. uinfo->count = sizeof(be_dai_name_table);
  15743. return 0;
  15744. }
  15745. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  15746. unsigned int __user *bytes,
  15747. unsigned int size)
  15748. {
  15749. int i;
  15750. int ret;
  15751. if (size < sizeof(be_dai_name_table)) {
  15752. pr_err("%s: invalid size %d requested, returning\n",
  15753. __func__, size);
  15754. ret = -EINVAL;
  15755. goto done;
  15756. }
  15757. /*
  15758. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  15759. * needed when adding new backends
  15760. */
  15761. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15762. be_dai_name_table[i].be_id = i;
  15763. strlcpy(be_dai_name_table[i].be_name,
  15764. msm_bedais[i].name,
  15765. LPASS_BE_NAME_MAX_LENGTH);
  15766. }
  15767. ret = copy_to_user(bytes, &be_dai_name_table,
  15768. sizeof(be_dai_name_table));
  15769. if (ret) {
  15770. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  15771. ret = -EFAULT;
  15772. }
  15773. done:
  15774. return ret;
  15775. }
  15776. static const struct snd_kcontrol_new
  15777. msm_routing_be_dai_name_table_mixer_controls[] = {
  15778. {
  15779. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  15780. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  15781. .info = msm_routing_be_dai_name_table_info,
  15782. .name = "Backend DAI Name Table",
  15783. .tlv.c = snd_soc_bytes_tlv_callback,
  15784. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  15785. .max = sizeof(be_dai_name_table),
  15786. .get = msm_routing_be_dai_name_table_tlv_get,
  15787. }
  15788. },
  15789. };
  15790. static int msm_routing_stereo_channel_reverse_control_get(
  15791. struct snd_kcontrol *kcontrol,
  15792. struct snd_ctl_elem_value *ucontrol)
  15793. {
  15794. ucontrol->value.integer.value[0] = swap_ch;
  15795. pr_debug("%s: Swap channel value: %ld\n", __func__,
  15796. ucontrol->value.integer.value[0]);
  15797. return 0;
  15798. }
  15799. static int msm_routing_stereo_channel_reverse_control_put(
  15800. struct snd_kcontrol *kcontrol,
  15801. struct snd_ctl_elem_value *ucontrol)
  15802. {
  15803. int i, idx, be_index, port_id;
  15804. int ret = 0;
  15805. unsigned long copp;
  15806. pr_debug("%s Swap channel value:%ld\n", __func__,
  15807. ucontrol->value.integer.value[0]);
  15808. swap_ch = ucontrol->value.integer.value[0];
  15809. mutex_lock(&routing_lock);
  15810. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  15811. port_id = msm_bedais[be_index].port_id;
  15812. if (!msm_bedais[be_index].active)
  15813. continue;
  15814. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  15815. MSM_FRONTEND_DAI_MM_SIZE) {
  15816. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  15817. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15818. if (!test_bit(idx, &copp))
  15819. continue;
  15820. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  15821. __func__, port_id, idx);
  15822. ret = adm_swap_speaker_channels(
  15823. port_id, idx,
  15824. msm_bedais[be_index].sample_rate,
  15825. swap_ch);
  15826. if (ret) {
  15827. pr_err("%s:Swap_channel failed, err=%d\n",
  15828. __func__, ret);
  15829. goto done;
  15830. }
  15831. }
  15832. }
  15833. }
  15834. done:
  15835. mutex_unlock(&routing_lock);
  15836. return ret;
  15837. }
  15838. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  15839. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  15840. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  15841. msm_routing_stereo_channel_reverse_control_put),
  15842. };
  15843. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  15844. .hw_params = msm_pcm_routing_hw_params,
  15845. .close = msm_pcm_routing_close,
  15846. .prepare = msm_pcm_routing_prepare,
  15847. };
  15848. /* Not used but frame seems to require it */
  15849. static int msm_routing_probe(struct snd_soc_platform *platform)
  15850. {
  15851. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  15852. ARRAY_SIZE(msm_qdsp6_widgets));
  15853. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  15854. ARRAY_SIZE(intercon));
  15855. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  15856. snd_soc_add_platform_controls(platform, lsm_controls,
  15857. ARRAY_SIZE(lsm_controls));
  15858. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  15859. ARRAY_SIZE(aanc_slim_0_rx_mux));
  15860. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  15861. ARRAY_SIZE(msm_voc_session_controls));
  15862. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  15863. ARRAY_SIZE(app_type_cfg_controls));
  15864. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  15865. ARRAY_SIZE(lsm_app_type_cfg_controls));
  15866. snd_soc_add_platform_controls(platform, module_cfg_controls,
  15867. ARRAY_SIZE(module_cfg_controls));
  15868. snd_soc_add_platform_controls(platform,
  15869. stereo_to_custom_stereo_controls,
  15870. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  15871. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  15872. ARRAY_SIZE(ec_ref_param_controls));
  15873. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  15874. ARRAY_SIZE(channel_mixer_controls));
  15875. msm_qti_pp_add_controls(platform);
  15876. msm_dts_srs_tm_add_controls(platform);
  15877. msm_dolby_dap_add_controls(platform);
  15878. snd_soc_add_platform_controls(platform,
  15879. use_ds1_or_ds2_controls,
  15880. ARRAY_SIZE(use_ds1_or_ds2_controls));
  15881. snd_soc_add_platform_controls(platform,
  15882. device_pp_params_mixer_controls,
  15883. ARRAY_SIZE(device_pp_params_mixer_controls));
  15884. snd_soc_add_platform_controls(platform,
  15885. msm_routing_be_dai_name_table_mixer_controls,
  15886. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  15887. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  15888. ARRAY_SIZE(msm_source_tracking_controls));
  15889. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  15890. ARRAY_SIZE(adm_channel_config_controls));
  15891. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  15892. ARRAY_SIZE(aptx_dec_license_controls));
  15893. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  15894. ARRAY_SIZE(stereo_channel_reverse_control));
  15895. return 0;
  15896. }
  15897. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  15898. {
  15899. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  15900. }
  15901. void msm_routing_pcm_free(struct snd_pcm *pcm)
  15902. {
  15903. msm_pcm_routing_hwdep_free(pcm);
  15904. }
  15905. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  15906. .ops = &msm_routing_pcm_ops,
  15907. .probe = msm_routing_probe,
  15908. .pcm_new = msm_routing_pcm_new,
  15909. .pcm_free = msm_routing_pcm_free,
  15910. };
  15911. static int msm_routing_pcm_probe(struct platform_device *pdev)
  15912. {
  15913. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  15914. return snd_soc_register_platform(&pdev->dev,
  15915. &msm_soc_routing_platform);
  15916. }
  15917. static int msm_routing_pcm_remove(struct platform_device *pdev)
  15918. {
  15919. snd_soc_unregister_platform(&pdev->dev);
  15920. return 0;
  15921. }
  15922. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  15923. {.compatible = "qcom,msm-pcm-routing"},
  15924. {}
  15925. };
  15926. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  15927. static struct platform_driver msm_routing_pcm_driver = {
  15928. .driver = {
  15929. .name = "msm-pcm-routing",
  15930. .owner = THIS_MODULE,
  15931. .of_match_table = msm_pcm_routing_dt_match,
  15932. },
  15933. .probe = msm_routing_pcm_probe,
  15934. .remove = msm_routing_pcm_remove,
  15935. };
  15936. int msm_routing_check_backend_enabled(int fedai_id)
  15937. {
  15938. int i;
  15939. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  15940. /* bad ID assigned in machine driver */
  15941. pr_err("%s: bad MM ID\n", __func__);
  15942. return 0;
  15943. }
  15944. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15945. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  15946. return msm_bedais[i].active;
  15947. }
  15948. return 0;
  15949. }
  15950. static int get_cal_type_index(int32_t cal_type)
  15951. {
  15952. int ret = -EINVAL;
  15953. switch (cal_type) {
  15954. case ADM_TOPOLOGY_CAL_TYPE:
  15955. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  15956. break;
  15957. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  15958. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  15959. break;
  15960. default:
  15961. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  15962. }
  15963. return ret;
  15964. }
  15965. static int msm_routing_set_cal(int32_t cal_type,
  15966. size_t data_size, void *data)
  15967. {
  15968. int ret = 0;
  15969. int cal_index;
  15970. pr_debug("%s\n", __func__);
  15971. cal_index = get_cal_type_index(cal_type);
  15972. if (cal_index < 0) {
  15973. pr_err("%s: Could not get cal index %d\n",
  15974. __func__, cal_index);
  15975. ret = -EINVAL;
  15976. goto done;
  15977. }
  15978. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  15979. if (ret < 0) {
  15980. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  15981. __func__, ret, cal_type);
  15982. ret = -EINVAL;
  15983. goto done;
  15984. }
  15985. done:
  15986. return ret;
  15987. }
  15988. static void msm_routing_delete_cal_data(void)
  15989. {
  15990. pr_debug("%s\n", __func__);
  15991. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  15992. }
  15993. static int msm_routing_init_cal_data(void)
  15994. {
  15995. int ret = 0;
  15996. struct cal_type_info cal_type_info[] = {
  15997. {{ADM_TOPOLOGY_CAL_TYPE,
  15998. {NULL, NULL, NULL,
  15999. msm_routing_set_cal, NULL, NULL} },
  16000. {NULL, NULL, cal_utils_match_buf_num} },
  16001. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  16002. {NULL, NULL, NULL,
  16003. msm_routing_set_cal, NULL, NULL} },
  16004. {NULL, NULL, cal_utils_match_buf_num} },
  16005. };
  16006. pr_debug("%s\n", __func__);
  16007. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  16008. &cal_type_info[0]);
  16009. if (ret < 0) {
  16010. pr_err("%s: could not create cal type!\n",
  16011. __func__);
  16012. ret = -EINVAL;
  16013. goto err;
  16014. }
  16015. return ret;
  16016. err:
  16017. msm_routing_delete_cal_data();
  16018. return ret;
  16019. }
  16020. int __init msm_soc_routing_platform_init(void)
  16021. {
  16022. mutex_init(&routing_lock);
  16023. if (msm_routing_init_cal_data())
  16024. pr_err("%s: could not init cal data!\n", __func__);
  16025. afe_set_routing_callback(
  16026. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  16027. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16028. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  16029. return platform_driver_register(&msm_routing_pcm_driver);
  16030. }
  16031. void msm_soc_routing_platform_exit(void)
  16032. {
  16033. msm_routing_delete_cal_data();
  16034. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16035. mutex_destroy(&routing_lock);
  16036. platform_driver_unregister(&msm_routing_pcm_driver);
  16037. }
  16038. MODULE_DESCRIPTION("MSM routing platform driver");
  16039. MODULE_LICENSE("GPL v2");