msm-pcm-routing-v2.c 712 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053
  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. adm_set_lsm_port_id(port_id);
  2316. return afe_port_set_mad_type(port_id, mad_type);
  2317. }
  2318. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2319. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2320. adm_override_chs_text);
  2321. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2322. {
  2323. int backend_id;
  2324. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2325. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2326. } else {
  2327. pr_err("%s: unsupported backend id: %s",
  2328. __func__, kcontrol->id.name);
  2329. return -EINVAL;
  2330. }
  2331. return backend_id;
  2332. }
  2333. static int msm_routing_adm_channel_config_get(
  2334. struct snd_kcontrol *kcontrol,
  2335. struct snd_ctl_elem_value *ucontrol)
  2336. {
  2337. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2338. if (backend_id >= 0) {
  2339. mutex_lock(&routing_lock);
  2340. ucontrol->value.integer.value[0] =
  2341. msm_bedais[backend_id].adm_override_ch;
  2342. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2343. ucontrol->value.integer.value[0], backend_id);
  2344. mutex_unlock(&routing_lock);
  2345. }
  2346. return 0;
  2347. }
  2348. static int msm_routing_adm_channel_config_put(
  2349. struct snd_kcontrol *kcontrol,
  2350. struct snd_ctl_elem_value *ucontrol)
  2351. {
  2352. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2353. if (backend_id >= 0) {
  2354. mutex_lock(&routing_lock);
  2355. msm_bedais[backend_id].adm_override_ch =
  2356. ucontrol->value.integer.value[0];
  2357. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2358. __func__, backend_id,
  2359. msm_bedais[backend_id].adm_override_ch);
  2360. mutex_unlock(&routing_lock);
  2361. }
  2362. return 0;
  2363. }
  2364. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2365. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2366. msm_routing_adm_channel_config_get,
  2367. msm_routing_adm_channel_config_put),
  2368. };
  2369. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2370. struct snd_ctl_elem_value *ucontrol)
  2371. {
  2372. mutex_lock(&routing_lock);
  2373. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2374. mutex_unlock(&routing_lock);
  2375. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2376. ucontrol->value.integer.value[0]);
  2377. return 0;
  2378. };
  2379. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2380. struct snd_ctl_elem_value *ucontrol)
  2381. {
  2382. struct aanc_data aanc_info;
  2383. mutex_lock(&routing_lock);
  2384. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2385. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2386. ucontrol->value.integer.value[0]);
  2387. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2388. if (ucontrol->value.integer.value[0] == 0) {
  2389. aanc_info.aanc_active = false;
  2390. aanc_info.aanc_tx_port = 0;
  2391. aanc_info.aanc_rx_port = 0;
  2392. } else {
  2393. aanc_info.aanc_active = true;
  2394. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2395. aanc_info.aanc_tx_port =
  2396. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2397. }
  2398. afe_set_aanc_info(&aanc_info);
  2399. mutex_unlock(&routing_lock);
  2400. return 0;
  2401. };
  2402. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2403. struct snd_ctl_elem_value *ucontrol)
  2404. {
  2405. int idx = 0, shift = 0;
  2406. struct soc_mixer_control *mc =
  2407. (struct soc_mixer_control *)kcontrol->private_value;
  2408. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2409. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2410. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2411. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2412. return -EINVAL;
  2413. }
  2414. if (test_bit(shift,
  2415. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]))
  2416. ucontrol->value.integer.value[0] = 1;
  2417. else
  2418. ucontrol->value.integer.value[0] = 0;
  2419. pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
  2420. ucontrol->value.integer.value[0]);
  2421. return 0;
  2422. }
  2423. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2424. struct snd_ctl_elem_value *ucontrol)
  2425. {
  2426. int idx = 0, shift = 0;
  2427. struct soc_mixer_control *mc =
  2428. (struct soc_mixer_control *)kcontrol->private_value;
  2429. idx = mc->shift/(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2430. shift = mc->shift%(sizeof(msm_bedais[mc->reg].port_sessions[0]) * 8);
  2431. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2432. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2433. return -EINVAL;
  2434. }
  2435. pr_debug("%s: reg 0x%x shift 0x%x val %ld idx %d reminder shift %d\n",
  2436. __func__, mc->reg, mc->shift,
  2437. ucontrol->value.integer.value[0], idx, shift);
  2438. if (ucontrol->value.integer.value[0]) {
  2439. afe_loopback(1, msm_bedais[mc->reg].port_id,
  2440. msm_bedais[mc->shift].port_id);
  2441. set_bit(shift,
  2442. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2443. } else {
  2444. afe_loopback(0, msm_bedais[mc->reg].port_id,
  2445. msm_bedais[mc->shift].port_id);
  2446. clear_bit(shift,
  2447. (unsigned long *)&msm_bedais[mc->reg].port_sessions[idx]);
  2448. }
  2449. return 1;
  2450. }
  2451. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2452. struct snd_ctl_elem_value *ucontrol)
  2453. {
  2454. u16 fe_id = 0;
  2455. fe_id = ((struct soc_mixer_control *)
  2456. kcontrol->private_value)->shift;
  2457. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2458. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2459. return -EINVAL;
  2460. }
  2461. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2462. return 0;
  2463. }
  2464. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. u16 fe_id = 0;
  2468. fe_id = ((struct soc_mixer_control *)
  2469. kcontrol->private_value)->shift;
  2470. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2471. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2472. return -EINVAL;
  2473. }
  2474. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2475. return 1;
  2476. }
  2477. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2478. struct snd_ctl_elem_value *ucontrol)
  2479. {
  2480. u16 fe_id = 0;
  2481. fe_id = ((struct soc_multi_mixer_control *)
  2482. kcontrol->private_value)->shift;
  2483. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2484. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2485. return -EINVAL;
  2486. }
  2487. ucontrol->value.integer.value[0] =
  2488. channel_mixer[fe_id].output_channel;
  2489. return 0;
  2490. }
  2491. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2492. struct snd_ctl_elem_value *ucontrol)
  2493. {
  2494. u16 fe_id = 0;
  2495. fe_id = ((struct soc_multi_mixer_control *)
  2496. kcontrol->private_value)->shift;
  2497. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2498. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2499. return -EINVAL;
  2500. }
  2501. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2502. fe_id,
  2503. (unsigned int)(ucontrol->value.integer.value[0]));
  2504. channel_mixer[fe_id].output_channel =
  2505. (unsigned int)(ucontrol->value.integer.value[0]);
  2506. return 1;
  2507. }
  2508. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2509. /* If new backend is added, need update this array */
  2510. static const char *const be_name[] = {
  2511. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2512. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2513. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2514. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2515. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2516. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2517. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2518. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2519. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2520. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2521. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2522. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2523. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2524. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2525. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2526. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2527. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2528. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2529. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2530. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2531. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2532. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2533. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2534. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2535. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2536. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2537. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2538. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2539. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2540. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2541. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2542. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2543. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2544. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2545. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2546. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2547. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2548. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2549. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2550. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2551. "INT6_MI2S_RX", "INT6_MI2S_TX"
  2552. };
  2553. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2554. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2555. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2556. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2557. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2558. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2559. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2560. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2561. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2562. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2563. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2564. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2565. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2566. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2567. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2568. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2569. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2570. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2571. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2572. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2573. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2574. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2575. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2576. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2577. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2578. unsigned int channels,
  2579. unsigned int items, const char *const names[])
  2580. {
  2581. if (uinfo->value.enumerated.item >= items)
  2582. uinfo->value.enumerated.item = items - 1;
  2583. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2584. sizeof(uinfo->value.enumerated.name),
  2585. "ALSA: too long item name '%s'\n",
  2586. names[uinfo->value.enumerated.item]);
  2587. strlcpy(uinfo->value.enumerated.name,
  2588. names[uinfo->value.enumerated.item],
  2589. sizeof(uinfo->value.enumerated.name));
  2590. return 0;
  2591. }
  2592. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2593. struct snd_ctl_elem_info *uinfo)
  2594. {
  2595. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2596. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2597. uinfo->count = 1;
  2598. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2599. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2600. return 0;
  2601. }
  2602. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2603. struct snd_ctl_elem_value *ucontrol)
  2604. {
  2605. u16 fe_id = 0;
  2606. fe_id = ((struct soc_enum *)
  2607. kcontrol->private_value)->shift_l;
  2608. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2609. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2610. return -EINVAL;
  2611. }
  2612. pr_debug("%s: FE %d %s\n", __func__,
  2613. fe_id,
  2614. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2615. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2616. return 0;
  2617. }
  2618. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2619. struct snd_ctl_elem_value *ucontrol)
  2620. {
  2621. u16 fe_id = 0;
  2622. fe_id = ((struct soc_enum *)
  2623. kcontrol->private_value)->shift_l;
  2624. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2625. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2626. return -EINVAL;
  2627. }
  2628. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2629. pr_debug("%s: %s FE %d\n", __func__,
  2630. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2631. fe_id);
  2632. return 0;
  2633. }
  2634. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2635. struct snd_ctl_elem_info *uinfo)
  2636. {
  2637. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2638. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2639. uinfo->count = 1;
  2640. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2641. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2642. return 0;
  2643. }
  2644. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2645. struct snd_ctl_elem_value *ucontrol)
  2646. {
  2647. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2648. u16 fe_id = 0, in_ch = 0;
  2649. fe_id = e->shift_l;
  2650. in_ch = e->shift_r;
  2651. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2652. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2653. return -EINVAL;
  2654. }
  2655. if (in_ch >= ADM_MAX_CHANNELS) {
  2656. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2657. return -EINVAL;
  2658. }
  2659. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2660. return 1;
  2661. }
  2662. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2663. struct snd_ctl_elem_value *ucontrol)
  2664. {
  2665. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2666. u16 fe_id = 0, in_ch = 0;
  2667. fe_id = e->shift_l;
  2668. in_ch = e->shift_r;
  2669. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2670. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2671. return -EINVAL;
  2672. }
  2673. if (in_ch >= ADM_MAX_CHANNELS) {
  2674. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2675. return -EINVAL;
  2676. }
  2677. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2678. return 1;
  2679. }
  2680. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2681. struct snd_ctl_elem_info *uinfo)
  2682. {
  2683. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2684. uinfo->count = ADM_MAX_CHANNELS;
  2685. uinfo->value.integer.min = 0;
  2686. uinfo->value.integer.max = WEIGHT_0_DB;
  2687. return 0;
  2688. }
  2689. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2690. struct snd_ctl_elem_value *ucontrol)
  2691. {
  2692. u16 fe_id = 0, out_ch = 0;
  2693. int i, weight;
  2694. fe_id = ((struct soc_multi_mixer_control *)
  2695. kcontrol->private_value)->shift;
  2696. out_ch = ((struct soc_multi_mixer_control *)
  2697. kcontrol->private_value)->rshift;
  2698. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2699. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2700. return -EINVAL;
  2701. }
  2702. if (out_ch >= ADM_MAX_CHANNELS) {
  2703. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2704. return -EINVAL;
  2705. }
  2706. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2707. __func__, fe_id,
  2708. ucontrol->value.integer.value[0],
  2709. ucontrol->value.integer.value[1],
  2710. ucontrol->value.integer.value[2],
  2711. ucontrol->value.integer.value[3],
  2712. ucontrol->value.integer.value[4],
  2713. ucontrol->value.integer.value[5],
  2714. ucontrol->value.integer.value[6],
  2715. ucontrol->value.integer.value[7]);
  2716. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2717. weight = ucontrol->value.integer.value[i];
  2718. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2719. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2720. __func__, fe_id, out_ch, i,
  2721. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2722. }
  2723. return 0;
  2724. }
  2725. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2726. struct snd_ctl_elem_value *ucontrol)
  2727. {
  2728. u16 fe_id = 0, out_ch = 0;
  2729. int i;
  2730. fe_id = ((struct soc_multi_mixer_control *)
  2731. kcontrol->private_value)->shift;
  2732. out_ch = ((struct soc_multi_mixer_control *)
  2733. kcontrol->private_value)->rshift;
  2734. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2735. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2736. return -EINVAL;
  2737. }
  2738. if (out_ch >= ADM_MAX_CHANNELS) {
  2739. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2740. return -EINVAL;
  2741. }
  2742. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2743. ucontrol->value.integer.value[i] =
  2744. channel_mixer[fe_id].channel_weight[out_ch][i];
  2745. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2746. __func__, fe_id,
  2747. ucontrol->value.integer.value[0],
  2748. ucontrol->value.integer.value[1],
  2749. ucontrol->value.integer.value[2],
  2750. ucontrol->value.integer.value[3],
  2751. ucontrol->value.integer.value[4],
  2752. ucontrol->value.integer.value[5],
  2753. ucontrol->value.integer.value[6],
  2754. ucontrol->value.integer.value[7]);
  2755. return 0;
  2756. }
  2757. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2758. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2759. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2760. msm_pcm_get_channel_rule_index,
  2761. msm_pcm_put_channel_rule_index),
  2762. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2763. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2764. msm_pcm_get_channel_rule_index,
  2765. msm_pcm_put_channel_rule_index),
  2766. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2767. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2768. msm_pcm_get_channel_rule_index,
  2769. msm_pcm_put_channel_rule_index),
  2770. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2771. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2772. msm_pcm_get_channel_rule_index,
  2773. msm_pcm_put_channel_rule_index),
  2774. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2775. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2776. msm_pcm_get_channel_rule_index,
  2777. msm_pcm_put_channel_rule_index),
  2778. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2779. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2780. msm_pcm_get_channel_rule_index,
  2781. msm_pcm_put_channel_rule_index),
  2782. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2783. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2784. msm_pcm_get_out_chs,
  2785. msm_pcm_put_out_chs),
  2786. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2787. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2788. msm_pcm_get_out_chs,
  2789. msm_pcm_put_out_chs),
  2790. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2791. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2792. msm_pcm_get_out_chs,
  2793. msm_pcm_put_out_chs),
  2794. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2795. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2796. msm_pcm_get_out_chs,
  2797. msm_pcm_put_out_chs),
  2798. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2799. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2800. msm_pcm_get_out_chs,
  2801. msm_pcm_put_out_chs),
  2802. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2803. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2804. msm_pcm_get_out_chs,
  2805. msm_pcm_put_out_chs),
  2806. {
  2807. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2808. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2809. .name = "MultiMedia1 Channel Mixer",
  2810. .info = msm_pcm_channel_mixer_info,
  2811. .get = msm_pcm_channel_mixer_get,
  2812. .put = msm_pcm_channel_mixer_put,
  2813. .private_value = (unsigned long)&(mm1_channel_mux)
  2814. },
  2815. {
  2816. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2817. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2818. .name = "MultiMedia2 Channel Mixer",
  2819. .info = msm_pcm_channel_mixer_info,
  2820. .get = msm_pcm_channel_mixer_get,
  2821. .put = msm_pcm_channel_mixer_put,
  2822. .private_value = (unsigned long)&(mm2_channel_mux)
  2823. },
  2824. {
  2825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2826. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2827. .name = "MultiMedia3 Channel Mixer",
  2828. .info = msm_pcm_channel_mixer_info,
  2829. .get = msm_pcm_channel_mixer_get,
  2830. .put = msm_pcm_channel_mixer_put,
  2831. .private_value = (unsigned long)&(mm3_channel_mux)
  2832. },
  2833. {
  2834. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2835. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2836. .name = "MultiMedia4 Channel Mixer",
  2837. .info = msm_pcm_channel_mixer_info,
  2838. .get = msm_pcm_channel_mixer_get,
  2839. .put = msm_pcm_channel_mixer_put,
  2840. .private_value = (unsigned long)&(mm4_channel_mux)
  2841. },
  2842. {
  2843. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2844. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2845. .name = "MultiMedia1 Output Channel1",
  2846. .info = msm_pcm_channel_weight_info,
  2847. .get = msm_pcm_channel_weight_get,
  2848. .put = msm_pcm_channel_weight_put,
  2849. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2850. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  2851. },
  2852. {
  2853. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2854. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2855. .name = "MultiMedia1 Output Channel2",
  2856. .info = msm_pcm_channel_weight_info,
  2857. .get = msm_pcm_channel_weight_get,
  2858. .put = msm_pcm_channel_weight_put,
  2859. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2860. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  2861. },
  2862. {
  2863. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2864. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2865. .name = "MultiMedia1 Output Channel3",
  2866. .info = msm_pcm_channel_weight_info,
  2867. .get = msm_pcm_channel_weight_get,
  2868. .put = msm_pcm_channel_weight_put,
  2869. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2870. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  2871. },
  2872. {
  2873. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2874. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2875. .name = "MultiMedia1 Output Channel4",
  2876. .info = msm_pcm_channel_weight_info,
  2877. .get = msm_pcm_channel_weight_get,
  2878. .put = msm_pcm_channel_weight_put,
  2879. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2880. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  2881. },
  2882. {
  2883. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2884. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2885. .name = "MultiMedia1 Output Channel5",
  2886. .info = msm_pcm_channel_weight_info,
  2887. .get = msm_pcm_channel_weight_get,
  2888. .put = msm_pcm_channel_weight_put,
  2889. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2890. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  2891. },
  2892. {
  2893. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2894. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2895. .name = "MultiMedia1 Output Channel6",
  2896. .info = msm_pcm_channel_weight_info,
  2897. .get = msm_pcm_channel_weight_get,
  2898. .put = msm_pcm_channel_weight_put,
  2899. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2900. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  2901. },
  2902. {
  2903. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2904. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2905. .name = "MultiMedia1 Output Channel7",
  2906. .info = msm_pcm_channel_weight_info,
  2907. .get = msm_pcm_channel_weight_get,
  2908. .put = msm_pcm_channel_weight_put,
  2909. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2910. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  2911. },
  2912. {
  2913. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2914. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2915. .name = "MultiMedia1 Output Channel8",
  2916. .info = msm_pcm_channel_weight_info,
  2917. .get = msm_pcm_channel_weight_get,
  2918. .put = msm_pcm_channel_weight_put,
  2919. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2920. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  2921. },
  2922. {
  2923. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2924. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2925. .name = "MultiMedia2 Output Channel1",
  2926. .info = msm_pcm_channel_weight_info,
  2927. .get = msm_pcm_channel_weight_get,
  2928. .put = msm_pcm_channel_weight_put,
  2929. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2930. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  2931. },
  2932. {
  2933. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2934. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2935. .name = "MultiMedia2 Output Channel2",
  2936. .info = msm_pcm_channel_weight_info,
  2937. .get = msm_pcm_channel_weight_get,
  2938. .put = msm_pcm_channel_weight_put,
  2939. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2940. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  2941. },
  2942. {
  2943. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2944. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2945. .name = "MultiMedia2 Output Channel3",
  2946. .info = msm_pcm_channel_weight_info,
  2947. .get = msm_pcm_channel_weight_get,
  2948. .put = msm_pcm_channel_weight_put,
  2949. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2950. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  2951. },
  2952. {
  2953. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2954. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2955. .name = "MultiMedia3 Output Channel1",
  2956. .info = msm_pcm_channel_weight_info,
  2957. .get = msm_pcm_channel_weight_get,
  2958. .put = msm_pcm_channel_weight_put,
  2959. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2960. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  2961. },
  2962. {
  2963. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2964. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2965. .name = "MultiMedia3 Output Channel2",
  2966. .info = msm_pcm_channel_weight_info,
  2967. .get = msm_pcm_channel_weight_get,
  2968. .put = msm_pcm_channel_weight_put,
  2969. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  2970. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  2971. },
  2972. {
  2973. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2974. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2975. .name = "MultiMedia1 Channel1",
  2976. .info = msm_pcm_channel_input_be_info,
  2977. .get = msm_pcm_channel_input_be_get,
  2978. .put = msm_pcm_channel_input_be_put,
  2979. .private_value = (unsigned long)&(mm1_ch1_enum)
  2980. },
  2981. {
  2982. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2984. .name = "MultiMedia1 Channel2",
  2985. .info = msm_pcm_channel_input_be_info,
  2986. .get = msm_pcm_channel_input_be_get,
  2987. .put = msm_pcm_channel_input_be_put,
  2988. .private_value = (unsigned long)&(mm1_ch2_enum)
  2989. },
  2990. {
  2991. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2992. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2993. .name = "MultiMedia1 Channel3",
  2994. .info = msm_pcm_channel_input_be_info,
  2995. .get = msm_pcm_channel_input_be_get,
  2996. .put = msm_pcm_channel_input_be_put,
  2997. .private_value = (unsigned long)&(mm1_ch3_enum)
  2998. },
  2999. {
  3000. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3001. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3002. .name = "MultiMedia1 Channel4",
  3003. .info = msm_pcm_channel_input_be_info,
  3004. .get = msm_pcm_channel_input_be_get,
  3005. .put = msm_pcm_channel_input_be_put,
  3006. .private_value = (unsigned long)&(mm1_ch4_enum)
  3007. },
  3008. {
  3009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3011. .name = "MultiMedia1 Channel5",
  3012. .info = msm_pcm_channel_input_be_info,
  3013. .get = msm_pcm_channel_input_be_get,
  3014. .put = msm_pcm_channel_input_be_put,
  3015. .private_value = (unsigned long)&(mm1_ch5_enum)
  3016. },
  3017. {
  3018. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3019. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3020. .name = "MultiMedia1 Channel6",
  3021. .info = msm_pcm_channel_input_be_info,
  3022. .get = msm_pcm_channel_input_be_get,
  3023. .put = msm_pcm_channel_input_be_put,
  3024. .private_value = (unsigned long)&(mm1_ch6_enum)
  3025. },
  3026. {
  3027. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3028. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3029. .name = "MultiMedia1 Channel7",
  3030. .info = msm_pcm_channel_input_be_info,
  3031. .get = msm_pcm_channel_input_be_get,
  3032. .put = msm_pcm_channel_input_be_put,
  3033. .private_value = (unsigned long)&(mm1_ch7_enum)
  3034. },
  3035. {
  3036. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3037. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3038. .name = "MultiMedia1 Channel8",
  3039. .info = msm_pcm_channel_input_be_info,
  3040. .get = msm_pcm_channel_input_be_get,
  3041. .put = msm_pcm_channel_input_be_put,
  3042. .private_value = (unsigned long)&(mm1_ch8_enum)
  3043. },
  3044. };
  3045. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3046. struct snd_ctl_elem_value *ucontrol)
  3047. {
  3048. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3049. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3050. ucontrol->value.integer.value[0]);
  3051. return 0;
  3052. }
  3053. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3054. struct snd_ctl_elem_value *ucontrol)
  3055. {
  3056. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3057. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3058. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3059. return 0;
  3060. }
  3061. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3062. "Four", "Five", "Six", "Seven", "Eight"};
  3063. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3064. struct snd_ctl_elem_value *ucontrol)
  3065. {
  3066. switch (msm_ec_ref_bit_format) {
  3067. case SNDRV_PCM_FORMAT_S24_LE:
  3068. ucontrol->value.integer.value[0] = 2;
  3069. break;
  3070. case SNDRV_PCM_FORMAT_S16_LE:
  3071. ucontrol->value.integer.value[0] = 1;
  3072. break;
  3073. default:
  3074. ucontrol->value.integer.value[0] = 0;
  3075. break;
  3076. }
  3077. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3078. __func__, ucontrol->value.integer.value[0]);
  3079. return 0;
  3080. }
  3081. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3082. struct snd_ctl_elem_value *ucontrol)
  3083. {
  3084. u16 bit_width = 0;
  3085. switch (ucontrol->value.integer.value[0]) {
  3086. case 2:
  3087. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3088. break;
  3089. case 1:
  3090. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3091. break;
  3092. default:
  3093. msm_ec_ref_bit_format = 0;
  3094. break;
  3095. }
  3096. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3097. bit_width = 16;
  3098. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3099. bit_width = 24;
  3100. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3101. __func__, msm_ec_ref_bit_format);
  3102. adm_ec_ref_rx_bit_width(bit_width);
  3103. return 0;
  3104. }
  3105. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3106. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3107. struct snd_ctl_elem_value *ucontrol)
  3108. {
  3109. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3110. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3111. __func__, ucontrol->value.integer.value[0]);
  3112. return 0;
  3113. }
  3114. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3115. struct snd_ctl_elem_value *ucontrol)
  3116. {
  3117. switch (ucontrol->value.integer.value[0]) {
  3118. case 0:
  3119. msm_ec_ref_sampling_rate = 0;
  3120. break;
  3121. case 1:
  3122. msm_ec_ref_sampling_rate = 8000;
  3123. break;
  3124. case 2:
  3125. msm_ec_ref_sampling_rate = 16000;
  3126. break;
  3127. case 3:
  3128. msm_ec_ref_sampling_rate = 32000;
  3129. break;
  3130. case 4:
  3131. msm_ec_ref_sampling_rate = 44100;
  3132. break;
  3133. case 5:
  3134. msm_ec_ref_sampling_rate = 48000;
  3135. break;
  3136. case 6:
  3137. msm_ec_ref_sampling_rate = 96000;
  3138. break;
  3139. case 7:
  3140. msm_ec_ref_sampling_rate = 192000;
  3141. break;
  3142. case 8:
  3143. msm_ec_ref_sampling_rate = 384000;
  3144. break;
  3145. default:
  3146. msm_ec_ref_sampling_rate = 48000;
  3147. break;
  3148. }
  3149. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3150. __func__, msm_ec_ref_sampling_rate);
  3151. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3152. return 0;
  3153. }
  3154. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3155. "32000", "44100", "48000", "96000", "192000", "384000"};
  3156. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3157. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3158. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3159. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3160. };
  3161. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3162. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3163. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3164. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3165. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3166. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3167. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3168. };
  3169. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3170. struct snd_ctl_elem_value *ucontrol)
  3171. {
  3172. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3173. mutex_lock(&routing_lock);
  3174. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3175. mutex_unlock(&routing_lock);
  3176. return 0;
  3177. }
  3178. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3179. struct snd_ctl_elem_value *ucontrol)
  3180. {
  3181. int ec_ref_port_id;
  3182. struct snd_soc_dapm_widget *widget =
  3183. snd_soc_dapm_kcontrol_widget(kcontrol);
  3184. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3185. struct snd_soc_dapm_update *update = NULL;
  3186. mutex_lock(&routing_lock);
  3187. switch (ucontrol->value.integer.value[0]) {
  3188. case 0:
  3189. msm_route_ec_ref_rx = 0;
  3190. ec_ref_port_id = AFE_PORT_INVALID;
  3191. break;
  3192. case 1:
  3193. msm_route_ec_ref_rx = 1;
  3194. ec_ref_port_id = SLIMBUS_0_RX;
  3195. break;
  3196. case 2:
  3197. msm_route_ec_ref_rx = 2;
  3198. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3199. break;
  3200. case 3:
  3201. msm_route_ec_ref_rx = 3;
  3202. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3203. break;
  3204. case 4:
  3205. msm_route_ec_ref_rx = 4;
  3206. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3207. break;
  3208. case 5:
  3209. msm_route_ec_ref_rx = 5;
  3210. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3211. break;
  3212. case 6:
  3213. msm_route_ec_ref_rx = 6;
  3214. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3215. break;
  3216. case 7:
  3217. msm_route_ec_ref_rx = 7;
  3218. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3219. break;
  3220. case 9:
  3221. msm_route_ec_ref_rx = 9;
  3222. ec_ref_port_id = SLIMBUS_5_RX;
  3223. break;
  3224. case 10:
  3225. msm_route_ec_ref_rx = 10;
  3226. ec_ref_port_id = SLIMBUS_1_TX;
  3227. break;
  3228. case 11:
  3229. msm_route_ec_ref_rx = 11;
  3230. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3231. break;
  3232. case 12:
  3233. msm_route_ec_ref_rx = 12;
  3234. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3235. break;
  3236. case 13:
  3237. msm_route_ec_ref_rx = 13;
  3238. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3239. break;
  3240. case 14:
  3241. msm_route_ec_ref_rx = 14;
  3242. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3243. break;
  3244. case 15:
  3245. msm_route_ec_ref_rx = 15;
  3246. ec_ref_port_id = SLIMBUS_6_RX;
  3247. break;
  3248. case 16:
  3249. msm_route_ec_ref_rx = 16;
  3250. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3251. break;
  3252. case 17:
  3253. msm_route_ec_ref_rx = 17;
  3254. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3255. break;
  3256. case 18:
  3257. msm_route_ec_ref_rx = 18;
  3258. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3259. break;
  3260. case 19:
  3261. msm_route_ec_ref_rx = 19;
  3262. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3263. break;
  3264. case 20:
  3265. msm_route_ec_ref_rx = 20;
  3266. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3267. break;
  3268. case 21:
  3269. msm_route_ec_ref_rx = 21;
  3270. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3271. break;
  3272. case 22:
  3273. msm_route_ec_ref_rx = 22;
  3274. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3275. break;
  3276. case 23:
  3277. msm_route_ec_ref_rx = 23;
  3278. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3279. break;
  3280. default:
  3281. msm_route_ec_ref_rx = 0; /* NONE */
  3282. pr_err("%s EC ref rx %ld not valid\n",
  3283. __func__, ucontrol->value.integer.value[0]);
  3284. ec_ref_port_id = AFE_PORT_INVALID;
  3285. break;
  3286. }
  3287. adm_ec_ref_rx_id(ec_ref_port_id);
  3288. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3289. __func__, msm_route_ec_ref_rx);
  3290. mutex_unlock(&routing_lock);
  3291. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3292. msm_route_ec_ref_rx, e, update);
  3293. return 0;
  3294. }
  3295. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3296. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3297. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3298. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3299. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3300. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3301. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT"};
  3302. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3303. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3304. };
  3305. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3306. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3307. msm_route_ec_ref_rx_enum[0],
  3308. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3309. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3310. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3311. msm_route_ec_ref_rx_enum[0],
  3312. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3313. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3314. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3315. msm_route_ec_ref_rx_enum[0],
  3316. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3317. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3318. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3319. msm_route_ec_ref_rx_enum[0],
  3320. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3321. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3322. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3323. msm_route_ec_ref_rx_enum[0],
  3324. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3325. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3326. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3327. msm_route_ec_ref_rx_enum[0],
  3328. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3329. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3330. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3331. msm_route_ec_ref_rx_enum[0],
  3332. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3333. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3334. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3335. msm_route_ec_ref_rx_enum[0],
  3336. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3337. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3338. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3339. msm_route_ec_ref_rx_enum[0],
  3340. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3341. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3342. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3343. msm_route_ec_ref_rx_enum[0],
  3344. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3345. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3346. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3347. msm_route_ec_ref_rx_enum[0],
  3348. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3349. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3350. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3351. msm_route_ec_ref_rx_enum[0],
  3352. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3353. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3354. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3355. msm_route_ec_ref_rx_enum[0],
  3356. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3357. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3358. struct snd_ctl_elem_value *ucontrol)
  3359. {
  3360. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3361. mutex_lock(&routing_lock);
  3362. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3363. mutex_unlock(&routing_lock);
  3364. return 0;
  3365. }
  3366. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3367. struct snd_ctl_elem_value *ucontrol)
  3368. {
  3369. struct snd_soc_dapm_widget *widget =
  3370. snd_soc_dapm_kcontrol_widget(kcontrol);
  3371. int mux = ucontrol->value.enumerated.item[0];
  3372. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3373. int ret = 1;
  3374. bool state = true;
  3375. uint16_t ext_ec_ref_port_id;
  3376. struct snd_soc_dapm_update *update = NULL;
  3377. if (mux >= e->items) {
  3378. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3379. return -EINVAL;
  3380. }
  3381. mutex_lock(&routing_lock);
  3382. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3383. switch (msm_route_ext_ec_ref) {
  3384. case EXT_EC_REF_PRI_MI2S_TX:
  3385. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3386. break;
  3387. case EXT_EC_REF_SEC_MI2S_TX:
  3388. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3389. break;
  3390. case EXT_EC_REF_TERT_MI2S_TX:
  3391. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3392. break;
  3393. case EXT_EC_REF_QUAT_MI2S_TX:
  3394. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3395. break;
  3396. case EXT_EC_REF_QUIN_MI2S_TX:
  3397. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3398. break;
  3399. case EXT_EC_REF_SLIM_1_TX:
  3400. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3401. break;
  3402. case EXT_EC_REF_NONE:
  3403. default:
  3404. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3405. state = false;
  3406. break;
  3407. }
  3408. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3409. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3410. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3411. mutex_unlock(&routing_lock);
  3412. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3413. update);
  3414. } else {
  3415. ret = -EINVAL;
  3416. mutex_unlock(&routing_lock);
  3417. }
  3418. return ret;
  3419. }
  3420. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3421. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3422. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3423. "SLIM_1_TX"};
  3424. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3425. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3426. };
  3427. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3428. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3429. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3430. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3431. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX,
  3432. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3433. msm_routing_put_audio_mixer),
  3434. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
  3435. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3436. msm_routing_put_audio_mixer),
  3437. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
  3438. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3439. msm_routing_put_audio_mixer),
  3440. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
  3441. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3442. msm_routing_put_audio_mixer),
  3443. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
  3444. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3445. msm_routing_put_audio_mixer),
  3446. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
  3447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3448. msm_routing_put_audio_mixer),
  3449. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3451. msm_routing_put_audio_mixer),
  3452. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
  3453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3454. msm_routing_put_audio_mixer),
  3455. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
  3456. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3457. msm_routing_put_audio_mixer),
  3458. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
  3459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3460. msm_routing_put_audio_mixer),
  3461. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3463. msm_routing_put_audio_mixer),
  3464. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
  3465. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3466. msm_routing_put_audio_mixer),
  3467. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
  3468. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3469. msm_routing_put_audio_mixer),
  3470. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
  3471. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3472. msm_routing_put_audio_mixer),
  3473. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3475. msm_routing_put_audio_mixer),
  3476. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
  3477. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3478. msm_routing_put_audio_mixer),
  3479. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_I2S_RX,
  3480. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3481. msm_routing_put_audio_mixer),
  3482. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_I2S_RX,
  3483. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3484. msm_routing_put_audio_mixer),
  3485. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_I2S_RX,
  3486. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3487. msm_routing_put_audio_mixer),
  3488. };
  3489. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3490. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX,
  3491. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3492. msm_routing_put_audio_mixer),
  3493. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
  3494. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3495. msm_routing_put_audio_mixer),
  3496. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
  3497. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3498. msm_routing_put_audio_mixer),
  3499. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
  3500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3501. msm_routing_put_audio_mixer),
  3502. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
  3503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3504. msm_routing_put_audio_mixer),
  3505. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
  3506. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3507. msm_routing_put_audio_mixer),
  3508. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
  3509. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3510. msm_routing_put_audio_mixer),
  3511. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
  3512. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3513. msm_routing_put_audio_mixer),
  3514. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
  3515. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3516. msm_routing_put_audio_mixer),
  3517. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
  3518. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3519. msm_routing_put_audio_mixer),
  3520. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
  3521. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3522. msm_routing_put_audio_mixer),
  3523. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
  3524. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3525. msm_routing_put_audio_mixer),
  3526. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
  3527. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3528. msm_routing_put_audio_mixer),
  3529. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
  3530. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3531. msm_routing_put_audio_mixer),
  3532. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
  3533. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3534. msm_routing_put_audio_mixer),
  3535. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
  3536. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3537. msm_routing_put_audio_mixer),
  3538. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_I2S_RX,
  3539. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3540. msm_routing_put_audio_mixer),
  3541. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_I2S_RX,
  3542. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3543. msm_routing_put_audio_mixer),
  3544. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_I2S_RX,
  3545. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3546. msm_routing_put_audio_mixer),
  3547. };
  3548. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3549. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX,
  3550. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3551. msm_routing_put_audio_mixer),
  3552. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
  3553. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3554. msm_routing_put_audio_mixer),
  3555. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
  3556. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3557. msm_routing_put_audio_mixer),
  3558. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
  3559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3560. msm_routing_put_audio_mixer),
  3561. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
  3562. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3563. msm_routing_put_audio_mixer),
  3564. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
  3565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3566. msm_routing_put_audio_mixer),
  3567. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
  3568. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3569. msm_routing_put_audio_mixer),
  3570. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
  3571. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3572. msm_routing_put_audio_mixer),
  3573. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
  3574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3575. msm_routing_put_audio_mixer),
  3576. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
  3577. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3578. msm_routing_put_audio_mixer),
  3579. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
  3580. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3581. msm_routing_put_audio_mixer),
  3582. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
  3583. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3584. msm_routing_put_audio_mixer),
  3585. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
  3586. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3587. msm_routing_put_audio_mixer),
  3588. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
  3589. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3590. msm_routing_put_audio_mixer),
  3591. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
  3592. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3593. msm_routing_put_audio_mixer),
  3594. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
  3595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3596. msm_routing_put_audio_mixer),
  3597. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SPDIF_RX,
  3598. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3599. msm_routing_put_audio_mixer),
  3600. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SPDIF_RX,
  3601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3602. msm_routing_put_audio_mixer),
  3603. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SPDIF_RX,
  3604. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3605. msm_routing_put_audio_mixer),
  3606. };
  3607. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3608. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3610. msm_routing_put_audio_mixer),
  3611. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3612. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3613. msm_routing_put_audio_mixer),
  3614. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3615. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3616. msm_routing_put_audio_mixer),
  3617. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3618. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3619. msm_routing_put_audio_mixer),
  3620. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3622. msm_routing_put_audio_mixer),
  3623. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3625. msm_routing_put_audio_mixer),
  3626. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3627. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3628. msm_routing_put_audio_mixer),
  3629. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3630. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3631. msm_routing_put_audio_mixer),
  3632. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3633. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3634. msm_routing_put_audio_mixer),
  3635. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3637. msm_routing_put_audio_mixer),
  3638. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3639. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3640. msm_routing_put_audio_mixer),
  3641. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3643. msm_routing_put_audio_mixer),
  3644. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3645. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3646. msm_routing_put_audio_mixer),
  3647. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3648. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3649. msm_routing_put_audio_mixer),
  3650. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3651. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3652. msm_routing_put_audio_mixer),
  3653. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3655. msm_routing_put_audio_mixer),
  3656. };
  3657. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3658. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3660. msm_routing_put_audio_mixer),
  3661. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3662. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3663. msm_routing_put_audio_mixer),
  3664. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3665. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3666. msm_routing_put_audio_mixer),
  3667. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3668. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3669. msm_routing_put_audio_mixer),
  3670. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3672. msm_routing_put_audio_mixer),
  3673. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3674. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3675. msm_routing_put_audio_mixer),
  3676. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3677. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3678. msm_routing_put_audio_mixer),
  3679. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3680. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3681. msm_routing_put_audio_mixer),
  3682. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3683. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3684. msm_routing_put_audio_mixer),
  3685. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3686. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3687. msm_routing_put_audio_mixer),
  3688. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3689. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3690. msm_routing_put_audio_mixer),
  3691. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3692. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3693. msm_routing_put_audio_mixer),
  3694. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3695. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3696. msm_routing_put_audio_mixer),
  3697. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3698. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3699. msm_routing_put_audio_mixer),
  3700. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3702. msm_routing_put_audio_mixer),
  3703. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3705. msm_routing_put_audio_mixer),
  3706. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3707. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3708. msm_routing_put_audio_mixer),
  3709. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3710. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3711. msm_routing_put_audio_mixer),
  3712. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3713. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3714. msm_routing_put_audio_mixer),
  3715. };
  3716. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  3717. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3718. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3719. msm_routing_put_audio_mixer),
  3720. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3721. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3722. msm_routing_put_audio_mixer),
  3723. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3724. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3725. msm_routing_put_audio_mixer),
  3726. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3728. msm_routing_put_audio_mixer),
  3729. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3730. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3731. msm_routing_put_audio_mixer),
  3732. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3733. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3734. msm_routing_put_audio_mixer),
  3735. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3740. msm_routing_put_audio_mixer),
  3741. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3742. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3743. msm_routing_put_audio_mixer),
  3744. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3745. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3746. msm_routing_put_audio_mixer),
  3747. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3748. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3749. msm_routing_put_audio_mixer),
  3750. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3752. msm_routing_put_audio_mixer),
  3753. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3754. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3755. msm_routing_put_audio_mixer),
  3756. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3757. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3758. msm_routing_put_audio_mixer),
  3759. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3760. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3761. msm_routing_put_audio_mixer),
  3762. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3764. msm_routing_put_audio_mixer),
  3765. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3766. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3767. msm_routing_put_audio_mixer),
  3768. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  3772. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3773. msm_routing_put_audio_mixer),
  3774. };
  3775. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  3776. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX,
  3777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3778. msm_routing_put_audio_mixer),
  3779. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
  3780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3781. msm_routing_put_audio_mixer),
  3782. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
  3783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3784. msm_routing_put_audio_mixer),
  3785. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
  3786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3787. msm_routing_put_audio_mixer),
  3788. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
  3789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3790. msm_routing_put_audio_mixer),
  3791. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
  3792. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3793. msm_routing_put_audio_mixer),
  3794. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
  3795. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3796. msm_routing_put_audio_mixer),
  3797. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
  3801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3802. msm_routing_put_audio_mixer),
  3803. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
  3804. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3805. msm_routing_put_audio_mixer),
  3806. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
  3807. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3808. msm_routing_put_audio_mixer),
  3809. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
  3810. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3811. msm_routing_put_audio_mixer),
  3812. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
  3813. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3814. msm_routing_put_audio_mixer),
  3815. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
  3816. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3817. msm_routing_put_audio_mixer),
  3818. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
  3819. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3820. msm_routing_put_audio_mixer),
  3821. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_MI2S_RX,
  3825. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3826. msm_routing_put_audio_mixer),
  3827. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_MI2S_RX,
  3828. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3829. msm_routing_put_audio_mixer),
  3830. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_MI2S_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. };
  3834. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  3835. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3836. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3837. msm_routing_put_audio_mixer),
  3838. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3839. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3840. msm_routing_put_audio_mixer),
  3841. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3842. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3843. msm_routing_put_audio_mixer),
  3844. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3845. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3846. msm_routing_put_audio_mixer),
  3847. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3849. msm_routing_put_audio_mixer),
  3850. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3851. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3852. msm_routing_put_audio_mixer),
  3853. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3854. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3855. msm_routing_put_audio_mixer),
  3856. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3858. msm_routing_put_audio_mixer),
  3859. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3860. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3861. msm_routing_put_audio_mixer),
  3862. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3864. msm_routing_put_audio_mixer),
  3865. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3866. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3867. msm_routing_put_audio_mixer),
  3868. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3869. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3870. msm_routing_put_audio_mixer),
  3871. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3872. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3873. msm_routing_put_audio_mixer),
  3874. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3875. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3876. msm_routing_put_audio_mixer),
  3877. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3878. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3879. msm_routing_put_audio_mixer),
  3880. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3881. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3882. msm_routing_put_audio_mixer),
  3883. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3887. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3888. msm_routing_put_audio_mixer),
  3889. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  3890. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3891. msm_routing_put_audio_mixer),
  3892. };
  3893. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  3894. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3896. msm_routing_put_audio_mixer),
  3897. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3898. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3899. msm_routing_put_audio_mixer),
  3900. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3902. msm_routing_put_audio_mixer),
  3903. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3904. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3905. msm_routing_put_audio_mixer),
  3906. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3908. msm_routing_put_audio_mixer),
  3909. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3910. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3911. msm_routing_put_audio_mixer),
  3912. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3913. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3914. msm_routing_put_audio_mixer),
  3915. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3916. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3917. msm_routing_put_audio_mixer),
  3918. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3919. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3920. msm_routing_put_audio_mixer),
  3921. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3922. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3923. msm_routing_put_audio_mixer),
  3924. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3925. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3926. msm_routing_put_audio_mixer),
  3927. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3928. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3929. msm_routing_put_audio_mixer),
  3930. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3931. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3932. msm_routing_put_audio_mixer),
  3933. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3934. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3935. msm_routing_put_audio_mixer),
  3936. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3941. msm_routing_put_audio_mixer),
  3942. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3943. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3944. msm_routing_put_audio_mixer),
  3945. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3946. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3947. msm_routing_put_audio_mixer),
  3948. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. };
  3952. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  3953. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3958. msm_routing_put_audio_mixer),
  3959. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3960. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3961. msm_routing_put_audio_mixer),
  3962. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3963. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3964. msm_routing_put_audio_mixer),
  3965. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3969. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3970. msm_routing_put_audio_mixer),
  3971. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3972. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3973. msm_routing_put_audio_mixer),
  3974. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3976. msm_routing_put_audio_mixer),
  3977. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3981. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3982. msm_routing_put_audio_mixer),
  3983. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3984. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3985. msm_routing_put_audio_mixer),
  3986. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3987. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3988. msm_routing_put_audio_mixer),
  3989. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3993. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3994. msm_routing_put_audio_mixer),
  3995. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3996. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3997. msm_routing_put_audio_mixer),
  3998. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  3999. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4000. msm_routing_put_audio_mixer),
  4001. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. };
  4005. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4006. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. };
  4010. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4011. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4013. msm_routing_put_audio_mixer),
  4014. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4021. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4022. msm_routing_put_audio_mixer),
  4023. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4024. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4025. msm_routing_put_audio_mixer),
  4026. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4030. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4031. msm_routing_put_audio_mixer),
  4032. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4034. msm_routing_put_audio_mixer),
  4035. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4039. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4040. msm_routing_put_audio_mixer),
  4041. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4042. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4043. msm_routing_put_audio_mixer),
  4044. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4045. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4046. msm_routing_put_audio_mixer),
  4047. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4051. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4052. msm_routing_put_audio_mixer),
  4053. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4054. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4055. msm_routing_put_audio_mixer),
  4056. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4057. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4058. msm_routing_put_audio_mixer),
  4059. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4066. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4067. msm_routing_put_audio_mixer),
  4068. };
  4069. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4070. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4072. msm_routing_put_audio_mixer),
  4073. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4074. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4075. msm_routing_put_audio_mixer),
  4076. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4077. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4078. msm_routing_put_audio_mixer),
  4079. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4083. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4084. msm_routing_put_audio_mixer),
  4085. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4087. msm_routing_put_audio_mixer),
  4088. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4090. msm_routing_put_audio_mixer),
  4091. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4092. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4093. msm_routing_put_audio_mixer),
  4094. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4096. msm_routing_put_audio_mixer),
  4097. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4099. msm_routing_put_audio_mixer),
  4100. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4101. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4102. msm_routing_put_audio_mixer),
  4103. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4104. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4105. msm_routing_put_audio_mixer),
  4106. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4107. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4108. msm_routing_put_audio_mixer),
  4109. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4110. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4111. msm_routing_put_audio_mixer),
  4112. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4113. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4114. msm_routing_put_audio_mixer),
  4115. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4116. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4117. msm_routing_put_audio_mixer),
  4118. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4119. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4120. msm_routing_put_audio_mixer),
  4121. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_PRI_MI2S_RX,
  4125. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4126. msm_routing_put_audio_mixer),
  4127. };
  4128. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4129. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4133. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4134. msm_routing_put_audio_mixer),
  4135. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4136. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4137. msm_routing_put_audio_mixer),
  4138. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4140. msm_routing_put_audio_mixer),
  4141. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4145. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4146. msm_routing_put_audio_mixer),
  4147. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4148. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4149. msm_routing_put_audio_mixer),
  4150. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4152. msm_routing_put_audio_mixer),
  4153. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4154. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4155. msm_routing_put_audio_mixer),
  4156. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4157. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4158. msm_routing_put_audio_mixer),
  4159. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4160. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4161. msm_routing_put_audio_mixer),
  4162. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4163. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4164. msm_routing_put_audio_mixer),
  4165. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4170. msm_routing_put_audio_mixer),
  4171. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4172. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4173. msm_routing_put_audio_mixer),
  4174. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT0_MI2S_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. };
  4178. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4179. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4180. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4181. msm_routing_put_audio_mixer),
  4182. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4189. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4190. msm_routing_put_audio_mixer),
  4191. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4198. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4199. msm_routing_put_audio_mixer),
  4200. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4202. msm_routing_put_audio_mixer),
  4203. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4210. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4211. msm_routing_put_audio_mixer),
  4212. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4213. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4214. msm_routing_put_audio_mixer),
  4215. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4219. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4220. msm_routing_put_audio_mixer),
  4221. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4222. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4223. msm_routing_put_audio_mixer),
  4224. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT4_MI2S_RX,
  4225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4226. msm_routing_put_audio_mixer),
  4227. };
  4228. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4229. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
  4230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4231. msm_routing_put_audio_mixer),
  4232. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
  4233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4234. msm_routing_put_audio_mixer),
  4235. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
  4242. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4243. msm_routing_put_audio_mixer),
  4244. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
  4245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4246. msm_routing_put_audio_mixer),
  4247. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
  4251. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4252. msm_routing_put_audio_mixer),
  4253. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
  4254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4255. msm_routing_put_audio_mixer),
  4256. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
  4260. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4261. msm_routing_put_audio_mixer),
  4262. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
  4263. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4264. msm_routing_put_audio_mixer),
  4265. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
  4266. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4267. msm_routing_put_audio_mixer),
  4268. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
  4275. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4276. msm_routing_put_audio_mixer),
  4277. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_HDMI_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_HDMI_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_HDMI_RX,
  4284. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4285. msm_routing_put_audio_mixer),
  4286. };
  4287. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4288. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4292. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4293. msm_routing_put_audio_mixer),
  4294. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4296. msm_routing_put_audio_mixer),
  4297. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4302. msm_routing_put_audio_mixer),
  4303. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4304. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4305. msm_routing_put_audio_mixer),
  4306. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4307. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4308. msm_routing_put_audio_mixer),
  4309. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4314. msm_routing_put_audio_mixer),
  4315. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4316. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4317. msm_routing_put_audio_mixer),
  4318. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4319. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4320. msm_routing_put_audio_mixer),
  4321. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4325. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4326. msm_routing_put_audio_mixer),
  4327. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4328. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4329. msm_routing_put_audio_mixer),
  4330. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4331. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4332. msm_routing_put_audio_mixer),
  4333. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. };
  4337. /* incall music delivery mixer */
  4338. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4339. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4340. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4341. msm_routing_put_audio_mixer),
  4342. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4349. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4350. msm_routing_put_audio_mixer),
  4351. };
  4352. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4353. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4358. msm_routing_put_audio_mixer),
  4359. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. };
  4366. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  4367. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4372. msm_routing_put_audio_mixer),
  4373. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4374. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4375. msm_routing_put_audio_mixer),
  4376. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
  4377. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4378. msm_routing_put_audio_mixer),
  4379. };
  4380. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  4381. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4382. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4383. msm_routing_put_audio_mixer),
  4384. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4386. msm_routing_put_audio_mixer),
  4387. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4392. msm_routing_put_audio_mixer),
  4393. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4394. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4395. msm_routing_put_audio_mixer),
  4396. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4397. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4398. msm_routing_put_audio_mixer),
  4399. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4404. msm_routing_put_audio_mixer),
  4405. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4406. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4407. msm_routing_put_audio_mixer),
  4408. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4409. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4410. msm_routing_put_audio_mixer),
  4411. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4415. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4416. msm_routing_put_audio_mixer),
  4417. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4418. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4419. msm_routing_put_audio_mixer),
  4420. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4421. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4422. msm_routing_put_audio_mixer),
  4423. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  4427. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4428. msm_routing_put_audio_mixer),
  4429. };
  4430. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  4431. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4435. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4436. msm_routing_put_audio_mixer),
  4437. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4438. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4439. msm_routing_put_audio_mixer),
  4440. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4448. msm_routing_put_audio_mixer),
  4449. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4456. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4457. msm_routing_put_audio_mixer),
  4458. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4460. msm_routing_put_audio_mixer),
  4461. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4465. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4466. msm_routing_put_audio_mixer),
  4467. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4468. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4469. msm_routing_put_audio_mixer),
  4470. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4471. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4472. msm_routing_put_audio_mixer),
  4473. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. };
  4480. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  4481. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_USB_RX,
  4482. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4483. msm_routing_put_audio_mixer),
  4484. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_USB_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_USB_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_USB_RX,
  4491. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4492. msm_routing_put_audio_mixer),
  4493. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_USB_RX,
  4494. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4495. msm_routing_put_audio_mixer),
  4496. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_USB_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_USB_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_USB_RX,
  4503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4504. msm_routing_put_audio_mixer),
  4505. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_USB_RX,
  4506. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4507. msm_routing_put_audio_mixer),
  4508. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_USB_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_USB_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_USB_RX,
  4515. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4516. msm_routing_put_audio_mixer),
  4517. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_USB_RX,
  4518. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4519. msm_routing_put_audio_mixer),
  4520. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_USB_RX,
  4521. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4522. msm_routing_put_audio_mixer),
  4523. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_USB_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_USB_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. };
  4530. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  4531. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4536. msm_routing_put_audio_mixer),
  4537. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4538. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4539. msm_routing_put_audio_mixer),
  4540. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4541. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4542. msm_routing_put_audio_mixer),
  4543. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4548. msm_routing_put_audio_mixer),
  4549. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4553. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4554. msm_routing_put_audio_mixer),
  4555. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4556. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4557. msm_routing_put_audio_mixer),
  4558. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4565. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4566. msm_routing_put_audio_mixer),
  4567. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4568. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4569. msm_routing_put_audio_mixer),
  4570. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4571. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4572. msm_routing_put_audio_mixer),
  4573. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4577. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4578. msm_routing_put_audio_mixer),
  4579. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4580. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4581. msm_routing_put_audio_mixer),
  4582. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. };
  4589. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  4590. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4598. msm_routing_put_audio_mixer),
  4599. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4610. msm_routing_put_audio_mixer),
  4611. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4612. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4613. msm_routing_put_audio_mixer),
  4614. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4615. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4616. msm_routing_put_audio_mixer),
  4617. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4618. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4619. msm_routing_put_audio_mixer),
  4620. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4621. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4622. msm_routing_put_audio_mixer),
  4623. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4624. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4625. msm_routing_put_audio_mixer),
  4626. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4627. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4628. msm_routing_put_audio_mixer),
  4629. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4633. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4634. msm_routing_put_audio_mixer),
  4635. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. };
  4639. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  4640. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
  4647. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4648. msm_routing_put_audio_mixer),
  4649. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
  4650. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4651. msm_routing_put_audio_mixer),
  4652. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
  4659. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4660. msm_routing_put_audio_mixer),
  4661. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
  4662. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4663. msm_routing_put_audio_mixer),
  4664. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
  4671. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4672. msm_routing_put_audio_mixer),
  4673. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
  4674. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4675. msm_routing_put_audio_mixer),
  4676. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
  4683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4684. msm_routing_put_audio_mixer),
  4685. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
  4686. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4687. msm_routing_put_audio_mixer),
  4688. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_INT_FM_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_INT_FM_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_INT_FM_RX,
  4695. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4696. msm_routing_put_audio_mixer),
  4697. };
  4698. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  4699. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
  4703. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4704. msm_routing_put_audio_mixer),
  4705. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
  4709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4710. msm_routing_put_audio_mixer),
  4711. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
  4712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4713. msm_routing_put_audio_mixer),
  4714. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
  4715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4716. msm_routing_put_audio_mixer),
  4717. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
  4721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4722. msm_routing_put_audio_mixer),
  4723. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
  4724. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4725. msm_routing_put_audio_mixer),
  4726. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
  4727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4728. msm_routing_put_audio_mixer),
  4729. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
  4733. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4734. msm_routing_put_audio_mixer),
  4735. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
  4736. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4737. msm_routing_put_audio_mixer),
  4738. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
  4739. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4740. msm_routing_put_audio_mixer),
  4741. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AFE_PCM_RX,
  4748. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4749. msm_routing_put_audio_mixer),
  4750. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AFE_PCM_RX,
  4751. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4752. msm_routing_put_audio_mixer),
  4753. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AFE_PCM_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. };
  4757. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  4758. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
  4759. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4760. msm_routing_put_audio_mixer),
  4761. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
  4765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4766. msm_routing_put_audio_mixer),
  4767. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
  4771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4772. msm_routing_put_audio_mixer),
  4773. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
  4774. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4775. msm_routing_put_audio_mixer),
  4776. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
  4783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4784. msm_routing_put_audio_mixer),
  4785. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
  4786. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4787. msm_routing_put_audio_mixer),
  4788. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
  4795. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4796. msm_routing_put_audio_mixer),
  4797. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
  4798. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4799. msm_routing_put_audio_mixer),
  4800. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
  4801. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4802. msm_routing_put_audio_mixer),
  4803. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_AUXPCM_RX,
  4807. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4808. msm_routing_put_audio_mixer),
  4809. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_AUXPCM_RX,
  4810. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4811. msm_routing_put_audio_mixer),
  4812. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_AUXPCM_RX,
  4813. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4814. msm_routing_put_audio_mixer),
  4815. };
  4816. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  4817. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4821. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4822. msm_routing_put_audio_mixer),
  4823. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4828. msm_routing_put_audio_mixer),
  4829. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4830. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4831. msm_routing_put_audio_mixer),
  4832. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4834. msm_routing_put_audio_mixer),
  4835. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4839. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4840. msm_routing_put_audio_mixer),
  4841. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4842. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4843. msm_routing_put_audio_mixer),
  4844. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4845. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4846. msm_routing_put_audio_mixer),
  4847. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4851. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4852. msm_routing_put_audio_mixer),
  4853. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4854. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4855. msm_routing_put_audio_mixer),
  4856. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4857. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4858. msm_routing_put_audio_mixer),
  4859. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4860. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4861. msm_routing_put_audio_mixer),
  4862. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_SINGLE_EXT("MultiMedia17", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_SINGLE_EXT("MultiMedia18", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4869. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4870. msm_routing_put_audio_mixer),
  4871. SOC_SINGLE_EXT("MultiMedia19", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  4872. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4873. msm_routing_put_audio_mixer),
  4874. };
  4875. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  4876. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4877. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4878. msm_routing_put_audio_mixer),
  4879. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4880. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4881. msm_routing_put_audio_mixer),
  4882. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4883. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4884. msm_routing_put_audio_mixer),
  4885. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4886. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4887. msm_routing_put_audio_mixer),
  4888. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4892. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4893. msm_routing_put_audio_mixer),
  4894. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4895. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4896. msm_routing_put_audio_mixer),
  4897. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4901. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4902. msm_routing_put_audio_mixer),
  4903. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4907. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4908. msm_routing_put_audio_mixer),
  4909. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4919. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4920. msm_routing_put_audio_mixer),
  4921. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  4922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4923. msm_routing_put_audio_mixer),
  4924. };
  4925. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  4926. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4928. msm_routing_put_audio_mixer),
  4929. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4931. msm_routing_put_audio_mixer),
  4932. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4940. msm_routing_put_audio_mixer),
  4941. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4943. msm_routing_put_audio_mixer),
  4944. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4945. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4946. msm_routing_put_audio_mixer),
  4947. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4954. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4955. msm_routing_put_audio_mixer),
  4956. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4957. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4958. msm_routing_put_audio_mixer),
  4959. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4967. msm_routing_put_audio_mixer),
  4968. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. };
  4975. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  4976. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4978. msm_routing_put_audio_mixer),
  4979. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4980. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4981. msm_routing_put_audio_mixer),
  4982. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4983. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4984. msm_routing_put_audio_mixer),
  4985. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4986. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4987. msm_routing_put_audio_mixer),
  4988. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4989. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4990. msm_routing_put_audio_mixer),
  4991. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4992. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4993. msm_routing_put_audio_mixer),
  4994. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  4998. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4999. msm_routing_put_audio_mixer),
  5000. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5001. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5002. msm_routing_put_audio_mixer),
  5003. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5004. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5005. msm_routing_put_audio_mixer),
  5006. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5016. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5017. msm_routing_put_audio_mixer),
  5018. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5019. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5020. msm_routing_put_audio_mixer),
  5021. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. };
  5025. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  5026. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5027. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5028. msm_routing_put_audio_mixer),
  5029. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5030. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5031. msm_routing_put_audio_mixer),
  5032. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5034. msm_routing_put_audio_mixer),
  5035. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5036. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5037. msm_routing_put_audio_mixer),
  5038. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5040. msm_routing_put_audio_mixer),
  5041. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5042. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5043. msm_routing_put_audio_mixer),
  5044. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5049. msm_routing_put_audio_mixer),
  5050. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5051. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5052. msm_routing_put_audio_mixer),
  5053. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5063. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5064. msm_routing_put_audio_mixer),
  5065. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. };
  5075. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  5076. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5080. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5081. msm_routing_put_audio_mixer),
  5082. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5083. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5084. msm_routing_put_audio_mixer),
  5085. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5086. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5087. msm_routing_put_audio_mixer),
  5088. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5092. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5093. msm_routing_put_audio_mixer),
  5094. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5095. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5096. msm_routing_put_audio_mixer),
  5097. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5098. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5099. msm_routing_put_audio_mixer),
  5100. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5104. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5105. msm_routing_put_audio_mixer),
  5106. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5110. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5111. msm_routing_put_audio_mixer),
  5112. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5114. msm_routing_put_audio_mixer),
  5115. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  5122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5123. msm_routing_put_audio_mixer),
  5124. };
  5125. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  5126. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5131. msm_routing_put_audio_mixer),
  5132. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5133. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5134. msm_routing_put_audio_mixer),
  5135. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5136. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5137. msm_routing_put_audio_mixer),
  5138. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5142. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5143. msm_routing_put_audio_mixer),
  5144. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5145. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5146. msm_routing_put_audio_mixer),
  5147. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5148. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5149. msm_routing_put_audio_mixer),
  5150. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5154. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5155. msm_routing_put_audio_mixer),
  5156. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5158. msm_routing_put_audio_mixer),
  5159. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5160. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5161. msm_routing_put_audio_mixer),
  5162. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. };
  5175. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  5176. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5180. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5181. msm_routing_put_audio_mixer),
  5182. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5183. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5184. msm_routing_put_audio_mixer),
  5185. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5186. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5187. msm_routing_put_audio_mixer),
  5188. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5192. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5193. msm_routing_put_audio_mixer),
  5194. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5195. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5196. msm_routing_put_audio_mixer),
  5197. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5204. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5205. msm_routing_put_audio_mixer),
  5206. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5207. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5208. msm_routing_put_audio_mixer),
  5209. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5216. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5217. msm_routing_put_audio_mixer),
  5218. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5219. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5220. msm_routing_put_audio_mixer),
  5221. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. };
  5225. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  5226. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5228. msm_routing_put_audio_mixer),
  5229. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5236. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5237. msm_routing_put_audio_mixer),
  5238. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5239. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5240. msm_routing_put_audio_mixer),
  5241. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5242. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5243. msm_routing_put_audio_mixer),
  5244. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5245. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5246. msm_routing_put_audio_mixer),
  5247. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5251. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5252. msm_routing_put_audio_mixer),
  5253. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5254. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5255. msm_routing_put_audio_mixer),
  5256. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5257. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5258. msm_routing_put_audio_mixer),
  5259. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5269. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5270. msm_routing_put_audio_mixer),
  5271. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. };
  5275. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  5276. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5277. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5278. msm_routing_put_audio_mixer),
  5279. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5287. msm_routing_put_audio_mixer),
  5288. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5290. msm_routing_put_audio_mixer),
  5291. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5295. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5296. msm_routing_put_audio_mixer),
  5297. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5308. msm_routing_put_audio_mixer),
  5309. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5320. msm_routing_put_audio_mixer),
  5321. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. };
  5325. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  5326. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5328. msm_routing_put_audio_mixer),
  5329. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5339. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5340. msm_routing_put_audio_mixer),
  5341. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5351. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5352. msm_routing_put_audio_mixer),
  5353. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. };
  5375. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  5376. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5378. msm_routing_put_audio_mixer),
  5379. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5390. msm_routing_put_audio_mixer),
  5391. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5401. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5402. msm_routing_put_audio_mixer),
  5403. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5414. msm_routing_put_audio_mixer),
  5415. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. };
  5425. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  5426. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5434. msm_routing_put_audio_mixer),
  5435. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5439. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5440. msm_routing_put_audio_mixer),
  5441. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5445. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5446. msm_routing_put_audio_mixer),
  5447. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5463. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5464. msm_routing_put_audio_mixer),
  5465. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. };
  5475. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  5476. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5484. msm_routing_put_audio_mixer),
  5485. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5495. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5496. msm_routing_put_audio_mixer),
  5497. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5507. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5508. msm_routing_put_audio_mixer),
  5509. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. };
  5525. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  5526. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5533. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5534. msm_routing_put_audio_mixer),
  5535. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. };
  5575. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  5576. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5592. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5593. msm_routing_put_audio_mixer),
  5594. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5607. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5608. msm_routing_put_audio_mixer),
  5609. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5619. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5620. msm_routing_put_audio_mixer),
  5621. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. };
  5625. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  5626. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5628. msm_routing_put_audio_mixer),
  5629. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. };
  5675. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  5676. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5690. msm_routing_put_audio_mixer),
  5691. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5702. msm_routing_put_audio_mixer),
  5703. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5713. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5714. msm_routing_put_audio_mixer),
  5715. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. };
  5725. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  5726. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5736. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5737. msm_routing_put_audio_mixer),
  5738. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. };
  5775. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  5776. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5784. msm_routing_put_audio_mixer),
  5785. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_4,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. };
  5825. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  5826. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. };
  5878. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  5879. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. };
  5928. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  5929. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. };
  5981. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  5982. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. };
  6034. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  6035. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. };
  6087. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  6088. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. };
  6140. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  6141. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. };
  6190. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  6191. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. };
  6243. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  6244. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. };
  6296. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  6297. SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6340. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6341. msm_routing_put_audio_mixer),
  6342. SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_SINGLE_EXT("MultiMedia20", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. };
  6349. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  6350. SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6394. msm_routing_put_audio_mixer),
  6395. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6406. msm_routing_put_audio_mixer),
  6407. SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6417. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6418. msm_routing_put_audio_mixer),
  6419. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6429. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6430. msm_routing_put_audio_mixer),
  6431. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6442. msm_routing_put_audio_mixer),
  6443. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6483. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6484. msm_routing_put_audio_mixer),
  6485. };
  6486. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  6487. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6492. msm_routing_put_audio_mixer),
  6493. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6503. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6504. msm_routing_put_audio_mixer),
  6505. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6569. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. };
  6590. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  6591. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. };
  6694. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  6695. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6706. msm_routing_put_audio_mixer),
  6707. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6718. msm_routing_put_audio_mixer),
  6719. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. };
  6795. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  6796. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. };
  6914. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  6915. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. };
  7018. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  7019. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7048. msm_routing_put_audio_mixer),
  7049. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. };
  7125. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  7126. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7136. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7137. msm_routing_put_audio_mixer),
  7138. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7148. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7149. msm_routing_put_audio_mixer),
  7150. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7190. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7191. msm_routing_put_audio_mixer),
  7192. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7202. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7203. msm_routing_put_audio_mixer),
  7204. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7214. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7215. msm_routing_put_audio_mixer),
  7216. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7226. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7227. msm_routing_put_audio_mixer),
  7228. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. };
  7232. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  7233. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7264. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7265. msm_routing_put_audio_mixer),
  7266. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7276. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7277. msm_routing_put_audio_mixer),
  7278. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7288. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7289. msm_routing_put_audio_mixer),
  7290. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. };
  7294. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  7295. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7296. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7297. msm_routing_put_audio_mixer),
  7298. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7308. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7309. msm_routing_put_audio_mixer),
  7310. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7338. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7339. msm_routing_put_audio_mixer),
  7340. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_TX,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  7350. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7351. msm_routing_put_audio_mixer),
  7352. SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_SINGLE_EXT("TERT_AUX_PCM_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7362. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7363. msm_routing_put_audio_mixer),
  7364. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_SINGLE_EXT("INT2_MI2S_TX", MSM_BACKEND_DAI_INT2_MI2S_TX,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. };
  7374. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  7375. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. };
  7397. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  7398. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7408. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7409. msm_routing_put_audio_mixer),
  7410. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7420. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7421. msm_routing_put_audio_mixer),
  7422. };
  7423. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  7424. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7428. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7429. msm_routing_put_audio_mixer),
  7430. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. };
  7446. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  7447. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  7448. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7449. msm_routing_put_audio_mixer),
  7450. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7466. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7467. msm_routing_put_audio_mixer),
  7468. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7478. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7479. msm_routing_put_audio_mixer),
  7480. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7490. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7491. msm_routing_put_audio_mixer),
  7492. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7502. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7503. msm_routing_put_audio_mixer),
  7504. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7514. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7515. msm_routing_put_audio_mixer),
  7516. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. };
  7523. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  7524. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
  7525. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7526. msm_routing_put_voice_mixer),
  7527. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
  7528. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7529. msm_routing_put_voice_mixer),
  7530. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
  7531. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7532. msm_routing_put_voice_mixer),
  7533. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
  7534. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7535. msm_routing_put_voice_mixer),
  7536. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
  7537. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7538. msm_routing_put_voice_mixer),
  7539. };
  7540. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  7541. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
  7542. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7543. msm_routing_put_voice_mixer),
  7544. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
  7545. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7546. msm_routing_put_voice_mixer),
  7547. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
  7548. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7549. msm_routing_put_voice_mixer),
  7550. };
  7551. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  7552. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7553. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7554. msm_routing_put_voice_mixer),
  7555. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7556. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7557. msm_routing_put_voice_mixer),
  7558. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7559. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7560. msm_routing_put_voice_mixer),
  7561. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7562. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7563. msm_routing_put_voice_mixer),
  7564. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  7565. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7566. msm_routing_put_voice_mixer),
  7567. };
  7568. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  7569. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7570. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7571. msm_routing_put_voice_mixer),
  7572. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7573. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7574. msm_routing_put_voice_mixer),
  7575. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7576. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7577. msm_routing_put_voice_mixer),
  7578. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7579. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7580. msm_routing_put_voice_mixer),
  7581. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  7582. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7583. msm_routing_put_voice_mixer),
  7584. };
  7585. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  7586. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7587. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7588. msm_routing_put_voice_mixer),
  7589. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7590. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7591. msm_routing_put_voice_mixer),
  7592. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7593. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7594. msm_routing_put_voice_mixer),
  7595. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7596. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7597. msm_routing_put_voice_mixer),
  7598. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7599. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7600. msm_routing_put_voice_mixer),
  7601. };
  7602. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  7603. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_USB_RX,
  7604. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7605. msm_routing_put_voice_mixer),
  7606. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_USB_RX,
  7607. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7608. msm_routing_put_voice_mixer),
  7609. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_USB_RX,
  7610. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7611. msm_routing_put_voice_mixer),
  7612. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_USB_RX,
  7613. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7614. msm_routing_put_voice_mixer),
  7615. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_USB_RX,
  7616. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7617. msm_routing_put_voice_mixer),
  7618. };
  7619. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  7620. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7621. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7622. msm_routing_put_voice_mixer),
  7623. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7624. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7625. msm_routing_put_voice_mixer),
  7626. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7627. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7628. msm_routing_put_voice_mixer),
  7629. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7630. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7631. msm_routing_put_voice_mixer),
  7632. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7633. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7634. msm_routing_put_voice_mixer),
  7635. };
  7636. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  7637. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7638. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7639. msm_routing_put_voice_mixer),
  7640. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7641. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7642. msm_routing_put_voice_mixer),
  7643. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7644. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7645. msm_routing_put_voice_mixer),
  7646. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7647. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7648. msm_routing_put_voice_mixer),
  7649. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7650. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7651. msm_routing_put_voice_mixer),
  7652. };
  7653. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  7654. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
  7655. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7656. msm_routing_put_voice_mixer),
  7657. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
  7658. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7659. msm_routing_put_voice_mixer),
  7660. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
  7661. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7662. msm_routing_put_voice_mixer),
  7663. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
  7664. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7665. msm_routing_put_voice_mixer),
  7666. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
  7667. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7668. msm_routing_put_voice_mixer),
  7669. };
  7670. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  7671. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7672. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7673. msm_routing_put_voice_mixer),
  7674. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7675. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7676. msm_routing_put_voice_mixer),
  7677. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7678. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7679. msm_routing_put_voice_mixer),
  7680. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7681. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7682. msm_routing_put_voice_mixer),
  7683. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
  7684. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7685. msm_routing_put_voice_mixer),
  7686. };
  7687. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  7688. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7689. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7690. msm_routing_put_voice_mixer),
  7691. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7692. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7693. msm_routing_put_voice_mixer),
  7694. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7695. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7696. msm_routing_put_voice_mixer),
  7697. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7698. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7699. msm_routing_put_voice_mixer),
  7700. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT0_MI2S_RX,
  7701. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7702. msm_routing_put_voice_mixer),
  7703. };
  7704. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  7705. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7706. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7707. msm_routing_put_voice_mixer),
  7708. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7709. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7710. msm_routing_put_voice_mixer),
  7711. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7712. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7713. msm_routing_put_voice_mixer),
  7714. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7715. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7716. msm_routing_put_voice_mixer),
  7717. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT4_MI2S_RX,
  7718. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7719. msm_routing_put_voice_mixer),
  7720. };
  7721. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  7722. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7723. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7724. msm_routing_put_voice_mixer),
  7725. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7726. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7727. msm_routing_put_voice_mixer),
  7728. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7729. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7730. msm_routing_put_voice_mixer),
  7731. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7732. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7733. msm_routing_put_voice_mixer),
  7734. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  7735. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7736. msm_routing_put_voice_mixer),
  7737. };
  7738. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  7739. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7740. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7741. msm_routing_put_voice_mixer),
  7742. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7743. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7744. msm_routing_put_voice_mixer),
  7745. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7746. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7747. msm_routing_put_voice_mixer),
  7748. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7749. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7750. msm_routing_put_voice_mixer),
  7751. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  7752. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7753. msm_routing_put_voice_mixer),
  7754. };
  7755. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  7756. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7757. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7758. msm_routing_put_voice_mixer),
  7759. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7760. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7761. msm_routing_put_voice_mixer),
  7762. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7763. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7764. msm_routing_put_voice_mixer),
  7765. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7766. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7767. msm_routing_put_voice_mixer),
  7768. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  7769. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7770. msm_routing_put_voice_mixer),
  7771. };
  7772. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  7773. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
  7774. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7775. msm_routing_put_voice_mixer),
  7776. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
  7777. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7778. msm_routing_put_voice_mixer),
  7779. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
  7780. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7781. msm_routing_put_voice_mixer),
  7782. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
  7783. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7784. msm_routing_put_voice_mixer),
  7785. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
  7786. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7787. msm_routing_put_voice_mixer),
  7788. };
  7789. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  7790. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
  7791. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7792. msm_routing_put_voice_mixer),
  7793. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
  7794. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7795. msm_routing_put_voice_mixer),
  7796. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
  7797. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7798. msm_routing_put_voice_mixer),
  7799. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
  7800. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7801. msm_routing_put_voice_mixer),
  7802. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
  7803. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7804. msm_routing_put_voice_mixer),
  7805. };
  7806. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  7807. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7808. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7809. msm_routing_put_voice_mixer),
  7810. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7811. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7812. msm_routing_put_voice_mixer),
  7813. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7814. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7815. msm_routing_put_voice_mixer),
  7816. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7817. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7818. msm_routing_put_voice_mixer),
  7819. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7820. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7821. msm_routing_put_voice_mixer),
  7822. };
  7823. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  7824. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7825. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7826. msm_routing_put_voice_mixer),
  7827. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7828. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7829. msm_routing_put_voice_mixer),
  7830. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7831. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7832. msm_routing_put_voice_mixer),
  7833. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7834. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7835. msm_routing_put_voice_mixer),
  7836. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7837. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7838. msm_routing_put_voice_mixer),
  7839. };
  7840. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  7841. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7842. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7843. msm_routing_put_voice_mixer),
  7844. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7845. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7846. msm_routing_put_voice_mixer),
  7847. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7848. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7849. msm_routing_put_voice_mixer),
  7850. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7851. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7852. msm_routing_put_voice_mixer),
  7853. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7854. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7855. msm_routing_put_voice_mixer),
  7856. };
  7857. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  7858. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7859. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7860. msm_routing_put_voice_mixer),
  7861. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7862. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7863. msm_routing_put_voice_mixer),
  7864. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7865. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7866. msm_routing_put_voice_mixer),
  7867. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7868. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7869. msm_routing_put_voice_mixer),
  7870. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7871. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7872. msm_routing_put_voice_mixer),
  7873. };
  7874. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  7875. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
  7876. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7877. msm_routing_put_voice_mixer),
  7878. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
  7879. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7880. msm_routing_put_voice_mixer),
  7881. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
  7882. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7883. msm_routing_put_voice_mixer),
  7884. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
  7885. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7886. msm_routing_put_voice_mixer),
  7887. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
  7888. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7889. msm_routing_put_voice_mixer),
  7890. };
  7891. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  7892. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7893. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7894. msm_routing_put_voice_mixer),
  7895. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7896. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7897. msm_routing_put_voice_mixer),
  7898. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7899. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7900. msm_routing_put_voice_mixer),
  7901. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7902. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7903. msm_routing_put_voice_mixer),
  7904. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7905. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7906. msm_routing_put_voice_mixer),
  7907. };
  7908. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  7909. SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7910. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  7911. msm_routing_put_voice_mixer),
  7912. SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7913. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  7914. msm_routing_put_voice_mixer),
  7915. SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7916. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  7917. msm_routing_put_voice_mixer),
  7918. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7919. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7920. msm_routing_put_voice_mixer),
  7921. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_8_RX,
  7922. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7923. msm_routing_put_voice_mixer),
  7924. };
  7925. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  7926. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7927. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7928. msm_routing_put_voice_mixer),
  7929. };
  7930. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  7931. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_EXTPROC_RX,
  7932. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7933. msm_routing_put_voice_mixer),
  7934. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_EXTPROC_RX,
  7935. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7936. msm_routing_put_voice_mixer),
  7937. };
  7938. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  7939. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7940. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7941. msm_routing_put_voice_mixer),
  7942. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  7943. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7944. msm_routing_put_voice_mixer),
  7945. };
  7946. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  7947. SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7948. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7949. msm_routing_put_voice_mixer),
  7950. SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  7951. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  7952. msm_routing_put_voice_mixer),
  7953. };
  7954. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  7955. SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
  7956. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7957. msm_routing_put_voice_mixer),
  7958. SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
  7959. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  7960. msm_routing_put_voice_mixer),
  7961. SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
  7962. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7963. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7964. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
  7965. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7966. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7967. SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
  7968. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7969. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7970. SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
  7971. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7972. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7973. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
  7974. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7975. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7976. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode1",
  7977. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7978. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7979. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode1",
  7980. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7981. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7982. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode1",
  7983. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7984. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7985. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
  7986. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  7987. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7988. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
  7989. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7990. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7991. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode1",
  7992. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  7993. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7994. SOC_SINGLE_EXT("SLIM_7_TX_MMode1",
  7995. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7996. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  7997. SOC_SINGLE_EXT("SLIM_8_TX_MMode1",
  7998. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  7999. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8000. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode1", MSM_BACKEND_DAI_USB_TX,
  8001. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  8002. msm_routing_put_voice_mixer),
  8003. SOC_SINGLE_EXT("QUAT_TDM_TX_0_MMode1",
  8004. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  8005. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8006. };
  8007. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  8008. SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
  8009. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8010. msm_routing_put_voice_mixer),
  8011. SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
  8012. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  8013. msm_routing_put_voice_mixer),
  8014. SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
  8015. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8016. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8017. SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
  8018. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8019. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8020. SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
  8021. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8022. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8023. SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
  8024. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8025. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8026. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
  8027. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8028. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8029. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_MMode2",
  8030. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8031. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8032. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_MMode2",
  8033. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8034. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8035. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_MMode2",
  8036. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8037. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8038. SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
  8039. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  8040. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8041. SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
  8042. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8043. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8044. SOC_SINGLE_EXT("INT3_MI2S_TX_MMode2",
  8045. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  8046. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8047. SOC_SINGLE_EXT("SLIM_7_TX_MMode2",
  8048. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8049. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8050. SOC_SINGLE_EXT("SLIM_8_TX_MMode2",
  8051. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8052. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8053. SOC_SINGLE_EXT("USB_AUDIO_TX_MMode2",
  8054. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  8055. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8056. };
  8057. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  8058. SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
  8059. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8060. msm_routing_put_voice_mixer),
  8061. SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
  8062. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8063. msm_routing_put_voice_mixer),
  8064. SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8065. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8066. msm_routing_put_voice_mixer),
  8067. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8068. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8069. msm_routing_put_voice_mixer),
  8070. SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
  8071. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8072. msm_routing_put_voice_mixer),
  8073. SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
  8074. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8075. msm_routing_put_voice_mixer),
  8076. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8077. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8078. msm_routing_put_voice_mixer),
  8079. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8080. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8081. msm_routing_put_voice_mixer),
  8082. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8083. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8084. msm_routing_put_voice_mixer),
  8085. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8087. msm_routing_put_voice_mixer),
  8088. SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8089. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8090. msm_routing_put_voice_mixer),
  8091. SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8092. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8093. msm_routing_put_voice_mixer),
  8094. SOC_SINGLE_EXT("INT3_MI2S_TX_Voip", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8095. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8096. msm_routing_put_voice_mixer),
  8097. SOC_SINGLE_EXT("SLIM_7_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8098. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8099. msm_routing_put_voice_mixer),
  8100. SOC_SINGLE_EXT("SLIM_8_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8101. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8102. msm_routing_put_voice_mixer),
  8103. SOC_SINGLE_EXT("USB_AUDIO_TX_Voip", MSM_BACKEND_DAI_USB_TX,
  8104. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  8105. msm_routing_put_voice_mixer),
  8106. };
  8107. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  8108. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8109. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8110. msm_routing_put_voice_stub_mixer),
  8111. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8112. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8113. msm_routing_put_voice_stub_mixer),
  8114. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8115. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8116. msm_routing_put_voice_stub_mixer),
  8117. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8118. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8119. msm_routing_put_voice_stub_mixer),
  8120. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
  8121. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8122. msm_routing_put_voice_stub_mixer),
  8123. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8124. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8125. msm_routing_put_voice_stub_mixer),
  8126. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8127. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8128. msm_routing_put_voice_stub_mixer),
  8129. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8130. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8131. msm_routing_put_voice_stub_mixer),
  8132. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8133. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8134. msm_routing_put_voice_stub_mixer),
  8135. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8136. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8137. msm_routing_put_voice_stub_mixer),
  8138. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8139. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8140. msm_routing_put_voice_stub_mixer),
  8141. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8142. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8143. msm_routing_put_voice_stub_mixer),
  8144. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8145. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8146. msm_routing_put_voice_stub_mixer),
  8147. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8148. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8149. msm_routing_put_voice_stub_mixer),
  8150. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8151. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8152. msm_routing_put_voice_stub_mixer),
  8153. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8154. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8155. msm_routing_put_voice_stub_mixer),
  8156. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8157. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8158. msm_routing_put_voice_stub_mixer),
  8159. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8160. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8161. msm_routing_put_voice_stub_mixer),
  8162. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8163. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8164. msm_routing_put_voice_stub_mixer),
  8165. };
  8166. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  8167. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8168. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8169. msm_routing_put_voice_stub_mixer),
  8170. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8171. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8172. msm_routing_put_voice_stub_mixer),
  8173. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8174. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8175. msm_routing_put_voice_stub_mixer),
  8176. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8177. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8178. msm_routing_put_voice_stub_mixer),
  8179. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8180. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8181. msm_routing_put_voice_stub_mixer),
  8182. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8183. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8184. msm_routing_put_voice_stub_mixer),
  8185. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8186. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8187. msm_routing_put_voice_stub_mixer),
  8188. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8189. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8190. msm_routing_put_voice_stub_mixer),
  8191. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8192. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8193. msm_routing_put_voice_stub_mixer),
  8194. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8195. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8196. msm_routing_put_voice_stub_mixer),
  8197. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8198. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8199. msm_routing_put_voice_stub_mixer),
  8200. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8201. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8202. msm_routing_put_voice_stub_mixer),
  8203. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8204. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8205. msm_routing_put_voice_stub_mixer),
  8206. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8207. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8208. msm_routing_put_voice_stub_mixer),
  8209. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8210. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8211. msm_routing_put_voice_stub_mixer),
  8212. };
  8213. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  8214. SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
  8215. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8216. msm_routing_put_voice_stub_mixer),
  8217. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8218. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8219. msm_routing_put_voice_stub_mixer),
  8220. SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
  8221. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8222. msm_routing_put_voice_stub_mixer),
  8223. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
  8224. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8225. msm_routing_put_voice_stub_mixer),
  8226. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8227. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8228. msm_routing_put_voice_stub_mixer),
  8229. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8230. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8231. msm_routing_put_voice_stub_mixer),
  8232. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8233. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8234. msm_routing_put_voice_stub_mixer),
  8235. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8236. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8237. msm_routing_put_voice_stub_mixer),
  8238. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8239. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8240. msm_routing_put_voice_stub_mixer),
  8241. SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  8242. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8243. msm_routing_put_voice_stub_mixer),
  8244. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
  8245. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8246. msm_routing_put_voice_stub_mixer),
  8247. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8248. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8249. msm_routing_put_voice_stub_mixer),
  8250. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8251. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8252. msm_routing_put_voice_stub_mixer),
  8253. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8254. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8255. msm_routing_put_voice_stub_mixer),
  8256. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8257. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  8258. msm_routing_put_voice_stub_mixer),
  8259. };
  8260. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  8261. SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
  8262. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8263. msm_routing_put_voice_mixer),
  8264. SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8265. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8266. msm_routing_put_voice_mixer),
  8267. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
  8268. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
  8269. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  8270. SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
  8271. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8272. msm_routing_put_voice_mixer),
  8273. SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
  8274. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8275. msm_routing_put_voice_mixer),
  8276. SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8277. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8278. msm_routing_put_voice_mixer),
  8279. SOC_SINGLE_EXT("TERT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8280. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8281. msm_routing_put_voice_mixer),
  8282. SOC_SINGLE_EXT("QUAT_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8283. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8284. msm_routing_put_voice_mixer),
  8285. SOC_SINGLE_EXT("QUIN_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8287. msm_routing_put_voice_mixer),
  8288. SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
  8289. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8290. msm_routing_put_voice_mixer),
  8291. SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
  8292. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8293. msm_routing_put_voice_mixer),
  8294. SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8295. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8296. msm_routing_put_voice_mixer),
  8297. SOC_SINGLE_EXT("INT3_MI2S_TX_QCHAT", MSM_BACKEND_DAI_INT3_MI2S_TX,
  8298. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8299. msm_routing_put_voice_mixer),
  8300. SOC_SINGLE_EXT("SLIM_7_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8301. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8302. msm_routing_put_voice_mixer),
  8303. SOC_SINGLE_EXT("SLIM_8_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8304. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8305. msm_routing_put_voice_mixer),
  8306. SOC_SINGLE_EXT("USB_AUDIO_TX_QCHAT", MSM_BACKEND_DAI_USB_TX,
  8307. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  8308. msm_routing_put_voice_mixer),
  8309. };
  8310. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  8311. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8312. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8313. msm_routing_put_port_mixer),
  8314. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8315. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8316. msm_routing_put_port_mixer),
  8317. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8318. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8319. msm_routing_put_port_mixer),
  8320. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8321. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8322. msm_routing_put_port_mixer),
  8323. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8324. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8325. msm_routing_put_port_mixer),
  8326. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8327. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8328. msm_routing_put_port_mixer),
  8329. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8330. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8331. msm_routing_put_port_mixer),
  8332. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8333. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8334. msm_routing_put_port_mixer),
  8335. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8336. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8337. msm_routing_put_port_mixer),
  8338. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT0_MI2S_RX,
  8339. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8340. msm_routing_put_port_mixer),
  8341. };
  8342. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  8343. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8344. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8345. msm_routing_put_port_mixer),
  8346. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8347. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8348. msm_routing_put_port_mixer),
  8349. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8350. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8351. msm_routing_put_port_mixer),
  8352. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8353. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8354. msm_routing_put_port_mixer),
  8355. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8356. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8357. msm_routing_put_port_mixer),
  8358. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8359. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8360. msm_routing_put_port_mixer),
  8361. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8362. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8363. msm_routing_put_port_mixer),
  8364. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8365. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8366. msm_routing_put_port_mixer),
  8367. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8368. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8369. msm_routing_put_port_mixer),
  8370. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_INT4_MI2S_RX,
  8371. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8372. msm_routing_put_port_mixer),
  8373. };
  8374. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  8375. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8376. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8377. msm_routing_put_port_mixer),
  8378. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8379. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8380. msm_routing_put_port_mixer),
  8381. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8382. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8383. msm_routing_put_port_mixer),
  8384. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8385. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8386. msm_routing_put_port_mixer),
  8387. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8388. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8389. msm_routing_put_port_mixer),
  8390. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8391. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8392. msm_routing_put_port_mixer),
  8393. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8394. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8395. msm_routing_put_port_mixer),
  8396. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8397. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8398. msm_routing_put_port_mixer),
  8399. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8400. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8401. msm_routing_put_port_mixer),
  8402. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8403. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8404. msm_routing_put_port_mixer),
  8405. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8406. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8407. msm_routing_put_port_mixer),
  8408. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8409. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8410. msm_routing_put_port_mixer),
  8411. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8412. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8413. msm_routing_put_port_mixer),
  8414. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8415. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8416. msm_routing_put_port_mixer),
  8417. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8418. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8419. msm_routing_put_port_mixer),
  8420. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8421. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8422. msm_routing_put_port_mixer),
  8423. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8424. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8425. msm_routing_put_port_mixer),
  8426. SOC_SINGLE_EXT("PRI_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8427. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8428. msm_routing_put_port_mixer),
  8429. SOC_SINGLE_EXT("SEC_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8430. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8431. msm_routing_put_port_mixer),
  8432. SOC_SINGLE_EXT("TERT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8433. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8434. msm_routing_put_port_mixer),
  8435. SOC_SINGLE_EXT("QUAT_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8436. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8437. msm_routing_put_port_mixer),
  8438. SOC_SINGLE_EXT("QUIN_MI2S_RX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
  8439. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  8440. msm_routing_put_port_mixer),
  8441. };
  8442. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  8443. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8444. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8445. msm_routing_put_port_mixer),
  8446. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8447. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8448. msm_routing_put_port_mixer),
  8449. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8450. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8451. msm_routing_put_port_mixer),
  8452. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
  8453. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8454. msm_routing_put_port_mixer),
  8455. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
  8456. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  8457. msm_routing_put_port_mixer),
  8458. };
  8459. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  8460. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8461. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8462. msm_routing_put_port_mixer),
  8463. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8464. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8465. msm_routing_put_port_mixer),
  8466. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8467. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8468. msm_routing_put_port_mixer),
  8469. };
  8470. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  8471. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8472. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8473. msm_routing_put_port_mixer),
  8474. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8475. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8476. msm_routing_put_port_mixer),
  8477. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8478. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8479. msm_routing_put_port_mixer),
  8480. };
  8481. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  8482. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8483. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8484. msm_routing_put_port_mixer),
  8485. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8486. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8487. msm_routing_put_port_mixer),
  8488. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8489. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8490. msm_routing_put_port_mixer),
  8491. };
  8492. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  8493. SOC_SINGLE_EXT("QUIN_AUXPCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8494. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8495. msm_routing_put_port_mixer),
  8496. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8497. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8498. msm_routing_put_port_mixer),
  8499. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8500. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8501. msm_routing_put_port_mixer),
  8502. };
  8503. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  8504. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8505. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8506. msm_routing_put_port_mixer),
  8507. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8508. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  8509. msm_routing_put_port_mixer),
  8510. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8511. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8512. msm_routing_put_port_mixer),
  8513. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8514. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8515. msm_routing_put_port_mixer),
  8516. SOC_SINGLE_EXT("TERT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8517. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8518. msm_routing_put_port_mixer),
  8519. SOC_SINGLE_EXT("QUAT_AUXPCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
  8520. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8521. msm_routing_put_port_mixer),
  8522. };
  8523. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  8524. SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8525. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  8526. msm_routing_put_port_mixer),
  8527. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8528. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8529. msm_routing_put_port_mixer),
  8530. SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8531. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  8532. msm_routing_put_port_mixer),
  8533. SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8534. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  8535. msm_routing_put_port_mixer),
  8536. SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
  8537. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  8538. msm_routing_put_port_mixer),
  8539. };
  8540. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  8541. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8542. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8543. msm_routing_put_port_mixer),
  8544. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8545. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8546. msm_routing_put_port_mixer),
  8547. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8548. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8549. msm_routing_put_port_mixer),
  8550. SOC_SINGLE_EXT("SLIM_7_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8551. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  8552. msm_routing_put_port_mixer),
  8553. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8554. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8555. msm_routing_put_port_mixer),
  8556. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8557. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8558. msm_routing_put_port_mixer),
  8559. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8560. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8561. msm_routing_put_port_mixer),
  8562. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8563. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8564. msm_routing_put_port_mixer),
  8565. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8566. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8567. msm_routing_put_port_mixer),
  8568. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8569. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8570. msm_routing_put_port_mixer),
  8571. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8572. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8573. msm_routing_put_port_mixer),
  8574. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_6_RX,
  8575. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8576. msm_routing_put_port_mixer),
  8577. };
  8578. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  8579. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8580. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8581. msm_routing_put_port_mixer),
  8582. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8583. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8584. msm_routing_put_port_mixer),
  8585. };
  8586. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  8587. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8588. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8589. msm_routing_put_port_mixer),
  8590. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
  8591. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8592. msm_routing_put_port_mixer),
  8593. };
  8594. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  8595. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
  8596. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8597. msm_routing_put_port_mixer),
  8598. };
  8599. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  8600. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  8601. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8602. msm_routing_put_port_mixer),
  8603. };
  8604. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  8605. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
  8606. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8607. msm_routing_put_port_mixer),
  8608. };
  8609. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  8610. SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
  8611. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  8612. msm_routing_put_port_mixer),
  8613. SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
  8614. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8615. msm_routing_put_port_mixer),
  8616. };
  8617. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  8618. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8619. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8620. msm_routing_put_port_mixer),
  8621. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8622. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8623. msm_routing_put_port_mixer),
  8624. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8625. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8626. msm_routing_put_port_mixer),
  8627. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8628. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8629. msm_routing_put_port_mixer),
  8630. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8631. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  8632. msm_routing_put_port_mixer),
  8633. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8634. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8635. msm_routing_put_port_mixer),
  8636. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8637. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8638. msm_routing_put_port_mixer),
  8639. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8640. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8641. msm_routing_put_port_mixer),
  8642. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
  8643. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8644. msm_routing_put_port_mixer),
  8645. };
  8646. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  8647. SOC_SINGLE_EXT("USB_AUDIO_TX", MSM_BACKEND_DAI_USB_RX,
  8648. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  8649. msm_routing_put_port_mixer),
  8650. };
  8651. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  8652. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8653. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8654. msm_routing_put_port_mixer),
  8655. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8656. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8657. msm_routing_put_port_mixer),
  8658. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8659. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  8660. msm_routing_put_port_mixer),
  8661. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8662. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  8663. msm_routing_put_port_mixer),
  8664. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8665. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8666. msm_routing_put_port_mixer),
  8667. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8668. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8669. msm_routing_put_port_mixer),
  8670. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8671. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8672. msm_routing_put_port_mixer),
  8673. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8674. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8675. msm_routing_put_port_mixer),
  8676. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  8677. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8678. msm_routing_put_port_mixer),
  8679. };
  8680. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  8681. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8682. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8683. msm_routing_put_port_mixer),
  8684. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8685. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8686. msm_routing_put_port_mixer),
  8687. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8688. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  8689. msm_routing_put_port_mixer),
  8690. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8691. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8692. msm_routing_put_port_mixer),
  8693. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8694. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8695. msm_routing_put_port_mixer),
  8696. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8697. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  8698. msm_routing_put_port_mixer),
  8699. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  8700. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  8701. msm_routing_put_port_mixer),
  8702. };
  8703. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  8704. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8705. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8706. msm_routing_get_port_mixer,
  8707. msm_routing_put_port_mixer),
  8708. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8709. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8710. msm_routing_get_port_mixer,
  8711. msm_routing_put_port_mixer),
  8712. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8713. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8714. msm_routing_get_port_mixer,
  8715. msm_routing_put_port_mixer),
  8716. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8717. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8718. msm_routing_get_port_mixer,
  8719. msm_routing_put_port_mixer),
  8720. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8721. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8722. msm_routing_get_port_mixer,
  8723. msm_routing_put_port_mixer),
  8724. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8725. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8726. msm_routing_get_port_mixer,
  8727. msm_routing_put_port_mixer),
  8728. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8729. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8730. msm_routing_get_port_mixer,
  8731. msm_routing_put_port_mixer),
  8732. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8733. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8734. msm_routing_get_port_mixer,
  8735. msm_routing_put_port_mixer),
  8736. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8737. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8738. msm_routing_get_port_mixer,
  8739. msm_routing_put_port_mixer),
  8740. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8741. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8742. msm_routing_get_port_mixer,
  8743. msm_routing_put_port_mixer),
  8744. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8745. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8746. msm_routing_get_port_mixer,
  8747. msm_routing_put_port_mixer),
  8748. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8749. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8750. msm_routing_get_port_mixer,
  8751. msm_routing_put_port_mixer),
  8752. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8753. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8754. msm_routing_get_port_mixer,
  8755. msm_routing_put_port_mixer),
  8756. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8757. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8758. msm_routing_get_port_mixer,
  8759. msm_routing_put_port_mixer),
  8760. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8761. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8762. msm_routing_get_port_mixer,
  8763. msm_routing_put_port_mixer),
  8764. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8765. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8766. msm_routing_get_port_mixer,
  8767. msm_routing_put_port_mixer),
  8768. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8769. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8770. msm_routing_get_port_mixer,
  8771. msm_routing_put_port_mixer),
  8772. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8773. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8774. msm_routing_get_port_mixer,
  8775. msm_routing_put_port_mixer),
  8776. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8777. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8778. msm_routing_get_port_mixer,
  8779. msm_routing_put_port_mixer),
  8780. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8781. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8782. msm_routing_get_port_mixer,
  8783. msm_routing_put_port_mixer),
  8784. };
  8785. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  8786. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8787. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8788. msm_routing_get_port_mixer,
  8789. msm_routing_put_port_mixer),
  8790. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8791. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8792. msm_routing_get_port_mixer,
  8793. msm_routing_put_port_mixer),
  8794. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8795. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8796. msm_routing_get_port_mixer,
  8797. msm_routing_put_port_mixer),
  8798. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8799. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8800. msm_routing_get_port_mixer,
  8801. msm_routing_put_port_mixer),
  8802. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8803. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8804. msm_routing_get_port_mixer,
  8805. msm_routing_put_port_mixer),
  8806. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8807. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8808. msm_routing_get_port_mixer,
  8809. msm_routing_put_port_mixer),
  8810. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8811. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8812. msm_routing_get_port_mixer,
  8813. msm_routing_put_port_mixer),
  8814. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8815. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8816. msm_routing_get_port_mixer,
  8817. msm_routing_put_port_mixer),
  8818. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8819. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8820. msm_routing_get_port_mixer,
  8821. msm_routing_put_port_mixer),
  8822. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8823. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8824. msm_routing_get_port_mixer,
  8825. msm_routing_put_port_mixer),
  8826. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8827. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8828. msm_routing_get_port_mixer,
  8829. msm_routing_put_port_mixer),
  8830. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8831. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8832. msm_routing_get_port_mixer,
  8833. msm_routing_put_port_mixer),
  8834. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8835. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8836. msm_routing_get_port_mixer,
  8837. msm_routing_put_port_mixer),
  8838. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8839. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8840. msm_routing_get_port_mixer,
  8841. msm_routing_put_port_mixer),
  8842. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8843. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8844. msm_routing_get_port_mixer,
  8845. msm_routing_put_port_mixer),
  8846. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8847. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8848. msm_routing_get_port_mixer,
  8849. msm_routing_put_port_mixer),
  8850. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8851. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8852. msm_routing_get_port_mixer,
  8853. msm_routing_put_port_mixer),
  8854. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8855. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8856. msm_routing_get_port_mixer,
  8857. msm_routing_put_port_mixer),
  8858. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8859. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8860. msm_routing_get_port_mixer,
  8861. msm_routing_put_port_mixer),
  8862. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8863. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8864. msm_routing_get_port_mixer,
  8865. msm_routing_put_port_mixer),
  8866. };
  8867. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  8868. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8869. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8870. msm_routing_get_port_mixer,
  8871. msm_routing_put_port_mixer),
  8872. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8873. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8874. msm_routing_get_port_mixer,
  8875. msm_routing_put_port_mixer),
  8876. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8877. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8878. msm_routing_get_port_mixer,
  8879. msm_routing_put_port_mixer),
  8880. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8881. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8882. msm_routing_get_port_mixer,
  8883. msm_routing_put_port_mixer),
  8884. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8885. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8886. msm_routing_get_port_mixer,
  8887. msm_routing_put_port_mixer),
  8888. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8889. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8890. msm_routing_get_port_mixer,
  8891. msm_routing_put_port_mixer),
  8892. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8893. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8894. msm_routing_get_port_mixer,
  8895. msm_routing_put_port_mixer),
  8896. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8897. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8898. msm_routing_get_port_mixer,
  8899. msm_routing_put_port_mixer),
  8900. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8901. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8902. msm_routing_get_port_mixer,
  8903. msm_routing_put_port_mixer),
  8904. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8905. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8906. msm_routing_get_port_mixer,
  8907. msm_routing_put_port_mixer),
  8908. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8909. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8910. msm_routing_get_port_mixer,
  8911. msm_routing_put_port_mixer),
  8912. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8913. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8914. msm_routing_get_port_mixer,
  8915. msm_routing_put_port_mixer),
  8916. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8917. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  8918. msm_routing_get_port_mixer,
  8919. msm_routing_put_port_mixer),
  8920. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8921. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  8922. msm_routing_get_port_mixer,
  8923. msm_routing_put_port_mixer),
  8924. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8925. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  8926. msm_routing_get_port_mixer,
  8927. msm_routing_put_port_mixer),
  8928. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8929. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  8930. msm_routing_get_port_mixer,
  8931. msm_routing_put_port_mixer),
  8932. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8933. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  8934. msm_routing_get_port_mixer,
  8935. msm_routing_put_port_mixer),
  8936. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8937. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  8938. msm_routing_get_port_mixer,
  8939. msm_routing_put_port_mixer),
  8940. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8941. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  8942. msm_routing_get_port_mixer,
  8943. msm_routing_put_port_mixer),
  8944. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8945. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  8946. msm_routing_get_port_mixer,
  8947. msm_routing_put_port_mixer),
  8948. };
  8949. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  8950. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8951. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  8952. msm_routing_get_port_mixer,
  8953. msm_routing_put_port_mixer),
  8954. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8955. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  8956. msm_routing_get_port_mixer,
  8957. msm_routing_put_port_mixer),
  8958. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8959. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  8960. msm_routing_get_port_mixer,
  8961. msm_routing_put_port_mixer),
  8962. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8963. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  8964. msm_routing_get_port_mixer,
  8965. msm_routing_put_port_mixer),
  8966. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8967. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  8968. msm_routing_get_port_mixer,
  8969. msm_routing_put_port_mixer),
  8970. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8971. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  8972. msm_routing_get_port_mixer,
  8973. msm_routing_put_port_mixer),
  8974. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8975. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  8976. msm_routing_get_port_mixer,
  8977. msm_routing_put_port_mixer),
  8978. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8979. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  8980. msm_routing_get_port_mixer,
  8981. msm_routing_put_port_mixer),
  8982. SOC_SINGLE_EXT("PRI_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8983. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  8984. msm_routing_get_port_mixer,
  8985. msm_routing_put_port_mixer),
  8986. SOC_SINGLE_EXT("PRI_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8987. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  8988. msm_routing_get_port_mixer,
  8989. msm_routing_put_port_mixer),
  8990. SOC_SINGLE_EXT("PRI_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8991. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  8992. msm_routing_get_port_mixer,
  8993. msm_routing_put_port_mixer),
  8994. SOC_SINGLE_EXT("PRI_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8995. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  8996. msm_routing_get_port_mixer,
  8997. msm_routing_put_port_mixer),
  8998. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8999. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9000. msm_routing_get_port_mixer,
  9001. msm_routing_put_port_mixer),
  9002. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9003. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9004. msm_routing_get_port_mixer,
  9005. msm_routing_put_port_mixer),
  9006. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9007. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9008. msm_routing_get_port_mixer,
  9009. msm_routing_put_port_mixer),
  9010. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9011. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9012. msm_routing_get_port_mixer,
  9013. msm_routing_put_port_mixer),
  9014. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9015. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9016. msm_routing_get_port_mixer,
  9017. msm_routing_put_port_mixer),
  9018. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9019. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9020. msm_routing_get_port_mixer,
  9021. msm_routing_put_port_mixer),
  9022. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9023. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9024. msm_routing_get_port_mixer,
  9025. msm_routing_put_port_mixer),
  9026. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9027. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9028. msm_routing_get_port_mixer,
  9029. msm_routing_put_port_mixer),
  9030. };
  9031. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  9032. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9033. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9034. msm_routing_get_port_mixer,
  9035. msm_routing_put_port_mixer),
  9036. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9037. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9038. msm_routing_get_port_mixer,
  9039. msm_routing_put_port_mixer),
  9040. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9041. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9042. msm_routing_get_port_mixer,
  9043. msm_routing_put_port_mixer),
  9044. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9045. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9046. msm_routing_get_port_mixer,
  9047. msm_routing_put_port_mixer),
  9048. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9049. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9050. msm_routing_get_port_mixer,
  9051. msm_routing_put_port_mixer),
  9052. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9053. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9054. msm_routing_get_port_mixer,
  9055. msm_routing_put_port_mixer),
  9056. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9057. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9058. msm_routing_get_port_mixer,
  9059. msm_routing_put_port_mixer),
  9060. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9061. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9062. msm_routing_get_port_mixer,
  9063. msm_routing_put_port_mixer),
  9064. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9065. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9066. msm_routing_get_port_mixer,
  9067. msm_routing_put_port_mixer),
  9068. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9069. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9070. msm_routing_get_port_mixer,
  9071. msm_routing_put_port_mixer),
  9072. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9073. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9074. msm_routing_get_port_mixer,
  9075. msm_routing_put_port_mixer),
  9076. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9077. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9078. msm_routing_get_port_mixer,
  9079. msm_routing_put_port_mixer),
  9080. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9081. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9082. msm_routing_get_port_mixer,
  9083. msm_routing_put_port_mixer),
  9084. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9085. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9086. msm_routing_get_port_mixer,
  9087. msm_routing_put_port_mixer),
  9088. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9089. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9090. msm_routing_get_port_mixer,
  9091. msm_routing_put_port_mixer),
  9092. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9093. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9094. msm_routing_get_port_mixer,
  9095. msm_routing_put_port_mixer),
  9096. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9097. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9098. msm_routing_get_port_mixer,
  9099. msm_routing_put_port_mixer),
  9100. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9101. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9102. msm_routing_get_port_mixer,
  9103. msm_routing_put_port_mixer),
  9104. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9105. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9106. msm_routing_get_port_mixer,
  9107. msm_routing_put_port_mixer),
  9108. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9109. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9110. msm_routing_get_port_mixer,
  9111. msm_routing_put_port_mixer),
  9112. };
  9113. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  9114. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9115. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9116. msm_routing_get_port_mixer,
  9117. msm_routing_put_port_mixer),
  9118. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9119. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9120. msm_routing_get_port_mixer,
  9121. msm_routing_put_port_mixer),
  9122. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9123. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9124. msm_routing_get_port_mixer,
  9125. msm_routing_put_port_mixer),
  9126. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9127. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9128. msm_routing_get_port_mixer,
  9129. msm_routing_put_port_mixer),
  9130. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9131. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9132. msm_routing_get_port_mixer,
  9133. msm_routing_put_port_mixer),
  9134. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9135. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9136. msm_routing_get_port_mixer,
  9137. msm_routing_put_port_mixer),
  9138. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9139. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9140. msm_routing_get_port_mixer,
  9141. msm_routing_put_port_mixer),
  9142. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9143. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9144. msm_routing_get_port_mixer,
  9145. msm_routing_put_port_mixer),
  9146. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9147. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9148. msm_routing_get_port_mixer,
  9149. msm_routing_put_port_mixer),
  9150. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9151. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9152. msm_routing_get_port_mixer,
  9153. msm_routing_put_port_mixer),
  9154. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9155. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9156. msm_routing_get_port_mixer,
  9157. msm_routing_put_port_mixer),
  9158. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9159. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9160. msm_routing_get_port_mixer,
  9161. msm_routing_put_port_mixer),
  9162. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9163. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9164. msm_routing_get_port_mixer,
  9165. msm_routing_put_port_mixer),
  9166. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9167. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9168. msm_routing_get_port_mixer,
  9169. msm_routing_put_port_mixer),
  9170. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9171. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9172. msm_routing_get_port_mixer,
  9173. msm_routing_put_port_mixer),
  9174. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9175. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9176. msm_routing_get_port_mixer,
  9177. msm_routing_put_port_mixer),
  9178. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9179. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9180. msm_routing_get_port_mixer,
  9181. msm_routing_put_port_mixer),
  9182. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9183. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9184. msm_routing_get_port_mixer,
  9185. msm_routing_put_port_mixer),
  9186. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9187. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9188. msm_routing_get_port_mixer,
  9189. msm_routing_put_port_mixer),
  9190. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9191. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9192. msm_routing_get_port_mixer,
  9193. msm_routing_put_port_mixer),
  9194. };
  9195. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  9196. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9197. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9198. msm_routing_get_port_mixer,
  9199. msm_routing_put_port_mixer),
  9200. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9201. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9202. msm_routing_get_port_mixer,
  9203. msm_routing_put_port_mixer),
  9204. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9205. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9206. msm_routing_get_port_mixer,
  9207. msm_routing_put_port_mixer),
  9208. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9209. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9210. msm_routing_get_port_mixer,
  9211. msm_routing_put_port_mixer),
  9212. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9213. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9214. msm_routing_get_port_mixer,
  9215. msm_routing_put_port_mixer),
  9216. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9217. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9218. msm_routing_get_port_mixer,
  9219. msm_routing_put_port_mixer),
  9220. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9221. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9222. msm_routing_get_port_mixer,
  9223. msm_routing_put_port_mixer),
  9224. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9225. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9226. msm_routing_get_port_mixer,
  9227. msm_routing_put_port_mixer),
  9228. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9229. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9230. msm_routing_get_port_mixer,
  9231. msm_routing_put_port_mixer),
  9232. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9233. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9234. msm_routing_get_port_mixer,
  9235. msm_routing_put_port_mixer),
  9236. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9237. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9238. msm_routing_get_port_mixer,
  9239. msm_routing_put_port_mixer),
  9240. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9241. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9242. msm_routing_get_port_mixer,
  9243. msm_routing_put_port_mixer),
  9244. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9245. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9246. msm_routing_get_port_mixer,
  9247. msm_routing_put_port_mixer),
  9248. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9249. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9250. msm_routing_get_port_mixer,
  9251. msm_routing_put_port_mixer),
  9252. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9253. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9254. msm_routing_get_port_mixer,
  9255. msm_routing_put_port_mixer),
  9256. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9257. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9258. msm_routing_get_port_mixer,
  9259. msm_routing_put_port_mixer),
  9260. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9261. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9262. msm_routing_get_port_mixer,
  9263. msm_routing_put_port_mixer),
  9264. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9265. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9266. msm_routing_get_port_mixer,
  9267. msm_routing_put_port_mixer),
  9268. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9269. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9270. msm_routing_get_port_mixer,
  9271. msm_routing_put_port_mixer),
  9272. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9273. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9274. msm_routing_get_port_mixer,
  9275. msm_routing_put_port_mixer),
  9276. };
  9277. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  9278. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9279. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9280. msm_routing_get_port_mixer,
  9281. msm_routing_put_port_mixer),
  9282. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9283. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9284. msm_routing_get_port_mixer,
  9285. msm_routing_put_port_mixer),
  9286. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9287. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9288. msm_routing_get_port_mixer,
  9289. msm_routing_put_port_mixer),
  9290. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9291. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9292. msm_routing_get_port_mixer,
  9293. msm_routing_put_port_mixer),
  9294. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9295. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9296. msm_routing_get_port_mixer,
  9297. msm_routing_put_port_mixer),
  9298. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9299. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9300. msm_routing_get_port_mixer,
  9301. msm_routing_put_port_mixer),
  9302. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9303. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9304. msm_routing_get_port_mixer,
  9305. msm_routing_put_port_mixer),
  9306. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9307. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9308. msm_routing_get_port_mixer,
  9309. msm_routing_put_port_mixer),
  9310. SOC_SINGLE_EXT("SEC_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9311. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  9312. msm_routing_get_port_mixer,
  9313. msm_routing_put_port_mixer),
  9314. SOC_SINGLE_EXT("SEC_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9315. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  9316. msm_routing_get_port_mixer,
  9317. msm_routing_put_port_mixer),
  9318. SOC_SINGLE_EXT("SEC_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9319. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  9320. msm_routing_get_port_mixer,
  9321. msm_routing_put_port_mixer),
  9322. SOC_SINGLE_EXT("SEC_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9323. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  9324. msm_routing_get_port_mixer,
  9325. msm_routing_put_port_mixer),
  9326. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9327. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9328. msm_routing_get_port_mixer,
  9329. msm_routing_put_port_mixer),
  9330. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9331. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9332. msm_routing_get_port_mixer,
  9333. msm_routing_put_port_mixer),
  9334. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9335. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9336. msm_routing_get_port_mixer,
  9337. msm_routing_put_port_mixer),
  9338. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9339. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9340. msm_routing_get_port_mixer,
  9341. msm_routing_put_port_mixer),
  9342. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9343. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9344. msm_routing_get_port_mixer,
  9345. msm_routing_put_port_mixer),
  9346. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9347. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9348. msm_routing_get_port_mixer,
  9349. msm_routing_put_port_mixer),
  9350. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9351. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9352. msm_routing_get_port_mixer,
  9353. msm_routing_put_port_mixer),
  9354. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9355. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9356. msm_routing_get_port_mixer,
  9357. msm_routing_put_port_mixer),
  9358. };
  9359. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  9360. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9361. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9362. msm_routing_get_port_mixer,
  9363. msm_routing_put_port_mixer),
  9364. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9365. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9366. msm_routing_get_port_mixer,
  9367. msm_routing_put_port_mixer),
  9368. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9369. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9370. msm_routing_get_port_mixer,
  9371. msm_routing_put_port_mixer),
  9372. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9373. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9374. msm_routing_get_port_mixer,
  9375. msm_routing_put_port_mixer),
  9376. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9377. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9378. msm_routing_get_port_mixer,
  9379. msm_routing_put_port_mixer),
  9380. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9381. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9382. msm_routing_get_port_mixer,
  9383. msm_routing_put_port_mixer),
  9384. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9385. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9386. msm_routing_get_port_mixer,
  9387. msm_routing_put_port_mixer),
  9388. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9389. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9390. msm_routing_get_port_mixer,
  9391. msm_routing_put_port_mixer),
  9392. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9393. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9394. msm_routing_get_port_mixer,
  9395. msm_routing_put_port_mixer),
  9396. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9397. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9398. msm_routing_get_port_mixer,
  9399. msm_routing_put_port_mixer),
  9400. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9401. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9402. msm_routing_get_port_mixer,
  9403. msm_routing_put_port_mixer),
  9404. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9405. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9406. msm_routing_get_port_mixer,
  9407. msm_routing_put_port_mixer),
  9408. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9409. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9410. msm_routing_get_port_mixer,
  9411. msm_routing_put_port_mixer),
  9412. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9413. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9414. msm_routing_get_port_mixer,
  9415. msm_routing_put_port_mixer),
  9416. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9417. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9418. msm_routing_get_port_mixer,
  9419. msm_routing_put_port_mixer),
  9420. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9421. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9422. msm_routing_get_port_mixer,
  9423. msm_routing_put_port_mixer),
  9424. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9425. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9426. msm_routing_get_port_mixer,
  9427. msm_routing_put_port_mixer),
  9428. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9429. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9430. msm_routing_get_port_mixer,
  9431. msm_routing_put_port_mixer),
  9432. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9433. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9434. msm_routing_get_port_mixer,
  9435. msm_routing_put_port_mixer),
  9436. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9437. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9438. msm_routing_get_port_mixer,
  9439. msm_routing_put_port_mixer),
  9440. };
  9441. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  9442. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9443. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9444. msm_routing_get_port_mixer,
  9445. msm_routing_put_port_mixer),
  9446. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9447. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9448. msm_routing_get_port_mixer,
  9449. msm_routing_put_port_mixer),
  9450. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9451. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9452. msm_routing_get_port_mixer,
  9453. msm_routing_put_port_mixer),
  9454. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9455. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9456. msm_routing_get_port_mixer,
  9457. msm_routing_put_port_mixer),
  9458. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9459. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9460. msm_routing_get_port_mixer,
  9461. msm_routing_put_port_mixer),
  9462. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9463. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9464. msm_routing_get_port_mixer,
  9465. msm_routing_put_port_mixer),
  9466. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9467. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9468. msm_routing_get_port_mixer,
  9469. msm_routing_put_port_mixer),
  9470. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9471. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9472. msm_routing_get_port_mixer,
  9473. msm_routing_put_port_mixer),
  9474. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9475. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9476. msm_routing_get_port_mixer,
  9477. msm_routing_put_port_mixer),
  9478. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9479. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9480. msm_routing_get_port_mixer,
  9481. msm_routing_put_port_mixer),
  9482. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9483. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9484. msm_routing_get_port_mixer,
  9485. msm_routing_put_port_mixer),
  9486. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9487. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9488. msm_routing_get_port_mixer,
  9489. msm_routing_put_port_mixer),
  9490. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9491. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9492. msm_routing_get_port_mixer,
  9493. msm_routing_put_port_mixer),
  9494. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9495. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9496. msm_routing_get_port_mixer,
  9497. msm_routing_put_port_mixer),
  9498. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9499. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9500. msm_routing_get_port_mixer,
  9501. msm_routing_put_port_mixer),
  9502. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9503. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9504. msm_routing_get_port_mixer,
  9505. msm_routing_put_port_mixer),
  9506. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9507. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9508. msm_routing_get_port_mixer,
  9509. msm_routing_put_port_mixer),
  9510. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9511. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9512. msm_routing_get_port_mixer,
  9513. msm_routing_put_port_mixer),
  9514. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9515. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9516. msm_routing_get_port_mixer,
  9517. msm_routing_put_port_mixer),
  9518. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9519. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9520. msm_routing_get_port_mixer,
  9521. msm_routing_put_port_mixer),
  9522. };
  9523. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  9524. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9525. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9526. msm_routing_get_port_mixer,
  9527. msm_routing_put_port_mixer),
  9528. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9529. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9530. msm_routing_get_port_mixer,
  9531. msm_routing_put_port_mixer),
  9532. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9533. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9534. msm_routing_get_port_mixer,
  9535. msm_routing_put_port_mixer),
  9536. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9537. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9538. msm_routing_get_port_mixer,
  9539. msm_routing_put_port_mixer),
  9540. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9541. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9542. msm_routing_get_port_mixer,
  9543. msm_routing_put_port_mixer),
  9544. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9545. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9546. msm_routing_get_port_mixer,
  9547. msm_routing_put_port_mixer),
  9548. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9549. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9550. msm_routing_get_port_mixer,
  9551. msm_routing_put_port_mixer),
  9552. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9553. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9554. msm_routing_get_port_mixer,
  9555. msm_routing_put_port_mixer),
  9556. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9557. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9558. msm_routing_get_port_mixer,
  9559. msm_routing_put_port_mixer),
  9560. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9561. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9562. msm_routing_get_port_mixer,
  9563. msm_routing_put_port_mixer),
  9564. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9565. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9566. msm_routing_get_port_mixer,
  9567. msm_routing_put_port_mixer),
  9568. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9569. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9570. msm_routing_get_port_mixer,
  9571. msm_routing_put_port_mixer),
  9572. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9573. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9574. msm_routing_get_port_mixer,
  9575. msm_routing_put_port_mixer),
  9576. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9577. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9578. msm_routing_get_port_mixer,
  9579. msm_routing_put_port_mixer),
  9580. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9581. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9582. msm_routing_get_port_mixer,
  9583. msm_routing_put_port_mixer),
  9584. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9585. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9586. msm_routing_get_port_mixer,
  9587. msm_routing_put_port_mixer),
  9588. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9589. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9590. msm_routing_get_port_mixer,
  9591. msm_routing_put_port_mixer),
  9592. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9593. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9594. msm_routing_get_port_mixer,
  9595. msm_routing_put_port_mixer),
  9596. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9597. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9598. msm_routing_get_port_mixer,
  9599. msm_routing_put_port_mixer),
  9600. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9601. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9602. msm_routing_get_port_mixer,
  9603. msm_routing_put_port_mixer),
  9604. };
  9605. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  9606. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9607. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9608. msm_routing_get_port_mixer,
  9609. msm_routing_put_port_mixer),
  9610. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9611. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9612. msm_routing_get_port_mixer,
  9613. msm_routing_put_port_mixer),
  9614. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9615. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  9616. msm_routing_get_port_mixer,
  9617. msm_routing_put_port_mixer),
  9618. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9619. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9620. msm_routing_get_port_mixer,
  9621. msm_routing_put_port_mixer),
  9622. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9623. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9624. msm_routing_get_port_mixer,
  9625. msm_routing_put_port_mixer),
  9626. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9627. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9628. msm_routing_get_port_mixer,
  9629. msm_routing_put_port_mixer),
  9630. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9631. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9632. msm_routing_get_port_mixer,
  9633. msm_routing_put_port_mixer),
  9634. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9635. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9636. msm_routing_get_port_mixer,
  9637. msm_routing_put_port_mixer),
  9638. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9639. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9640. msm_routing_get_port_mixer,
  9641. msm_routing_put_port_mixer),
  9642. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9643. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9644. msm_routing_get_port_mixer,
  9645. msm_routing_put_port_mixer),
  9646. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9647. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9648. msm_routing_get_port_mixer,
  9649. msm_routing_put_port_mixer),
  9650. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9651. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9652. msm_routing_get_port_mixer,
  9653. msm_routing_put_port_mixer),
  9654. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9655. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9656. msm_routing_get_port_mixer,
  9657. msm_routing_put_port_mixer),
  9658. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9659. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9660. msm_routing_get_port_mixer,
  9661. msm_routing_put_port_mixer),
  9662. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9663. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9664. msm_routing_get_port_mixer,
  9665. msm_routing_put_port_mixer),
  9666. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9667. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9668. msm_routing_get_port_mixer,
  9669. msm_routing_put_port_mixer),
  9670. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9671. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9672. msm_routing_get_port_mixer,
  9673. msm_routing_put_port_mixer),
  9674. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9675. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9676. msm_routing_get_port_mixer,
  9677. msm_routing_put_port_mixer),
  9678. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9679. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9680. msm_routing_get_port_mixer,
  9681. msm_routing_put_port_mixer),
  9682. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9683. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9684. msm_routing_get_port_mixer,
  9685. msm_routing_put_port_mixer),
  9686. };
  9687. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  9688. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9689. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9690. msm_routing_get_port_mixer,
  9691. msm_routing_put_port_mixer),
  9692. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9693. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9694. msm_routing_get_port_mixer,
  9695. msm_routing_put_port_mixer),
  9696. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9697. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9698. msm_routing_get_port_mixer,
  9699. msm_routing_put_port_mixer),
  9700. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9701. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9702. msm_routing_get_port_mixer,
  9703. msm_routing_put_port_mixer),
  9704. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9705. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9706. msm_routing_get_port_mixer,
  9707. msm_routing_put_port_mixer),
  9708. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9709. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9710. msm_routing_get_port_mixer,
  9711. msm_routing_put_port_mixer),
  9712. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9713. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9714. msm_routing_get_port_mixer,
  9715. msm_routing_put_port_mixer),
  9716. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9717. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9718. msm_routing_get_port_mixer,
  9719. msm_routing_put_port_mixer),
  9720. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9721. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9722. msm_routing_get_port_mixer,
  9723. msm_routing_put_port_mixer),
  9724. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9725. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9726. msm_routing_get_port_mixer,
  9727. msm_routing_put_port_mixer),
  9728. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9729. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9730. msm_routing_get_port_mixer,
  9731. msm_routing_put_port_mixer),
  9732. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9733. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9734. msm_routing_get_port_mixer,
  9735. msm_routing_put_port_mixer),
  9736. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9737. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9738. msm_routing_get_port_mixer,
  9739. msm_routing_put_port_mixer),
  9740. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9741. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9742. msm_routing_get_port_mixer,
  9743. msm_routing_put_port_mixer),
  9744. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9745. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9746. msm_routing_get_port_mixer,
  9747. msm_routing_put_port_mixer),
  9748. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9749. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9750. msm_routing_get_port_mixer,
  9751. msm_routing_put_port_mixer),
  9752. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9753. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9754. msm_routing_get_port_mixer,
  9755. msm_routing_put_port_mixer),
  9756. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9757. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9758. msm_routing_get_port_mixer,
  9759. msm_routing_put_port_mixer),
  9760. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9761. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9762. msm_routing_get_port_mixer,
  9763. msm_routing_put_port_mixer),
  9764. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9765. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9766. msm_routing_get_port_mixer,
  9767. msm_routing_put_port_mixer),
  9768. };
  9769. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  9770. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9771. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9772. msm_routing_get_port_mixer,
  9773. msm_routing_put_port_mixer),
  9774. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9775. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9776. msm_routing_get_port_mixer,
  9777. msm_routing_put_port_mixer),
  9778. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9779. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9780. msm_routing_get_port_mixer,
  9781. msm_routing_put_port_mixer),
  9782. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9783. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9784. msm_routing_get_port_mixer,
  9785. msm_routing_put_port_mixer),
  9786. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9787. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9788. msm_routing_get_port_mixer,
  9789. msm_routing_put_port_mixer),
  9790. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9791. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9792. msm_routing_get_port_mixer,
  9793. msm_routing_put_port_mixer),
  9794. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9795. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9796. msm_routing_get_port_mixer,
  9797. msm_routing_put_port_mixer),
  9798. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9799. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9800. msm_routing_get_port_mixer,
  9801. msm_routing_put_port_mixer),
  9802. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9803. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9804. msm_routing_get_port_mixer,
  9805. msm_routing_put_port_mixer),
  9806. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9807. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9808. msm_routing_get_port_mixer,
  9809. msm_routing_put_port_mixer),
  9810. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9811. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9812. msm_routing_get_port_mixer,
  9813. msm_routing_put_port_mixer),
  9814. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9815. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9816. msm_routing_get_port_mixer,
  9817. msm_routing_put_port_mixer),
  9818. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9819. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9820. msm_routing_get_port_mixer,
  9821. msm_routing_put_port_mixer),
  9822. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9823. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9824. msm_routing_get_port_mixer,
  9825. msm_routing_put_port_mixer),
  9826. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9827. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9828. msm_routing_get_port_mixer,
  9829. msm_routing_put_port_mixer),
  9830. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9831. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9832. msm_routing_get_port_mixer,
  9833. msm_routing_put_port_mixer),
  9834. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9835. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9836. msm_routing_get_port_mixer,
  9837. msm_routing_put_port_mixer),
  9838. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9839. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9840. msm_routing_get_port_mixer,
  9841. msm_routing_put_port_mixer),
  9842. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9843. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9844. msm_routing_get_port_mixer,
  9845. msm_routing_put_port_mixer),
  9846. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9847. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9848. msm_routing_get_port_mixer,
  9849. msm_routing_put_port_mixer),
  9850. };
  9851. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  9852. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9853. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9854. msm_routing_get_port_mixer,
  9855. msm_routing_put_port_mixer),
  9856. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9857. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9858. msm_routing_get_port_mixer,
  9859. msm_routing_put_port_mixer),
  9860. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9861. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9862. msm_routing_get_port_mixer,
  9863. msm_routing_put_port_mixer),
  9864. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9865. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9866. msm_routing_get_port_mixer,
  9867. msm_routing_put_port_mixer),
  9868. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9869. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9870. msm_routing_get_port_mixer,
  9871. msm_routing_put_port_mixer),
  9872. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9873. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9874. msm_routing_get_port_mixer,
  9875. msm_routing_put_port_mixer),
  9876. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9877. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9878. msm_routing_get_port_mixer,
  9879. msm_routing_put_port_mixer),
  9880. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9881. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9882. msm_routing_get_port_mixer,
  9883. msm_routing_put_port_mixer),
  9884. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9885. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9886. msm_routing_get_port_mixer,
  9887. msm_routing_put_port_mixer),
  9888. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9889. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9890. msm_routing_get_port_mixer,
  9891. msm_routing_put_port_mixer),
  9892. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9893. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9894. msm_routing_get_port_mixer,
  9895. msm_routing_put_port_mixer),
  9896. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9897. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9898. msm_routing_get_port_mixer,
  9899. msm_routing_put_port_mixer),
  9900. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9901. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9902. msm_routing_get_port_mixer,
  9903. msm_routing_put_port_mixer),
  9904. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9905. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9906. msm_routing_get_port_mixer,
  9907. msm_routing_put_port_mixer),
  9908. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9909. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9910. msm_routing_get_port_mixer,
  9911. msm_routing_put_port_mixer),
  9912. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9913. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9914. msm_routing_get_port_mixer,
  9915. msm_routing_put_port_mixer),
  9916. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9917. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  9918. msm_routing_get_port_mixer,
  9919. msm_routing_put_port_mixer),
  9920. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9921. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  9922. msm_routing_get_port_mixer,
  9923. msm_routing_put_port_mixer),
  9924. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9925. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  9926. msm_routing_get_port_mixer,
  9927. msm_routing_put_port_mixer),
  9928. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9929. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  9930. msm_routing_get_port_mixer,
  9931. msm_routing_put_port_mixer),
  9932. };
  9933. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  9934. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9935. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  9936. msm_routing_get_port_mixer,
  9937. msm_routing_put_port_mixer),
  9938. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9939. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  9940. msm_routing_get_port_mixer,
  9941. msm_routing_put_port_mixer),
  9942. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9943. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  9944. msm_routing_get_port_mixer,
  9945. msm_routing_put_port_mixer),
  9946. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9947. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  9948. msm_routing_get_port_mixer,
  9949. msm_routing_put_port_mixer),
  9950. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9951. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  9952. msm_routing_get_port_mixer,
  9953. msm_routing_put_port_mixer),
  9954. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9955. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  9956. msm_routing_get_port_mixer,
  9957. msm_routing_put_port_mixer),
  9958. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9959. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  9960. msm_routing_get_port_mixer,
  9961. msm_routing_put_port_mixer),
  9962. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9963. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  9964. msm_routing_get_port_mixer,
  9965. msm_routing_put_port_mixer),
  9966. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9967. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  9968. msm_routing_get_port_mixer,
  9969. msm_routing_put_port_mixer),
  9970. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9971. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  9972. msm_routing_get_port_mixer,
  9973. msm_routing_put_port_mixer),
  9974. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9975. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  9976. msm_routing_get_port_mixer,
  9977. msm_routing_put_port_mixer),
  9978. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9979. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  9980. msm_routing_get_port_mixer,
  9981. msm_routing_put_port_mixer),
  9982. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9983. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  9984. msm_routing_get_port_mixer,
  9985. msm_routing_put_port_mixer),
  9986. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9987. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  9988. msm_routing_get_port_mixer,
  9989. msm_routing_put_port_mixer),
  9990. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9991. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  9992. msm_routing_get_port_mixer,
  9993. msm_routing_put_port_mixer),
  9994. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9995. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  9996. msm_routing_get_port_mixer,
  9997. msm_routing_put_port_mixer),
  9998. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9999. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10000. msm_routing_get_port_mixer,
  10001. msm_routing_put_port_mixer),
  10002. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10003. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10004. msm_routing_get_port_mixer,
  10005. msm_routing_put_port_mixer),
  10006. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10007. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10008. msm_routing_get_port_mixer,
  10009. msm_routing_put_port_mixer),
  10010. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10011. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10012. msm_routing_get_port_mixer,
  10013. msm_routing_put_port_mixer),
  10014. };
  10015. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  10016. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10017. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10018. msm_routing_get_port_mixer,
  10019. msm_routing_put_port_mixer),
  10020. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10021. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10022. msm_routing_get_port_mixer,
  10023. msm_routing_put_port_mixer),
  10024. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10025. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10026. msm_routing_get_port_mixer,
  10027. msm_routing_put_port_mixer),
  10028. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10029. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10030. msm_routing_get_port_mixer,
  10031. msm_routing_put_port_mixer),
  10032. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10033. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10034. msm_routing_get_port_mixer,
  10035. msm_routing_put_port_mixer),
  10036. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10037. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10038. msm_routing_get_port_mixer,
  10039. msm_routing_put_port_mixer),
  10040. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10041. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10042. msm_routing_get_port_mixer,
  10043. msm_routing_put_port_mixer),
  10044. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10045. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10046. msm_routing_get_port_mixer,
  10047. msm_routing_put_port_mixer),
  10048. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10049. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10050. msm_routing_get_port_mixer,
  10051. msm_routing_put_port_mixer),
  10052. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10053. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10054. msm_routing_get_port_mixer,
  10055. msm_routing_put_port_mixer),
  10056. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10057. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10058. msm_routing_get_port_mixer,
  10059. msm_routing_put_port_mixer),
  10060. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10061. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10062. msm_routing_get_port_mixer,
  10063. msm_routing_put_port_mixer),
  10064. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10065. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10066. msm_routing_get_port_mixer,
  10067. msm_routing_put_port_mixer),
  10068. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10069. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10070. msm_routing_get_port_mixer,
  10071. msm_routing_put_port_mixer),
  10072. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10073. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10074. msm_routing_get_port_mixer,
  10075. msm_routing_put_port_mixer),
  10076. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10077. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10078. msm_routing_get_port_mixer,
  10079. msm_routing_put_port_mixer),
  10080. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10081. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10082. msm_routing_get_port_mixer,
  10083. msm_routing_put_port_mixer),
  10084. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10085. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10086. msm_routing_get_port_mixer,
  10087. msm_routing_put_port_mixer),
  10088. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10089. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10090. msm_routing_get_port_mixer,
  10091. msm_routing_put_port_mixer),
  10092. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10093. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10094. msm_routing_get_port_mixer,
  10095. msm_routing_put_port_mixer),
  10096. };
  10097. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  10098. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10099. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10100. msm_routing_get_port_mixer,
  10101. msm_routing_put_port_mixer),
  10102. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10103. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10104. msm_routing_get_port_mixer,
  10105. msm_routing_put_port_mixer),
  10106. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10107. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10108. msm_routing_get_port_mixer,
  10109. msm_routing_put_port_mixer),
  10110. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10111. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10112. msm_routing_get_port_mixer,
  10113. msm_routing_put_port_mixer),
  10114. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10115. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10116. msm_routing_get_port_mixer,
  10117. msm_routing_put_port_mixer),
  10118. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10119. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10120. msm_routing_get_port_mixer,
  10121. msm_routing_put_port_mixer),
  10122. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10123. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10124. msm_routing_get_port_mixer,
  10125. msm_routing_put_port_mixer),
  10126. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10127. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10128. msm_routing_get_port_mixer,
  10129. msm_routing_put_port_mixer),
  10130. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10131. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10132. msm_routing_get_port_mixer,
  10133. msm_routing_put_port_mixer),
  10134. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10135. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10136. msm_routing_get_port_mixer,
  10137. msm_routing_put_port_mixer),
  10138. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10139. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10140. msm_routing_get_port_mixer,
  10141. msm_routing_put_port_mixer),
  10142. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10143. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10144. msm_routing_get_port_mixer,
  10145. msm_routing_put_port_mixer),
  10146. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10147. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10148. msm_routing_get_port_mixer,
  10149. msm_routing_put_port_mixer),
  10150. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10151. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10152. msm_routing_get_port_mixer,
  10153. msm_routing_put_port_mixer),
  10154. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10155. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10156. msm_routing_get_port_mixer,
  10157. msm_routing_put_port_mixer),
  10158. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10159. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10160. msm_routing_get_port_mixer,
  10161. msm_routing_put_port_mixer),
  10162. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10163. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10164. msm_routing_get_port_mixer,
  10165. msm_routing_put_port_mixer),
  10166. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10167. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10168. msm_routing_get_port_mixer,
  10169. msm_routing_put_port_mixer),
  10170. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10171. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10172. msm_routing_get_port_mixer,
  10173. msm_routing_put_port_mixer),
  10174. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10175. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10176. msm_routing_get_port_mixer,
  10177. msm_routing_put_port_mixer),
  10178. };
  10179. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  10180. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10181. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10182. msm_routing_get_port_mixer,
  10183. msm_routing_put_port_mixer),
  10184. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10185. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10186. msm_routing_get_port_mixer,
  10187. msm_routing_put_port_mixer),
  10188. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10189. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10190. msm_routing_get_port_mixer,
  10191. msm_routing_put_port_mixer),
  10192. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10193. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10194. msm_routing_get_port_mixer,
  10195. msm_routing_put_port_mixer),
  10196. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10197. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10198. msm_routing_get_port_mixer,
  10199. msm_routing_put_port_mixer),
  10200. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10201. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10202. msm_routing_get_port_mixer,
  10203. msm_routing_put_port_mixer),
  10204. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10205. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10206. msm_routing_get_port_mixer,
  10207. msm_routing_put_port_mixer),
  10208. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10209. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10210. msm_routing_get_port_mixer,
  10211. msm_routing_put_port_mixer),
  10212. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10213. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10214. msm_routing_get_port_mixer,
  10215. msm_routing_put_port_mixer),
  10216. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10217. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10218. msm_routing_get_port_mixer,
  10219. msm_routing_put_port_mixer),
  10220. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10221. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10222. msm_routing_get_port_mixer,
  10223. msm_routing_put_port_mixer),
  10224. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10225. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10226. msm_routing_get_port_mixer,
  10227. msm_routing_put_port_mixer),
  10228. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10229. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10230. msm_routing_get_port_mixer,
  10231. msm_routing_put_port_mixer),
  10232. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10233. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10234. msm_routing_get_port_mixer,
  10235. msm_routing_put_port_mixer),
  10236. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10237. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10238. msm_routing_get_port_mixer,
  10239. msm_routing_put_port_mixer),
  10240. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10241. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10242. msm_routing_get_port_mixer,
  10243. msm_routing_put_port_mixer),
  10244. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10245. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10246. msm_routing_get_port_mixer,
  10247. msm_routing_put_port_mixer),
  10248. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10249. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10250. msm_routing_get_port_mixer,
  10251. msm_routing_put_port_mixer),
  10252. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10253. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10254. msm_routing_get_port_mixer,
  10255. msm_routing_put_port_mixer),
  10256. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10257. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10258. msm_routing_get_port_mixer,
  10259. msm_routing_put_port_mixer),
  10260. };
  10261. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  10262. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10263. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  10264. msm_routing_get_port_mixer,
  10265. msm_routing_put_port_mixer),
  10266. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10267. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  10268. msm_routing_get_port_mixer,
  10269. msm_routing_put_port_mixer),
  10270. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10271. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  10272. msm_routing_get_port_mixer,
  10273. msm_routing_put_port_mixer),
  10274. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10275. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  10276. msm_routing_get_port_mixer,
  10277. msm_routing_put_port_mixer),
  10278. SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10279. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  10280. msm_routing_get_port_mixer,
  10281. msm_routing_put_port_mixer),
  10282. SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10283. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  10284. msm_routing_get_port_mixer,
  10285. msm_routing_put_port_mixer),
  10286. SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10287. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  10288. msm_routing_get_port_mixer,
  10289. msm_routing_put_port_mixer),
  10290. SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10291. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  10292. msm_routing_get_port_mixer,
  10293. msm_routing_put_port_mixer),
  10294. SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10295. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  10296. msm_routing_get_port_mixer,
  10297. msm_routing_put_port_mixer),
  10298. SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10299. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  10300. msm_routing_get_port_mixer,
  10301. msm_routing_put_port_mixer),
  10302. SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10303. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  10304. msm_routing_get_port_mixer,
  10305. msm_routing_put_port_mixer),
  10306. SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10307. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  10308. msm_routing_get_port_mixer,
  10309. msm_routing_put_port_mixer),
  10310. SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10311. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  10312. msm_routing_get_port_mixer,
  10313. msm_routing_put_port_mixer),
  10314. SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10315. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  10316. msm_routing_get_port_mixer,
  10317. msm_routing_put_port_mixer),
  10318. SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10319. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  10320. msm_routing_get_port_mixer,
  10321. msm_routing_put_port_mixer),
  10322. SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10323. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  10324. msm_routing_get_port_mixer,
  10325. msm_routing_put_port_mixer),
  10326. SOC_SINGLE_EXT("QUIN_TDM_TX_0", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10327. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  10328. msm_routing_get_port_mixer,
  10329. msm_routing_put_port_mixer),
  10330. SOC_SINGLE_EXT("QUIN_TDM_TX_1", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10331. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  10332. msm_routing_get_port_mixer,
  10333. msm_routing_put_port_mixer),
  10334. SOC_SINGLE_EXT("QUIN_TDM_TX_2", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10335. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  10336. msm_routing_get_port_mixer,
  10337. msm_routing_put_port_mixer),
  10338. SOC_SINGLE_EXT("QUIN_TDM_TX_3", MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10339. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  10340. msm_routing_get_port_mixer,
  10341. msm_routing_put_port_mixer),
  10342. };
  10343. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  10344. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10345. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10346. msm_routing_put_port_mixer),
  10347. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10348. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10349. msm_routing_put_port_mixer),
  10350. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10351. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10352. msm_routing_put_port_mixer),
  10353. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10354. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10355. msm_routing_put_port_mixer),
  10356. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10357. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10358. msm_routing_put_port_mixer),
  10359. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10360. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10361. msm_routing_put_port_mixer),
  10362. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10363. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10364. msm_routing_put_port_mixer),
  10365. };
  10366. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  10367. SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10368. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10369. msm_routing_put_port_mixer),
  10370. SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10371. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10372. msm_routing_put_port_mixer),
  10373. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10374. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10375. msm_routing_put_port_mixer),
  10376. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10377. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10378. msm_routing_put_port_mixer),
  10379. SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10380. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10381. msm_routing_put_port_mixer),
  10382. SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10383. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  10384. msm_routing_put_port_mixer),
  10385. SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10386. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10387. msm_routing_put_port_mixer),
  10388. SOC_SINGLE_EXT("SLIM_8_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  10389. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10390. msm_routing_put_port_mixer),
  10391. };
  10392. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  10393. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10394. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10395. msm_routing_put_listen_mixer),
  10396. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10397. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10398. msm_routing_put_listen_mixer),
  10399. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10400. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10401. msm_routing_put_listen_mixer),
  10402. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10403. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10404. msm_routing_put_listen_mixer),
  10405. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10406. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10407. msm_routing_put_listen_mixer),
  10408. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10409. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10410. msm_routing_put_listen_mixer),
  10411. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10412. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10413. msm_routing_put_listen_mixer),
  10414. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10415. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  10416. msm_routing_put_listen_mixer),
  10417. };
  10418. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  10419. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10420. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10421. msm_routing_put_listen_mixer),
  10422. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10423. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10424. msm_routing_put_listen_mixer),
  10425. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10426. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10427. msm_routing_put_listen_mixer),
  10428. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10429. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10430. msm_routing_put_listen_mixer),
  10431. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10432. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10433. msm_routing_put_listen_mixer),
  10434. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10435. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10436. msm_routing_put_listen_mixer),
  10437. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10438. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10439. msm_routing_put_listen_mixer),
  10440. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10441. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  10442. msm_routing_put_listen_mixer),
  10443. };
  10444. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  10445. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10446. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10447. msm_routing_put_listen_mixer),
  10448. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10449. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10450. msm_routing_put_listen_mixer),
  10451. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10452. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10453. msm_routing_put_listen_mixer),
  10454. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10455. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10456. msm_routing_put_listen_mixer),
  10457. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10458. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10459. msm_routing_put_listen_mixer),
  10460. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10461. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10462. msm_routing_put_listen_mixer),
  10463. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10464. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10465. msm_routing_put_listen_mixer),
  10466. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10467. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  10468. msm_routing_put_listen_mixer),
  10469. };
  10470. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  10471. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10472. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10473. msm_routing_put_listen_mixer),
  10474. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10475. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10476. msm_routing_put_listen_mixer),
  10477. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10478. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10479. msm_routing_put_listen_mixer),
  10480. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10481. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10482. msm_routing_put_listen_mixer),
  10483. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10484. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10485. msm_routing_put_listen_mixer),
  10486. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10487. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10488. msm_routing_put_listen_mixer),
  10489. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10490. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10491. msm_routing_put_listen_mixer),
  10492. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10493. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  10494. msm_routing_put_listen_mixer),
  10495. };
  10496. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  10497. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10498. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10499. msm_routing_put_listen_mixer),
  10500. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10501. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10502. msm_routing_put_listen_mixer),
  10503. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10504. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10505. msm_routing_put_listen_mixer),
  10506. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10507. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10508. msm_routing_put_listen_mixer),
  10509. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10510. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10511. msm_routing_put_listen_mixer),
  10512. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10513. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10514. msm_routing_put_listen_mixer),
  10515. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10516. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10517. msm_routing_put_listen_mixer),
  10518. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10519. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  10520. msm_routing_put_listen_mixer),
  10521. };
  10522. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  10523. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10524. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10525. msm_routing_put_listen_mixer),
  10526. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10527. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10528. msm_routing_put_listen_mixer),
  10529. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10530. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10531. msm_routing_put_listen_mixer),
  10532. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10533. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10534. msm_routing_put_listen_mixer),
  10535. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10536. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10537. msm_routing_put_listen_mixer),
  10538. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10539. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10540. msm_routing_put_listen_mixer),
  10541. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10542. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10543. msm_routing_put_listen_mixer),
  10544. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10545. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  10546. msm_routing_put_listen_mixer),
  10547. };
  10548. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  10549. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10550. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10551. msm_routing_put_listen_mixer),
  10552. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10553. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10554. msm_routing_put_listen_mixer),
  10555. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10556. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10557. msm_routing_put_listen_mixer),
  10558. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10559. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10560. msm_routing_put_listen_mixer),
  10561. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10562. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10563. msm_routing_put_listen_mixer),
  10564. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10565. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10566. msm_routing_put_listen_mixer),
  10567. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10568. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10569. msm_routing_put_listen_mixer),
  10570. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10571. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  10572. msm_routing_put_listen_mixer),
  10573. };
  10574. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  10575. SOC_SINGLE_EXT("SLIMBUS_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10576. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10577. msm_routing_put_listen_mixer),
  10578. SOC_SINGLE_EXT("SLIMBUS_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10579. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10580. msm_routing_put_listen_mixer),
  10581. SOC_SINGLE_EXT("SLIMBUS_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10582. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10583. msm_routing_put_listen_mixer),
  10584. SOC_SINGLE_EXT("SLIMBUS_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10585. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10586. msm_routing_put_listen_mixer),
  10587. SOC_SINGLE_EXT("SLIMBUS_5_TX", MSM_BACKEND_DAI_SLIMBUS_5_TX,
  10588. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10589. msm_routing_put_listen_mixer),
  10590. SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10591. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10592. msm_routing_put_listen_mixer),
  10593. SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10594. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10595. msm_routing_put_listen_mixer),
  10596. SOC_SINGLE_EXT("INT3_MI2S_TX", MSM_BACKEND_DAI_INT3_MI2S_TX,
  10597. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  10598. msm_routing_put_listen_mixer),
  10599. };
  10600. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  10601. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10602. 0, 1, 0, msm_routing_get_switch_mixer,
  10603. msm_routing_put_switch_mixer);
  10604. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  10605. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10606. 0, 1, 0, msm_routing_get_switch_mixer,
  10607. msm_routing_put_switch_mixer);
  10608. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  10609. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10610. 0, 1, 0, msm_routing_get_switch_mixer,
  10611. msm_routing_put_switch_mixer);
  10612. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  10613. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10614. 0, 1, 0, msm_routing_get_switch_mixer,
  10615. msm_routing_put_switch_mixer);
  10616. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  10617. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10618. 0, 1, 0, msm_routing_get_switch_mixer,
  10619. msm_routing_put_switch_mixer);
  10620. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  10621. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10622. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  10623. msm_routing_put_fm_pcmrx_switch_mixer);
  10624. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  10625. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10626. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  10627. msm_routing_put_int0_mi2s_switch_mixer);
  10628. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  10629. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10630. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  10631. msm_routing_put_int4_mi2s_switch_mixer);
  10632. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  10633. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10634. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  10635. msm_routing_put_pri_mi2s_switch_mixer);
  10636. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  10637. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10638. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  10639. msm_routing_put_sec_mi2s_switch_mixer);
  10640. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  10641. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10642. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  10643. msm_routing_put_tert_mi2s_switch_mixer);
  10644. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  10645. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10646. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  10647. msm_routing_put_quat_mi2s_switch_mixer);
  10648. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  10649. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10650. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  10651. msm_routing_put_quin_mi2s_switch_mixer);
  10652. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  10653. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10654. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10655. msm_routing_put_hfp_switch_mixer);
  10656. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  10657. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10658. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10659. msm_routing_put_hfp_switch_mixer);
  10660. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  10661. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10662. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10663. msm_routing_put_hfp_switch_mixer);
  10664. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  10665. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10666. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  10667. msm_routing_put_hfp_switch_mixer);
  10668. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  10669. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  10670. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  10671. msm_routing_put_usb_switch_mixer);
  10672. static const struct soc_enum lsm_port_enum =
  10673. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  10674. static const char * const lsm_func_text[] = {
  10675. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  10676. };
  10677. static const struct soc_enum lsm_func_enum =
  10678. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  10679. static const struct snd_kcontrol_new lsm_controls[] = {
  10680. /* kcontrol of lsm_function */
  10681. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10682. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10683. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10684. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10685. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10686. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10687. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10688. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10689. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10690. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10691. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10692. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10693. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10694. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10695. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10696. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10697. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  10698. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  10699. /* kcontrol of lsm_port */
  10700. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  10701. msm_routing_lsm_port_get,
  10702. msm_routing_lsm_port_put),
  10703. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  10704. msm_routing_lsm_port_get,
  10705. msm_routing_lsm_port_put),
  10706. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  10707. msm_routing_lsm_port_get,
  10708. msm_routing_lsm_port_put),
  10709. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  10710. msm_routing_lsm_port_get,
  10711. msm_routing_lsm_port_put),
  10712. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  10713. msm_routing_lsm_port_get,
  10714. msm_routing_lsm_port_put),
  10715. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  10716. msm_routing_lsm_port_get,
  10717. msm_routing_lsm_port_put),
  10718. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  10719. msm_routing_lsm_port_get,
  10720. msm_routing_lsm_port_put),
  10721. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  10722. msm_routing_lsm_port_get,
  10723. msm_routing_lsm_port_put),
  10724. };
  10725. static const char * const aanc_slim_0_rx_text[] = {
  10726. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  10727. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  10728. };
  10729. static const struct soc_enum aanc_slim_0_rx_enum =
  10730. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  10731. aanc_slim_0_rx_text);
  10732. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  10733. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  10734. msm_routing_slim_0_rx_aanc_mux_get,
  10735. msm_routing_slim_0_rx_aanc_mux_put)
  10736. };
  10737. static int msm_routing_get_stereo_to_custom_stereo_control(
  10738. struct snd_kcontrol *kcontrol,
  10739. struct snd_ctl_elem_value *ucontrol)
  10740. {
  10741. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  10742. return 0;
  10743. }
  10744. static int msm_routing_put_stereo_to_custom_stereo_control(
  10745. struct snd_kcontrol *kcontrol,
  10746. struct snd_ctl_elem_value *ucontrol)
  10747. {
  10748. int flag = 0, i = 0, rc = 0, idx = 0;
  10749. int be_index = 0, port_id, topo_id;
  10750. unsigned int session_id = 0;
  10751. uint16_t op_FL_ip_FL_weight = 0;
  10752. uint16_t op_FL_ip_FR_weight = 0;
  10753. uint16_t op_FR_ip_FL_weight = 0;
  10754. uint16_t op_FR_ip_FR_weight = 0;
  10755. flag = ucontrol->value.integer.value[0];
  10756. pr_debug("%s E flag %d\n", __func__, flag);
  10757. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  10758. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  10759. __func__, is_custom_stereo_on, flag);
  10760. return 0;
  10761. }
  10762. is_custom_stereo_on = flag ? true : false;
  10763. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  10764. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  10765. port_id = msm_bedais[be_index].port_id;
  10766. if (!msm_bedais[be_index].active)
  10767. continue;
  10768. if ((port_id != SLIMBUS_0_RX) &&
  10769. (port_id != RT_PROXY_PORT_001_RX) &&
  10770. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  10771. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  10772. continue;
  10773. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  10774. MSM_FRONTEND_DAI_MM_SIZE) {
  10775. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  10776. LEGACY_PCM_MODE)
  10777. goto skip_send_custom_stereo;
  10778. session_id =
  10779. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  10780. if (is_custom_stereo_on) {
  10781. op_FL_ip_FL_weight =
  10782. Q14_GAIN_ZERO_POINT_FIVE;
  10783. op_FL_ip_FR_weight =
  10784. Q14_GAIN_ZERO_POINT_FIVE;
  10785. op_FR_ip_FL_weight =
  10786. Q14_GAIN_ZERO_POINT_FIVE;
  10787. op_FR_ip_FR_weight =
  10788. Q14_GAIN_ZERO_POINT_FIVE;
  10789. } else {
  10790. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  10791. op_FL_ip_FR_weight = 0;
  10792. op_FR_ip_FL_weight = 0;
  10793. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  10794. }
  10795. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  10796. unsigned long copp =
  10797. session_copp_map[i]
  10798. [SESSION_TYPE_RX][be_index];
  10799. if (!test_bit(idx, &copp))
  10800. goto skip_send_custom_stereo;
  10801. topo_id = adm_get_topology_for_port_copp_idx(
  10802. msm_bedais[be_index].port_id, idx);
  10803. if (topo_id < 0)
  10804. pr_debug("%s:Err:custom stereo topo %d",
  10805. __func__, topo_id);
  10806. pr_debug("idx %d\n", idx);
  10807. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  10808. rc = msm_ds2_dap_set_custom_stereo_onoff
  10809. (msm_bedais[be_index].port_id,
  10810. idx, is_custom_stereo_on);
  10811. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  10812. rc = dolby_dap_set_custom_stereo_onoff(
  10813. msm_bedais[be_index].port_id,
  10814. idx, is_custom_stereo_on);
  10815. else
  10816. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  10817. (msm_bedais[be_index].port_id,
  10818. idx, session_id,
  10819. op_FL_ip_FL_weight,
  10820. op_FL_ip_FR_weight,
  10821. op_FR_ip_FL_weight,
  10822. op_FR_ip_FR_weight);
  10823. if (rc < 0)
  10824. skip_send_custom_stereo:
  10825. pr_err("%s: err setting custom stereo\n",
  10826. __func__);
  10827. }
  10828. }
  10829. }
  10830. return 0;
  10831. }
  10832. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  10833. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  10834. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  10835. msm_routing_put_stereo_to_custom_stereo_control),
  10836. };
  10837. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10838. struct snd_ctl_elem_value *ucontrol)
  10839. {
  10840. return 0;
  10841. }
  10842. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  10843. struct snd_ctl_elem_value *ucontrol)
  10844. {
  10845. int i = 0, j;
  10846. int num_app_types = ucontrol->value.integer.value[i++];
  10847. pr_debug("%s\n", __func__);
  10848. memset(app_type_cfg, 0, MAX_APP_TYPES*
  10849. sizeof(struct msm_pcm_routing_app_type_data));
  10850. if (num_app_types > MAX_APP_TYPES) {
  10851. pr_err("%s: number of app types exceed the max supported\n",
  10852. __func__);
  10853. return -EINVAL;
  10854. }
  10855. for (j = 0; j < num_app_types; j++) {
  10856. app_type_cfg[j].app_type =
  10857. ucontrol->value.integer.value[i++];
  10858. app_type_cfg[j].sample_rate =
  10859. ucontrol->value.integer.value[i++];
  10860. app_type_cfg[j].bit_width =
  10861. ucontrol->value.integer.value[i++];
  10862. }
  10863. return 0;
  10864. }
  10865. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  10866. struct snd_ctl_elem_value *ucontrol)
  10867. {
  10868. int j, fe_id, be_id, port_type;
  10869. int ret = 0;
  10870. unsigned long copp;
  10871. struct msm_pcm_routing_bdai_data *bedai;
  10872. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10873. SESSION_TYPE_RX;
  10874. int app_type = ucontrol->value.integer.value[1];
  10875. int gain = (ucontrol->value.integer.value[2] +
  10876. ucontrol->value.integer.value[3])/2;
  10877. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10878. MSM_AFE_PORT_TYPE_TX;
  10879. mutex_lock(&routing_lock);
  10880. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10881. if (is_be_dai_extproc(be_id))
  10882. continue;
  10883. bedai = &msm_bedais[be_id];
  10884. if (afe_get_port_type(bedai->port_id) != port_type)
  10885. continue;
  10886. if (!bedai->active)
  10887. continue;
  10888. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10889. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10890. continue;
  10891. if (app_type !=
  10892. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10893. continue;
  10894. copp = session_copp_map[fe_id][dir][be_id];
  10895. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  10896. if (!test_bit(j, &copp))
  10897. continue;
  10898. ret |= adm_set_volume(bedai->port_id, j, gain);
  10899. }
  10900. }
  10901. }
  10902. mutex_unlock(&routing_lock);
  10903. return ret ? -EINVAL : 0;
  10904. }
  10905. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  10906. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  10907. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  10908. msm_routing_put_app_type_cfg_control),
  10909. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  10910. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  10911. };
  10912. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  10913. struct snd_ctl_elem_value *ucontrol)
  10914. {
  10915. int copp_idx, fe_id, be_id, port_type;
  10916. int ret = 0;
  10917. unsigned long copp;
  10918. struct msm_pcm_routing_bdai_data *bedai;
  10919. char *param_data = NULL;
  10920. uint32_t *update_param_data = NULL;
  10921. uint32_t param_size = sizeof(uint32_t) +
  10922. sizeof(struct adm_param_data_v5);
  10923. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  10924. SESSION_TYPE_RX;
  10925. int app_type = ucontrol->value.integer.value[1];
  10926. int module_id = ucontrol->value.integer.value[2];
  10927. int instance_id = ucontrol->value.integer.value[3];
  10928. int param_id = ucontrol->value.integer.value[4];
  10929. int param_value = ucontrol->value.integer.value[5];
  10930. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  10931. MSM_AFE_PORT_TYPE_TX;
  10932. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  10933. __func__, app_type, module_id,
  10934. instance_id, param_id, param_value);
  10935. param_data = kzalloc(param_size, GFP_KERNEL);
  10936. if (!param_data)
  10937. return -ENOMEM;
  10938. update_param_data = (uint32_t *)param_data;
  10939. *update_param_data++ = module_id;
  10940. *update_param_data++ = param_id;
  10941. *update_param_data++ = sizeof(uint32_t);
  10942. *update_param_data++ = param_value;
  10943. mutex_lock(&routing_lock);
  10944. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  10945. if (is_be_dai_extproc(be_id))
  10946. continue;
  10947. bedai = &msm_bedais[be_id];
  10948. if (afe_get_port_type(bedai->port_id) != port_type)
  10949. continue;
  10950. if (!bedai->active)
  10951. continue;
  10952. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  10953. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  10954. continue;
  10955. if (app_type !=
  10956. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  10957. continue;
  10958. copp = session_copp_map[fe_id][dir][be_id];
  10959. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  10960. copp_idx++) {
  10961. if (!test_bit(copp_idx, &copp))
  10962. continue;
  10963. ret = adm_send_params_v5(bedai->port_id,
  10964. copp_idx,
  10965. param_data,
  10966. param_size);
  10967. if (ret) {
  10968. pr_err("%s: Setting param failed with err=%d\n",
  10969. __func__, ret);
  10970. ret = -EINVAL;
  10971. goto done;
  10972. }
  10973. }
  10974. }
  10975. }
  10976. done:
  10977. mutex_unlock(&routing_lock);
  10978. kfree(param_data);
  10979. return ret;
  10980. }
  10981. static const struct snd_kcontrol_new module_cfg_controls[] = {
  10982. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  10983. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  10984. };
  10985. static int msm_routing_get_lsm_app_type_cfg_control(
  10986. struct snd_kcontrol *kcontrol,
  10987. struct snd_ctl_elem_value *ucontrol)
  10988. {
  10989. return 0;
  10990. }
  10991. static int msm_routing_put_lsm_app_type_cfg_control(
  10992. struct snd_kcontrol *kcontrol,
  10993. struct snd_ctl_elem_value *ucontrol)
  10994. {
  10995. int i = 0, j;
  10996. int num_app_types = ucontrol->value.integer.value[i++];
  10997. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  10998. sizeof(struct msm_pcm_routing_app_type_data));
  10999. if (num_app_types > MAX_APP_TYPES) {
  11000. pr_err("%s: number of app types exceed the max supported\n",
  11001. __func__);
  11002. return -EINVAL;
  11003. }
  11004. for (j = 0; j < num_app_types; j++) {
  11005. lsm_app_type_cfg[j].app_type =
  11006. ucontrol->value.integer.value[i++];
  11007. lsm_app_type_cfg[j].sample_rate =
  11008. ucontrol->value.integer.value[i++];
  11009. lsm_app_type_cfg[j].bit_width =
  11010. ucontrol->value.integer.value[i++];
  11011. }
  11012. return 0;
  11013. }
  11014. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  11015. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  11016. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  11017. msm_routing_put_lsm_app_type_cfg_control),
  11018. };
  11019. static int msm_routing_get_use_ds1_or_ds2_control(
  11020. struct snd_kcontrol *kcontrol,
  11021. struct snd_ctl_elem_value *ucontrol)
  11022. {
  11023. ucontrol->value.integer.value[0] = is_ds2_on;
  11024. return 0;
  11025. }
  11026. static int msm_routing_put_use_ds1_or_ds2_control(
  11027. struct snd_kcontrol *kcontrol,
  11028. struct snd_ctl_elem_value *ucontrol)
  11029. {
  11030. is_ds2_on = ucontrol->value.integer.value[0];
  11031. return 0;
  11032. }
  11033. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  11034. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  11035. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  11036. msm_routing_put_use_ds1_or_ds2_control),
  11037. };
  11038. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  11039. struct snd_ctl_elem_value *ucontrol) {
  11040. int rc = 0;
  11041. int be_idx = 0;
  11042. char *param_value;
  11043. int *update_param_value;
  11044. uint32_t param_length = sizeof(uint32_t);
  11045. uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
  11046. param_value = kzalloc(param_length + param_payload_len, GFP_KERNEL);
  11047. if (!param_value)
  11048. return -ENOMEM;
  11049. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  11050. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  11051. break;
  11052. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  11053. rc = adm_get_params(SLIMBUS_0_TX, 0,
  11054. RMS_MODULEID_APPI_PASSTHRU,
  11055. RMS_PARAM_FIRST_SAMPLE,
  11056. param_length + param_payload_len,
  11057. param_value);
  11058. if (rc) {
  11059. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  11060. kfree(param_value);
  11061. return -EINVAL;
  11062. }
  11063. update_param_value = (int *)param_value;
  11064. ucontrol->value.integer.value[0] = update_param_value[0];
  11065. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  11066. __func__, update_param_value[0]);
  11067. }
  11068. kfree(param_value);
  11069. return 0;
  11070. }
  11071. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  11072. struct snd_ctl_elem_value *ucontrol)
  11073. {
  11074. voc_session_id = ucontrol->value.integer.value[0];
  11075. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  11076. return 0;
  11077. }
  11078. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  11079. struct snd_ctl_elem_value *ucontrol)
  11080. {
  11081. ucontrol->value.integer.value[0] = voc_session_id;
  11082. return 0;
  11083. }
  11084. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  11085. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  11086. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  11087. msm_voc_session_id_put),
  11088. };
  11089. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  11090. struct snd_ctl_elem_info *uinfo)
  11091. {
  11092. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11093. uinfo->count = sizeof(struct sound_focus_param);
  11094. return 0;
  11095. }
  11096. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  11097. struct snd_ctl_elem_value *ucontrol)
  11098. {
  11099. int ret = 0;
  11100. struct sound_focus_param soundFocusData;
  11101. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11102. sizeof(struct sound_focus_param));
  11103. ret = voc_set_sound_focus(soundFocusData);
  11104. if (ret) {
  11105. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11106. __func__, ret);
  11107. ret = -EINVAL;
  11108. }
  11109. return ret;
  11110. }
  11111. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  11112. struct snd_ctl_elem_value *ucontrol)
  11113. {
  11114. int ret = 0;
  11115. struct sound_focus_param soundFocusData;
  11116. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  11117. ret = voc_get_sound_focus(&soundFocusData);
  11118. if (ret) {
  11119. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11120. __func__, ret);
  11121. ret = -EINVAL;
  11122. goto done;
  11123. }
  11124. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11125. sizeof(struct sound_focus_param));
  11126. done:
  11127. return ret;
  11128. }
  11129. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  11130. struct snd_ctl_elem_info *uinfo)
  11131. {
  11132. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  11133. uinfo->count = sizeof(struct source_tracking_param);
  11134. return 0;
  11135. }
  11136. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  11137. struct snd_ctl_elem_value *ucontrol)
  11138. {
  11139. return -EINVAL;
  11140. }
  11141. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  11142. int *copp_idx)
  11143. {
  11144. int i, idx, be_idx;
  11145. int ret = 0;
  11146. unsigned long copp;
  11147. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  11148. ret = q6audio_validate_port(port_id);
  11149. if (ret < 0) {
  11150. pr_err("%s: port validation failed id 0x%x ret %d\n",
  11151. __func__, port_id, ret);
  11152. ret = -EINVAL;
  11153. goto done;
  11154. }
  11155. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  11156. if (msm_bedais[be_idx].port_id == port_id)
  11157. break;
  11158. }
  11159. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  11160. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  11161. ret = -EINVAL;
  11162. goto done;
  11163. }
  11164. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  11165. MSM_FRONTEND_DAI_MM_SIZE) {
  11166. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11167. copp = session_copp_map[i]
  11168. [session_type][be_idx];
  11169. if (test_bit(idx, &copp))
  11170. break;
  11171. }
  11172. if (idx >= MAX_COPPS_PER_PORT)
  11173. continue;
  11174. else
  11175. break;
  11176. }
  11177. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  11178. pr_err("%s: Invalid FE, exiting\n", __func__);
  11179. ret = -EINVAL;
  11180. goto done;
  11181. }
  11182. *copp_idx = idx;
  11183. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  11184. done:
  11185. return ret;
  11186. }
  11187. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  11188. const char *prefix, int *port_id)
  11189. {
  11190. int ret = 0;
  11191. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  11192. /*
  11193. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  11194. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  11195. * and compare the string with the backend name to derive the port id.
  11196. */
  11197. if (!strcmp(kcontrol->id.name + strlen(prefix),
  11198. "SLIMBUS_0")) {
  11199. *port_id = SLIMBUS_0_TX;
  11200. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11201. "TERT_MI2S")) {
  11202. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  11203. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11204. "INT3_MI2S")) {
  11205. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  11206. } else {
  11207. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  11208. __func__, kcontrol->id.name);
  11209. ret = -EINVAL;
  11210. goto done;
  11211. }
  11212. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  11213. __func__, kcontrol->id.name, *port_id);
  11214. done:
  11215. return ret;
  11216. }
  11217. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  11218. struct snd_ctl_elem_value *ucontrol)
  11219. {
  11220. int ret = 0;
  11221. struct sound_focus_param soundFocusData;
  11222. int port_id, copp_idx;
  11223. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11224. "Sound Focus Audio Tx ", &port_id);
  11225. if (ret != 0) {
  11226. pr_err("%s: Error in deriving port id, err=%d\n",
  11227. __func__, ret);
  11228. ret = -EINVAL;
  11229. goto done;
  11230. }
  11231. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11232. &copp_idx);
  11233. if (ret) {
  11234. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11235. __func__, port_id);
  11236. ret = -EINVAL;
  11237. goto done;
  11238. }
  11239. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11240. sizeof(struct sound_focus_param));
  11241. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  11242. if (ret) {
  11243. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11244. __func__, ret);
  11245. ret = -EINVAL;
  11246. goto done;
  11247. }
  11248. done:
  11249. return ret;
  11250. }
  11251. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  11252. struct snd_ctl_elem_value *ucontrol)
  11253. {
  11254. int ret = 0;
  11255. struct sound_focus_param soundFocusData;
  11256. int port_id, copp_idx;
  11257. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11258. "Sound Focus Audio Tx ", &port_id);
  11259. if (ret) {
  11260. pr_err("%s: Error in deriving port id, err=%d\n",
  11261. __func__, ret);
  11262. ret = -EINVAL;
  11263. goto done;
  11264. }
  11265. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11266. &copp_idx);
  11267. if (ret) {
  11268. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11269. __func__, port_id);
  11270. ret = -EINVAL;
  11271. goto done;
  11272. }
  11273. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  11274. if (ret) {
  11275. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11276. __func__, ret);
  11277. ret = -EINVAL;
  11278. goto done;
  11279. }
  11280. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11281. sizeof(struct sound_focus_param));
  11282. done:
  11283. return ret;
  11284. }
  11285. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  11286. struct snd_ctl_elem_value *ucontrol)
  11287. {
  11288. int ret = 0;
  11289. struct source_tracking_param sourceTrackingData;
  11290. int port_id, copp_idx;
  11291. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11292. "Source Tracking Audio Tx ", &port_id);
  11293. if (ret) {
  11294. pr_err("%s: Error in deriving port id, err=%d\n",
  11295. __func__, ret);
  11296. ret = -EINVAL;
  11297. goto done;
  11298. }
  11299. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11300. &copp_idx);
  11301. if (ret) {
  11302. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11303. __func__, port_id);
  11304. ret = -EINVAL;
  11305. goto done;
  11306. }
  11307. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  11308. if (ret) {
  11309. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11310. __func__, ret);
  11311. ret = -EINVAL;
  11312. goto done;
  11313. }
  11314. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11315. sizeof(struct source_tracking_param));
  11316. done:
  11317. return ret;
  11318. }
  11319. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  11320. {
  11321. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11322. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11323. .name = "Sound Focus Voice Tx SLIMBUS_0",
  11324. .info = msm_sound_focus_info,
  11325. .get = msm_voice_sound_focus_get,
  11326. .put = msm_voice_sound_focus_put,
  11327. },
  11328. {
  11329. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11330. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11331. .name = "Source Tracking Voice Tx SLIMBUS_0",
  11332. .info = msm_source_tracking_info,
  11333. .get = msm_voice_source_tracking_get,
  11334. },
  11335. {
  11336. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11337. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11338. .name = "Sound Focus Audio Tx SLIMBUS_0",
  11339. .info = msm_sound_focus_info,
  11340. .get = msm_audio_sound_focus_get,
  11341. .put = msm_audio_sound_focus_put,
  11342. },
  11343. {
  11344. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11345. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11346. .name = "Source Tracking Audio Tx SLIMBUS_0",
  11347. .info = msm_source_tracking_info,
  11348. .get = msm_audio_source_tracking_get,
  11349. },
  11350. {
  11351. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11352. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11353. .name = "Sound Focus Voice Tx TERT_MI2S",
  11354. .info = msm_sound_focus_info,
  11355. .get = msm_voice_sound_focus_get,
  11356. .put = msm_voice_sound_focus_put,
  11357. },
  11358. {
  11359. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11360. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11361. .name = "Source Tracking Voice Tx TERT_MI2S",
  11362. .info = msm_source_tracking_info,
  11363. .get = msm_voice_source_tracking_get,
  11364. },
  11365. {
  11366. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11367. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11368. .name = "Sound Focus Audio Tx TERT_MI2S",
  11369. .info = msm_sound_focus_info,
  11370. .get = msm_audio_sound_focus_get,
  11371. .put = msm_audio_sound_focus_put,
  11372. },
  11373. {
  11374. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11375. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11376. .name = "Source Tracking Audio Tx TERT_MI2S",
  11377. .info = msm_source_tracking_info,
  11378. .get = msm_audio_source_tracking_get,
  11379. },
  11380. {
  11381. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11382. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11383. .name = "Sound Focus Voice Tx INT3_MI2S",
  11384. .info = msm_sound_focus_info,
  11385. .get = msm_voice_sound_focus_get,
  11386. .put = msm_voice_sound_focus_put,
  11387. },
  11388. {
  11389. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11390. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11391. .name = "Source Tracking Voice Tx INT3_MI2S",
  11392. .info = msm_source_tracking_info,
  11393. .get = msm_voice_source_tracking_get,
  11394. },
  11395. {
  11396. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11397. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11398. .name = "Sound Focus Audio Tx INT3_MI2S",
  11399. .info = msm_sound_focus_info,
  11400. .get = msm_audio_sound_focus_get,
  11401. .put = msm_audio_sound_focus_put,
  11402. },
  11403. {
  11404. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11405. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11406. .name = "Source Tracking Audio Tx INT3_MI2S",
  11407. .info = msm_source_tracking_info,
  11408. .get = msm_audio_source_tracking_get,
  11409. },
  11410. };
  11411. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  11412. struct snd_ctl_elem_value *ucontrol)
  11413. {
  11414. int ret = 0;
  11415. int item;
  11416. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11417. pr_debug("%s item is %d\n", __func__,
  11418. ucontrol->value.enumerated.item[0]);
  11419. mutex_lock(&routing_lock);
  11420. item = ucontrol->value.enumerated.item[0];
  11421. if (item < e->items) {
  11422. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11423. __func__, e->shift_l, e->values[item]);
  11424. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11425. e->values[item] < MSM_BACKEND_DAI_MAX)
  11426. /* Enable feedback TX path */
  11427. ret = afe_spk_prot_feed_back_cfg(
  11428. msm_bedais[e->values[item]].port_id,
  11429. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  11430. else {
  11431. pr_debug("%s values are out of range item %d\n",
  11432. __func__, e->values[item]);
  11433. /* Disable feedback TX path */
  11434. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11435. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  11436. else
  11437. ret = -EINVAL;
  11438. }
  11439. } else {
  11440. pr_err("%s item value is out of range item\n", __func__);
  11441. ret = -EINVAL;
  11442. }
  11443. mutex_unlock(&routing_lock);
  11444. return ret;
  11445. }
  11446. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  11447. struct snd_ctl_elem_value *ucontrol)
  11448. {
  11449. int ret = 0;
  11450. int item;
  11451. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11452. pr_debug("%s item is %d\n", __func__,
  11453. ucontrol->value.enumerated.item[0]);
  11454. mutex_lock(&routing_lock);
  11455. item = ucontrol->value.enumerated.item[0];
  11456. if (item < e->items) {
  11457. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11458. __func__, e->shift_l, e->values[item]);
  11459. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11460. e->values[item] < MSM_BACKEND_DAI_MAX)
  11461. /* Enable feedback TX path */
  11462. ret = afe_spk_prot_feed_back_cfg(
  11463. msm_bedais[e->values[item]].port_id,
  11464. msm_bedais[e->shift_l].port_id,
  11465. 1, 1, 1);
  11466. else {
  11467. pr_debug("%s values are out of range item %d\n",
  11468. __func__, e->values[item]);
  11469. /* Disable feedback TX path */
  11470. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11471. ret = afe_spk_prot_feed_back_cfg(0,
  11472. 0, 0, 0, 0);
  11473. else
  11474. ret = -EINVAL;
  11475. }
  11476. } else {
  11477. pr_err("%s item value is out of range item\n", __func__);
  11478. ret = -EINVAL;
  11479. }
  11480. mutex_unlock(&routing_lock);
  11481. return ret;
  11482. }
  11483. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  11484. struct snd_ctl_elem_value *ucontrol)
  11485. {
  11486. pr_debug("%s\n", __func__);
  11487. return 0;
  11488. }
  11489. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  11490. struct snd_ctl_elem_value *ucontrol)
  11491. {
  11492. pr_debug("%s\n", __func__);
  11493. ucontrol->value.enumerated.item[0] = 0;
  11494. return 0;
  11495. }
  11496. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  11497. "ZERO", "SLIM4_TX"
  11498. };
  11499. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  11500. "ZERO", "SLIM4_TX"
  11501. };
  11502. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  11503. "ZERO", "SENARY_TX"
  11504. };
  11505. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  11506. "ZERO", "INT5_MI2S_TX"
  11507. };
  11508. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  11509. "ZERO", "INT5_MI2S_TX"
  11510. };
  11511. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  11512. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11513. };
  11514. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  11515. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11516. };
  11517. static const int const mi2s_rx_vi_fb_tx_value[] = {
  11518. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  11519. };
  11520. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  11521. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11522. };
  11523. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  11524. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11525. };
  11526. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  11527. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11528. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  11529. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  11530. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  11531. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11532. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  11533. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  11534. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  11535. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  11536. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  11537. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  11538. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  11539. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11540. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  11541. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  11542. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  11543. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  11544. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11545. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  11546. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  11547. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  11548. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  11549. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  11550. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  11551. spkr_prot_put_vi_lch_port);
  11552. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  11553. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  11554. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  11555. spkr_prot_put_vi_rch_port);
  11556. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  11557. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  11558. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  11559. spkr_prot_put_vi_lch_port);
  11560. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  11561. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  11562. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  11563. spkr_prot_put_vi_lch_port);
  11564. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  11565. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  11566. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  11567. spkr_prot_put_vi_rch_port);
  11568. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  11569. /* Frontend AIF */
  11570. /* Widget name equals to Front-End DAI name<Need confirmation>,
  11571. * Stream name must contains substring of front-end dai name
  11572. */
  11573. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  11574. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  11575. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  11576. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  11577. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  11578. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  11579. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  11580. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  11581. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  11582. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  11583. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  11584. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  11585. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  11586. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  11587. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  11588. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  11589. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  11590. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  11591. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  11592. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  11593. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  11594. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  11595. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  11596. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  11597. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  11598. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  11599. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  11600. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  11601. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  11602. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  11603. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  11604. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  11605. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  11606. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  11607. "VoiceMMode1 Playback", 0, 0, 0, 0),
  11608. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  11609. "VoiceMMode1 Capture", 0, 0, 0, 0),
  11610. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  11611. "VoiceMMode2 Playback", 0, 0, 0, 0),
  11612. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  11613. "VoiceMMode2 Capture", 0, 0, 0, 0),
  11614. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  11615. 0, 0, 0, 0),
  11616. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  11617. 0, 0, 0, 0),
  11618. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  11619. 0, 0, 0, 0),
  11620. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  11621. 0, 0, 0, 0),
  11622. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  11623. 0, 0, 0, 0),
  11624. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  11625. 0, 0, 0, 0),
  11626. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  11627. 0, 0, 0, 0),
  11628. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  11629. 0, 0, 0, 0),
  11630. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  11631. 0, 0, 0, 0),
  11632. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  11633. 0, 0, 0, 0),
  11634. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  11635. 0, 0, 0, 0),
  11636. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  11637. 0, 0, 0, 0),
  11638. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  11639. 0, 0, 0, 0),
  11640. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  11641. 0, 0, 0, 0),
  11642. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  11643. 0, 0, 0, 0),
  11644. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  11645. 0, 0, 0, 0),
  11646. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  11647. 0, 0, 0, 0),
  11648. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  11649. 0, 0, 0, 0),
  11650. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  11651. 0, 0, 0, 0),
  11652. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  11653. 0, 0, 0, 0),
  11654. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  11655. 0, 0, 0, 0),
  11656. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  11657. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  11658. 0, 0, 0, 0),
  11659. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  11660. "INT0 MI2S_RX Hostless Playback",
  11661. 0, 0, 0, 0),
  11662. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  11663. "INT4 MI2S_RX Hostless Playback",
  11664. 0, 0, 0, 0),
  11665. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  11666. "Primary MI2S_RX Hostless Playback",
  11667. 0, 0, 0, 0),
  11668. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  11669. "Secondary MI2S_RX Hostless Playback",
  11670. 0, 0, 0, 0),
  11671. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  11672. "Tertiary MI2S_RX Hostless Playback",
  11673. 0, 0, 0, 0),
  11674. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  11675. "Quaternary MI2S_RX Hostless Playback",
  11676. 0, 0, 0, 0),
  11677. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  11678. "Quinary MI2S_RX Hostless Playback",
  11679. 0, 0, 0, 0),
  11680. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  11681. 0, 0, 0, 0),
  11682. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  11683. 0, 0, 0, 0),
  11684. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  11685. 0, 0, 0, 0),
  11686. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  11687. "INT3 MI2S_TX Hostless Capture",
  11688. 0, 0, 0, 0),
  11689. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  11690. "Tertiary MI2S_TX Hostless Capture",
  11691. 0, 0, 0, 0),
  11692. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  11693. "Secondary MI2S_TX Hostless Capture",
  11694. 0, 0, 0, 0),
  11695. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  11696. "Primary MI2S_TX Hostless Capture",
  11697. 0, 0, 0, 0),
  11698. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  11699. 0, 0, 0, 0),
  11700. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  11701. 0, 0, 0, 0),
  11702. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  11703. "Quaternary MI2S_TX Hostless Capture",
  11704. 0, 0, 0, 0),
  11705. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  11706. "Quinary MI2S_TX Hostless Capture",
  11707. 0, 0, 0, 0),
  11708. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  11709. "Primary TDM0 Hostless Playback",
  11710. 0, 0, 0, 0),
  11711. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  11712. "Primary TDM0 Hostless Capture",
  11713. 0, 0, 0, 0),
  11714. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  11715. "Primary TDM1 Hostless Playback",
  11716. 0, 0, 0, 0),
  11717. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  11718. "Primary TDM1 Hostless Capture",
  11719. 0, 0, 0, 0),
  11720. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  11721. "Primary TDM2 Hostless Playback",
  11722. 0, 0, 0, 0),
  11723. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  11724. "Primary TDM2 Hostless Capture",
  11725. 0, 0, 0, 0),
  11726. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  11727. "Primary TDM3 Hostless Playback",
  11728. 0, 0, 0, 0),
  11729. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  11730. "Primary TDM3 Hostless Capture",
  11731. 0, 0, 0, 0),
  11732. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  11733. "Primary TDM4 Hostless Playback",
  11734. 0, 0, 0, 0),
  11735. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  11736. "Primary TDM4 Hostless Capture",
  11737. 0, 0, 0, 0),
  11738. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  11739. "Primary TDM5 Hostless Playback",
  11740. 0, 0, 0, 0),
  11741. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  11742. "Primary TDM5 Hostless Capture",
  11743. 0, 0, 0, 0),
  11744. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  11745. "Primary TDM6 Hostless Playback",
  11746. 0, 0, 0, 0),
  11747. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  11748. "Primary TDM6 Hostless Capture",
  11749. 0, 0, 0, 0),
  11750. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  11751. "Primary TDM7 Hostless Playback",
  11752. 0, 0, 0, 0),
  11753. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  11754. "Primary TDM7 Hostless Capture",
  11755. 0, 0, 0, 0),
  11756. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  11757. "Secondary TDM0 Hostless Playback",
  11758. 0, 0, 0, 0),
  11759. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  11760. "Secondary TDM0 Hostless Capture",
  11761. 0, 0, 0, 0),
  11762. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  11763. "Secondary TDM1 Hostless Playback",
  11764. 0, 0, 0, 0),
  11765. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  11766. "Secondary TDM1 Hostless Capture",
  11767. 0, 0, 0, 0),
  11768. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  11769. "Secondary TDM2 Hostless Playback",
  11770. 0, 0, 0, 0),
  11771. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  11772. "Secondary TDM2 Hostless Capture",
  11773. 0, 0, 0, 0),
  11774. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  11775. "Secondary TDM3 Hostless Playback",
  11776. 0, 0, 0, 0),
  11777. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  11778. "Secondary TDM3 Hostless Capture",
  11779. 0, 0, 0, 0),
  11780. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  11781. "Secondary TDM4 Hostless Playback",
  11782. 0, 0, 0, 0),
  11783. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  11784. "Secondary TDM4 Hostless Capture",
  11785. 0, 0, 0, 0),
  11786. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  11787. "Secondary TDM5 Hostless Playback",
  11788. 0, 0, 0, 0),
  11789. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  11790. "Secondary TDM5 Hostless Capture",
  11791. 0, 0, 0, 0),
  11792. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  11793. "Secondary TDM6 Hostless Playback",
  11794. 0, 0, 0, 0),
  11795. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  11796. "Secondary TDM6 Hostless Capture",
  11797. 0, 0, 0, 0),
  11798. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  11799. "Secondary TDM7 Hostless Playback",
  11800. 0, 0, 0, 0),
  11801. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  11802. "Secondary TDM7 Hostless Capture",
  11803. 0, 0, 0, 0),
  11804. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  11805. "Tertiary TDM0 Hostless Playback",
  11806. 0, 0, 0, 0),
  11807. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  11808. "Tertiary TDM0 Hostless Capture",
  11809. 0, 0, 0, 0),
  11810. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  11811. "Tertiary TDM1 Hostless Playback",
  11812. 0, 0, 0, 0),
  11813. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  11814. "Tertiary TDM1 Hostless Capture",
  11815. 0, 0, 0, 0),
  11816. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  11817. "Tertiary TDM2 Hostless Playback",
  11818. 0, 0, 0, 0),
  11819. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  11820. "Tertiary TDM2 Hostless Capture",
  11821. 0, 0, 0, 0),
  11822. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  11823. "Tertiary TDM3 Hostless Playback",
  11824. 0, 0, 0, 0),
  11825. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  11826. "Tertiary TDM3 Hostless Capture",
  11827. 0, 0, 0, 0),
  11828. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  11829. "Tertiary TDM4 Hostless Playback",
  11830. 0, 0, 0, 0),
  11831. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  11832. "Tertiary TDM4 Hostless Capture",
  11833. 0, 0, 0, 0),
  11834. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  11835. "Tertiary TDM5 Hostless Playback",
  11836. 0, 0, 0, 0),
  11837. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  11838. "Tertiary TDM5 Hostless Capture",
  11839. 0, 0, 0, 0),
  11840. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  11841. "Tertiary TDM6 Hostless Playback",
  11842. 0, 0, 0, 0),
  11843. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  11844. "Tertiary TDM6 Hostless Capture",
  11845. 0, 0, 0, 0),
  11846. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  11847. "Tertiary TDM7 Hostless Playback",
  11848. 0, 0, 0, 0),
  11849. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  11850. "Tertiary TDM7 Hostless Capture",
  11851. 0, 0, 0, 0),
  11852. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  11853. "Quaternary TDM0 Hostless Playback",
  11854. 0, 0, 0, 0),
  11855. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  11856. "Quaternary TDM0 Hostless Capture",
  11857. 0, 0, 0, 0),
  11858. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  11859. "Quaternary TDM1 Hostless Playback",
  11860. 0, 0, 0, 0),
  11861. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  11862. "Quaternary TDM1 Hostless Capture",
  11863. 0, 0, 0, 0),
  11864. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  11865. "Quaternary TDM2 Hostless Playback",
  11866. 0, 0, 0, 0),
  11867. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  11868. "Quaternary TDM2 Hostless Capture",
  11869. 0, 0, 0, 0),
  11870. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  11871. "Quaternary TDM3 Hostless Playback",
  11872. 0, 0, 0, 0),
  11873. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  11874. "Quaternary TDM3 Hostless Capture",
  11875. 0, 0, 0, 0),
  11876. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  11877. "Quaternary TDM4 Hostless Playback",
  11878. 0, 0, 0, 0),
  11879. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  11880. "Quaternary TDM4 Hostless Capture",
  11881. 0, 0, 0, 0),
  11882. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  11883. "Quaternary TDM5 Hostless Playback",
  11884. 0, 0, 0, 0),
  11885. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  11886. "Quaternary TDM5 Hostless Capture",
  11887. 0, 0, 0, 0),
  11888. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  11889. "Quaternary TDM6 Hostless Playback",
  11890. 0, 0, 0, 0),
  11891. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  11892. "Quaternary TDM6 Hostless Capture",
  11893. 0, 0, 0, 0),
  11894. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  11895. "Quaternary TDM7 Hostless Playback",
  11896. 0, 0, 0, 0),
  11897. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  11898. "Quaternary TDM7 Hostless Capture",
  11899. 0, 0, 0, 0),
  11900. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  11901. "Quinary TDM0 Hostless Playback",
  11902. 0, 0, 0, 0),
  11903. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  11904. "Quinary TDM0 Hostless Capture",
  11905. 0, 0, 0, 0),
  11906. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  11907. "Quinary TDM1 Hostless Playback",
  11908. 0, 0, 0, 0),
  11909. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  11910. "Quinary TDM1 Hostless Capture",
  11911. 0, 0, 0, 0),
  11912. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  11913. "Quinary TDM2 Hostless Playback",
  11914. 0, 0, 0, 0),
  11915. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  11916. "Quinary TDM2 Hostless Capture",
  11917. 0, 0, 0, 0),
  11918. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  11919. "Quinary TDM3 Hostless Playback",
  11920. 0, 0, 0, 0),
  11921. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  11922. "Quinary TDM3 Hostless Capture",
  11923. 0, 0, 0, 0),
  11924. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  11925. "Quinary TDM4 Hostless Playback",
  11926. 0, 0, 0, 0),
  11927. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  11928. "Quinary TDM4 Hostless Capture",
  11929. 0, 0, 0, 0),
  11930. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  11931. "Quinary TDM5 Hostless Playback",
  11932. 0, 0, 0, 0),
  11933. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  11934. "Quinary TDM5 Hostless Capture",
  11935. 0, 0, 0, 0),
  11936. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  11937. "Quinary TDM6 Hostless Playback",
  11938. 0, 0, 0, 0),
  11939. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  11940. "Quinary TDM6 Hostless Capture",
  11941. 0, 0, 0, 0),
  11942. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  11943. "Quinary TDM7 Hostless Playback",
  11944. 0, 0, 0, 0),
  11945. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  11946. "Quinary TDM7 Hostless Capture",
  11947. 0, 0, 0, 0),
  11948. /* LSM */
  11949. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  11950. 0, 0, 0, 0),
  11951. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  11952. 0, 0, 0, 0),
  11953. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  11954. 0, 0, 0, 0),
  11955. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  11956. 0, 0, 0, 0),
  11957. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  11958. 0, 0, 0, 0),
  11959. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  11960. 0, 0, 0, 0),
  11961. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  11962. 0, 0, 0, 0),
  11963. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  11964. 0, 0, 0, 0),
  11965. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  11966. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  11967. /* Backend AIF */
  11968. /* Stream name equals to backend dai link stream name */
  11969. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  11970. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  11971. 0, 0, 0, 0),
  11972. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  11973. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  11974. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  11975. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  11976. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  11977. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  11978. 0, 0, 0, 0),
  11979. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  11980. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  11981. 0, 0, 0, 0),
  11982. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  11983. 0, 0, 0, 0),
  11984. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  11985. 0, 0, 0, 0),
  11986. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  11987. "Secondary MI2S Playback SD1",
  11988. 0, 0, 0, 0),
  11989. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  11990. 0, 0, 0, 0),
  11991. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  11992. 0, 0, 0, 0),
  11993. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  11994. 0, 0, 0, 0),
  11995. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  11996. 0, 0, 0, 0),
  11997. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  11998. 0, 0, 0, 0),
  11999. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  12000. 0, 0, 0, 0),
  12001. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  12002. 0, 0, 0, 0),
  12003. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  12004. 0, 0, 0, 0),
  12005. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  12006. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  12007. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  12008. 0, 0, 0, 0),
  12009. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  12010. 0, 0, 0, 0),
  12011. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  12012. 0, 0, 0, 0),
  12013. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  12014. 0, 0, 0, 0),
  12015. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  12016. 0, 0, 0, 0),
  12017. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  12018. 0, 0, 0, 0),
  12019. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  12020. 0, 0, 0, 0),
  12021. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  12022. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  12023. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  12024. 0, 0, 0, 0),
  12025. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  12026. 0, 0, 0, 0),
  12027. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  12028. 0, 0, 0, 0),
  12029. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  12030. 0, 0, 0, 0),
  12031. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  12032. 0, 0, 0, 0),
  12033. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  12034. 0, 0, 0, 0),
  12035. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  12036. 0, 0, 0, 0),
  12037. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  12038. 0, 0, 0, 0),
  12039. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  12040. 0, 0, 0, 0),
  12041. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  12042. 0, 0, 0, 0),
  12043. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  12044. 0, 0, 0, 0),
  12045. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  12046. 0, 0, 0, 0),
  12047. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  12048. 0, 0, 0, 0),
  12049. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  12050. 0, 0, 0, 0),
  12051. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  12052. 0, 0, 0, 0),
  12053. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  12054. 0, 0, 0, 0),
  12055. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  12056. 0, 0, 0, 0),
  12057. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  12058. 0, 0, 0, 0),
  12059. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  12060. 0, 0, 0, 0),
  12061. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  12062. 0, 0, 0, 0),
  12063. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  12064. 0, 0, 0, 0),
  12065. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  12066. 0, 0, 0, 0),
  12067. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  12068. 0, 0, 0, 0),
  12069. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  12070. 0, 0, 0, 0),
  12071. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  12072. 0, 0, 0, 0),
  12073. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  12074. 0, 0, 0, 0),
  12075. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  12076. 0, 0, 0, 0),
  12077. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  12078. 0, 0, 0, 0),
  12079. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  12080. 0, 0, 0, 0),
  12081. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  12082. 0, 0, 0, 0),
  12083. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  12084. 0, 0, 0, 0),
  12085. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  12086. 0, 0, 0, 0),
  12087. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  12088. 0, 0, 0, 0),
  12089. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  12090. 0, 0, 0, 0),
  12091. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  12092. 0, 0, 0, 0),
  12093. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  12094. 0, 0, 0, 0),
  12095. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  12096. 0, 0, 0, 0),
  12097. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  12098. 0, 0, 0, 0),
  12099. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  12100. 0, 0, 0, 0),
  12101. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  12102. 0, 0, 0, 0),
  12103. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  12104. 0, 0, 0, 0),
  12105. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  12106. 0, 0, 0, 0),
  12107. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  12108. 0, 0, 0, 0),
  12109. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  12110. 0, 0, 0, 0),
  12111. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  12112. 0, 0, 0, 0),
  12113. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  12114. 0, 0, 0, 0),
  12115. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  12116. 0, 0, 0, 0),
  12117. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  12118. 0, 0, 0, 0),
  12119. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  12120. 0, 0, 0, 0),
  12121. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  12122. 0, 0, 0, 0),
  12123. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  12124. 0, 0, 0, 0),
  12125. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  12126. 0, 0, 0, 0),
  12127. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  12128. 0, 0, 0, 0),
  12129. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  12130. 0, 0, 0, 0),
  12131. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  12132. 0, 0, 0, 0),
  12133. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  12134. 0, 0, 0, 0),
  12135. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  12136. 0, 0, 0, 0),
  12137. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  12138. 0, 0, 0, 0),
  12139. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  12140. 0, 0, 0, 0),
  12141. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  12142. 0, 0, 0, 0),
  12143. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  12144. 0, 0, 0, 0),
  12145. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  12146. 0, 0, 0, 0),
  12147. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  12148. 0, 0, 0, 0),
  12149. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  12150. 0, 0, 0, 0),
  12151. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  12152. 0, 0, 0, 0),
  12153. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  12154. 0, 0, 0, 0),
  12155. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  12156. 0, 0, 0, 0),
  12157. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  12158. 0, 0, 0, 0),
  12159. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  12160. 0, 0, 0, 0),
  12161. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  12162. 0, 0, 0, 0),
  12163. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  12164. 0, 0, 0, 0),
  12165. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  12166. 0, 0, 0, 0),
  12167. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  12168. 0, 0, 0, 0),
  12169. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  12170. 0, 0, 0, 0),
  12171. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  12172. 0, 0, 0, 0),
  12173. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  12174. 0, 0, 0, 0),
  12175. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  12176. 0, 0, 0, 0),
  12177. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  12178. 0, 0, 0, 0),
  12179. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  12180. 0, 0, 0, 0),
  12181. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  12182. 0, 0, 0, 0),
  12183. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  12184. 0, 0, 0, 0),
  12185. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  12186. 0, 0, 0, 0),
  12187. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  12188. 0, 0, 0, 0),
  12189. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  12190. 0, 0, 0, 0),
  12191. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  12192. 0, 0, 0, 0),
  12193. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  12194. 0, 0, 0, 0),
  12195. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  12196. 0, 0, 0, 0),
  12197. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  12198. 0, 0, 0, 0),
  12199. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  12200. 0, 0, 0, 0),
  12201. /* incall */
  12202. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  12203. 0, 0, 0, 0),
  12204. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  12205. 0, 0, 0, 0),
  12206. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  12207. 0, 0, 0, 0),
  12208. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  12209. 0, 0, 0, 0),
  12210. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  12211. 0, 0, 0, 0),
  12212. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  12213. 0, 0, 0, 0),
  12214. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  12215. 0, 0, 0, 0),
  12216. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  12217. 0, 0, 0, 0),
  12218. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  12219. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  12220. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  12221. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  12222. 0, 0, 0, 0),
  12223. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  12224. 0, 0, 0, 0),
  12225. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  12226. 0, 0, 0, 0),
  12227. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  12228. 0, 0, 0, 0),
  12229. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  12230. 0, 0, 0, 0),
  12231. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  12232. 0, 0, 0, 0),
  12233. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  12234. 0, 0, 0, 0),
  12235. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  12236. 0, 0, 0, 0),
  12237. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  12238. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  12239. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  12240. 0, 0, 0, 0),
  12241. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  12242. 0, 0, 0, 0),
  12243. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  12244. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  12245. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  12246. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  12247. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  12248. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  12249. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  12250. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  12251. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  12252. /* In- call recording */
  12253. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  12254. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  12255. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  12256. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  12257. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  12258. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  12259. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  12260. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  12261. /* Switch Definitions */
  12262. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  12263. &slim_fm_switch_mixer_controls),
  12264. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  12265. &slim1_fm_switch_mixer_controls),
  12266. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  12267. &slim3_fm_switch_mixer_controls),
  12268. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  12269. &slim4_fm_switch_mixer_controls),
  12270. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  12271. &slim6_fm_switch_mixer_controls),
  12272. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12273. &pcm_rx_switch_mixer_controls),
  12274. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12275. &int0_mi2s_rx_switch_mixer_controls),
  12276. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12277. &int4_mi2s_rx_switch_mixer_controls),
  12278. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12279. &pri_mi2s_rx_switch_mixer_controls),
  12280. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12281. &sec_mi2s_rx_switch_mixer_controls),
  12282. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12283. &tert_mi2s_rx_switch_mixer_controls),
  12284. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12285. &quat_mi2s_rx_switch_mixer_controls),
  12286. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12287. &quin_mi2s_rx_switch_mixer_controls),
  12288. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12289. &hfp_pri_aux_switch_mixer_controls),
  12290. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12291. &hfp_aux_switch_mixer_controls),
  12292. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  12293. &hfp_int_switch_mixer_controls),
  12294. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  12295. &hfp_slim7_switch_mixer_controls),
  12296. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  12297. &usb_switch_mixer_controls),
  12298. /* Mixer definitions */
  12299. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12300. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  12301. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12302. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  12303. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12304. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  12305. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12306. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  12307. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12308. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  12309. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12310. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  12311. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  12312. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  12313. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  12314. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  12315. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12316. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  12317. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12318. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  12319. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12320. quaternary_mi2s_rx_mixer_controls,
  12321. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  12322. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12323. tertiary_mi2s_rx_mixer_controls,
  12324. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  12325. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12326. secondary_mi2s_rx_mixer_controls,
  12327. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  12328. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12329. secondary_mi2s_rx2_mixer_controls,
  12330. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  12331. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12332. primary_mi2s_rx_mixer_controls,
  12333. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  12334. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12335. int0_mi2s_rx_mixer_controls,
  12336. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  12337. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12338. int4_mi2s_rx_mixer_controls,
  12339. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  12340. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12341. quinary_mi2s_rx_mixer_controls,
  12342. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  12343. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12344. pri_tdm_rx_0_mixer_controls,
  12345. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  12346. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12347. pri_tdm_rx_1_mixer_controls,
  12348. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  12349. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12350. pri_tdm_rx_2_mixer_controls,
  12351. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  12352. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12353. pri_tdm_rx_3_mixer_controls,
  12354. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  12355. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12356. pri_tdm_tx_0_mixer_controls,
  12357. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  12358. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12359. sec_tdm_rx_0_mixer_controls,
  12360. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  12361. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12362. sec_tdm_rx_1_mixer_controls,
  12363. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  12364. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12365. sec_tdm_rx_2_mixer_controls,
  12366. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  12367. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12368. sec_tdm_rx_3_mixer_controls,
  12369. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  12370. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12371. sec_tdm_tx_0_mixer_controls,
  12372. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  12373. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12374. tert_tdm_rx_0_mixer_controls,
  12375. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  12376. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12377. tert_tdm_tx_0_mixer_controls,
  12378. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  12379. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12380. tert_tdm_rx_1_mixer_controls,
  12381. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  12382. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12383. tert_tdm_rx_2_mixer_controls,
  12384. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  12385. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12386. tert_tdm_rx_3_mixer_controls,
  12387. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  12388. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12389. tert_tdm_rx_4_mixer_controls,
  12390. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  12391. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12392. quat_tdm_rx_0_mixer_controls,
  12393. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  12394. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12395. quat_tdm_tx_0_mixer_controls,
  12396. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  12397. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12398. quat_tdm_rx_1_mixer_controls,
  12399. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  12400. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12401. quat_tdm_rx_2_mixer_controls,
  12402. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  12403. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12404. quat_tdm_rx_3_mixer_controls,
  12405. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  12406. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12407. quin_tdm_rx_0_mixer_controls,
  12408. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  12409. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12410. quin_tdm_tx_0_mixer_controls,
  12411. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  12412. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12413. quin_tdm_rx_1_mixer_controls,
  12414. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  12415. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12416. quin_tdm_rx_2_mixer_controls,
  12417. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  12418. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12419. quin_tdm_rx_3_mixer_controls,
  12420. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  12421. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  12422. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  12423. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  12424. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  12425. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  12426. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  12427. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  12428. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  12429. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  12430. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  12431. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  12432. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  12433. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  12434. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  12435. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  12436. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  12437. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  12438. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  12439. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  12440. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  12441. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  12442. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  12443. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  12444. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  12445. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  12446. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  12447. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  12448. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  12449. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12450. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  12451. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12452. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  12453. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12454. tert_auxpcm_rx_mixer_controls,
  12455. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  12456. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12457. quat_auxpcm_rx_mixer_controls,
  12458. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  12459. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12460. quin_auxpcm_rx_mixer_controls,
  12461. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  12462. /* incall */
  12463. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  12464. incall_music_delivery_mixer_controls,
  12465. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  12466. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12467. incall_music2_delivery_mixer_controls,
  12468. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  12469. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12470. slimbus_4_rx_mixer_controls,
  12471. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  12472. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12473. slimbus_6_rx_mixer_controls,
  12474. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  12475. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12476. usb_audio_rx_mixer_controls,
  12477. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  12478. /* Voice Mixer */
  12479. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  12480. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  12481. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  12482. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  12483. SND_SOC_NOPM, 0, 0,
  12484. sec_i2s_rx_voice_mixer_controls,
  12485. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  12486. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  12487. SND_SOC_NOPM, 0, 0,
  12488. sec_mi2s_rx_voice_mixer_controls,
  12489. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  12490. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  12491. SND_SOC_NOPM, 0, 0,
  12492. slimbus_rx_voice_mixer_controls,
  12493. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  12494. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  12495. SND_SOC_NOPM, 0, 0,
  12496. bt_sco_rx_voice_mixer_controls,
  12497. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  12498. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  12499. SND_SOC_NOPM, 0, 0,
  12500. afe_pcm_rx_voice_mixer_controls,
  12501. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  12502. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  12503. SND_SOC_NOPM, 0, 0,
  12504. aux_pcm_rx_voice_mixer_controls,
  12505. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  12506. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  12507. SND_SOC_NOPM, 0, 0,
  12508. sec_aux_pcm_rx_voice_mixer_controls,
  12509. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  12510. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  12511. SND_SOC_NOPM, 0, 0,
  12512. tert_aux_pcm_rx_voice_mixer_controls,
  12513. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  12514. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  12515. SND_SOC_NOPM, 0, 0,
  12516. quat_aux_pcm_rx_voice_mixer_controls,
  12517. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  12518. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  12519. SND_SOC_NOPM, 0, 0,
  12520. quin_aux_pcm_rx_voice_mixer_controls,
  12521. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  12522. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  12523. SND_SOC_NOPM, 0, 0,
  12524. hdmi_rx_voice_mixer_controls,
  12525. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  12526. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  12527. SND_SOC_NOPM, 0, 0,
  12528. mi2s_rx_voice_mixer_controls,
  12529. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  12530. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  12531. SND_SOC_NOPM, 0, 0,
  12532. pri_mi2s_rx_voice_mixer_controls,
  12533. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  12534. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  12535. SND_SOC_NOPM, 0, 0,
  12536. int0_mi2s_rx_voice_mixer_controls,
  12537. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  12538. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  12539. SND_SOC_NOPM, 0, 0,
  12540. int4_mi2s_rx_voice_mixer_controls,
  12541. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  12542. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  12543. SND_SOC_NOPM, 0, 0,
  12544. tert_mi2s_rx_voice_mixer_controls,
  12545. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  12546. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  12547. SND_SOC_NOPM, 0, 0,
  12548. quat_mi2s_rx_voice_mixer_controls,
  12549. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  12550. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  12551. SND_SOC_NOPM, 0, 0,
  12552. quin_mi2s_rx_voice_mixer_controls,
  12553. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  12554. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  12555. SND_SOC_NOPM, 0, 0,
  12556. quat_tdm_rx_2_voice_mixer_controls,
  12557. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  12558. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  12559. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  12560. ARRAY_SIZE(tx_voip_mixer_controls)),
  12561. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  12562. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  12563. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  12564. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  12565. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  12566. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  12567. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12568. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  12569. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12570. int_bt_a2dp_rx_mixer_controls,
  12571. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  12572. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12573. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  12574. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12575. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  12576. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12577. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  12578. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12579. tx_voice2_stub_mixer_controls,
  12580. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  12581. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12582. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  12583. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  12584. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  12585. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  12586. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  12587. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12588. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  12589. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  12590. SND_SOC_NOPM, 0, 0,
  12591. slimbus_6_rx_voice_mixer_controls,
  12592. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  12593. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12594. slimbus_7_rx_voice_mixer_controls,
  12595. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  12596. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12597. slimbus_8_rx_voice_mixer_controls,
  12598. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  12599. /* port mixer */
  12600. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  12601. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  12602. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  12603. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  12604. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  12605. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  12606. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  12607. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  12608. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  12609. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  12610. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  12611. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  12612. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  12613. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  12614. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  12615. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  12616. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  12617. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  12618. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12619. sbus_1_rx_port_mixer_controls,
  12620. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  12621. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12622. bt_sco_rx_port_mixer_controls,
  12623. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  12624. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  12625. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  12626. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  12627. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  12628. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  12629. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  12630. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  12631. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  12632. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  12633. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  12634. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  12635. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  12636. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  12637. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  12638. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  12639. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  12640. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  12641. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  12642. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12643. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  12644. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12645. primary_mi2s_rx_port_mixer_controls,
  12646. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  12647. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12648. sec_mi2s_rx_port_mixer_controls,
  12649. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  12650. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12651. tert_mi2s_rx_port_mixer_controls,
  12652. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  12653. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12654. quat_mi2s_rx_port_mixer_controls,
  12655. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  12656. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12657. quin_mi2s_rx_port_mixer_controls,
  12658. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  12659. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12660. pri_tdm_rx_0_port_mixer_controls,
  12661. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  12662. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12663. pri_tdm_rx_1_port_mixer_controls,
  12664. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  12665. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12666. pri_tdm_rx_2_port_mixer_controls,
  12667. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  12668. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12669. pri_tdm_rx_3_port_mixer_controls,
  12670. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  12671. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12672. sec_tdm_rx_0_port_mixer_controls,
  12673. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  12674. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12675. sec_tdm_rx_1_port_mixer_controls,
  12676. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  12677. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12678. sec_tdm_rx_2_port_mixer_controls,
  12679. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  12680. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12681. sec_tdm_rx_3_port_mixer_controls,
  12682. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  12683. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12684. tert_tdm_rx_0_port_mixer_controls,
  12685. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  12686. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12687. tert_tdm_rx_1_port_mixer_controls,
  12688. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  12689. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12690. tert_tdm_rx_2_port_mixer_controls,
  12691. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  12692. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12693. tert_tdm_rx_3_port_mixer_controls,
  12694. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  12695. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12696. quat_tdm_rx_0_port_mixer_controls,
  12697. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  12698. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12699. quat_tdm_rx_1_port_mixer_controls,
  12700. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  12701. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12702. quat_tdm_rx_2_port_mixer_controls,
  12703. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  12704. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12705. quat_tdm_rx_3_port_mixer_controls,
  12706. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  12707. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12708. quin_tdm_rx_0_port_mixer_controls,
  12709. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  12710. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12711. quin_tdm_rx_1_port_mixer_controls,
  12712. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  12713. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12714. quin_tdm_rx_2_port_mixer_controls,
  12715. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  12716. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12717. quin_tdm_rx_3_port_mixer_controls,
  12718. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  12719. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12720. int0_mi2s_rx_port_mixer_controls,
  12721. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  12722. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12723. int4_mi2s_rx_port_mixer_controls,
  12724. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  12725. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  12726. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  12727. ARRAY_SIZE(tx_qchat_mixer_controls)),
  12728. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  12729. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  12730. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  12731. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  12732. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  12733. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  12734. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  12735. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  12736. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  12737. /* lsm mixer definitions */
  12738. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  12739. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  12740. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  12741. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  12742. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  12743. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  12744. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  12745. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  12746. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  12747. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  12748. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  12749. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  12750. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  12751. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  12752. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  12753. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  12754. /* Virtual Pins to force backends ON atm */
  12755. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  12756. SND_SOC_DAPM_INPUT("BE_IN"),
  12757. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  12758. &slim0_rx_vi_fb_lch_mux),
  12759. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  12760. &slim0_rx_vi_fb_rch_mux),
  12761. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  12762. &mi2s_rx_vi_fb_mux),
  12763. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12764. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  12765. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12766. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  12767. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  12768. &voc_ext_ec_mux),
  12769. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  12770. &ext_ec_ref_mux_ul1),
  12771. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  12772. &ext_ec_ref_mux_ul2),
  12773. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  12774. &ext_ec_ref_mux_ul3),
  12775. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  12776. &ext_ec_ref_mux_ul4),
  12777. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  12778. &ext_ec_ref_mux_ul5),
  12779. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  12780. &ext_ec_ref_mux_ul6),
  12781. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  12782. &ext_ec_ref_mux_ul8),
  12783. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  12784. &ext_ec_ref_mux_ul9),
  12785. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  12786. &ext_ec_ref_mux_ul10),
  12787. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  12788. &ext_ec_ref_mux_ul16),
  12789. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  12790. &ext_ec_ref_mux_ul17),
  12791. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  12792. &ext_ec_ref_mux_ul18),
  12793. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  12794. &ext_ec_ref_mux_ul19),
  12795. };
  12796. static const struct snd_soc_dapm_route intercon[] = {
  12797. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12798. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12799. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12800. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12801. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12802. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12803. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12804. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12805. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12806. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12807. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12808. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12809. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12810. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12811. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12812. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12813. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  12814. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12815. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12816. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12817. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12818. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12819. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12820. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12821. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12822. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12823. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12824. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12825. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12826. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12827. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12828. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12829. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12830. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  12831. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12832. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12833. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12834. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12835. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12836. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12837. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12838. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12839. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12840. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12841. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12842. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12843. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12844. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12845. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12846. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12847. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  12848. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12849. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12850. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12851. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12852. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12853. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12854. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12855. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12856. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12857. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12858. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12859. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12860. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12861. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12862. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12863. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12864. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  12865. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12866. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12867. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12868. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12869. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12870. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12871. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12872. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12873. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12874. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12875. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12876. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12877. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12878. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12879. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12880. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12881. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  12882. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  12883. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  12884. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  12885. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  12886. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  12887. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  12888. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  12889. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  12890. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  12891. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  12892. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  12893. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  12894. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  12895. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  12896. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  12897. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  12898. {"HDMI", NULL, "HDMI Mixer"},
  12899. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  12900. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  12901. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  12902. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  12903. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  12904. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  12905. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  12906. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  12907. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  12908. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  12909. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  12910. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  12911. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  12912. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  12913. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  12914. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  12915. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  12916. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12917. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12918. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12919. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12920. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12921. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12922. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12923. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12924. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12925. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12926. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12927. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12928. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12929. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12930. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12931. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12932. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  12933. /* incall */
  12934. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  12935. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  12936. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  12937. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  12938. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  12939. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12940. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12941. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12942. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12943. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  12944. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12945. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12946. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12947. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12948. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  12949. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12950. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12951. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12952. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12953. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12954. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12955. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12956. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12957. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12958. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12959. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12960. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12961. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12962. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12963. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12964. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12965. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  12966. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12967. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12968. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12969. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12970. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12971. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12972. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12973. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12974. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12975. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12976. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12977. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12978. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12979. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12980. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12981. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12982. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  12983. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12984. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12985. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12986. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12987. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12988. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12989. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12990. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12991. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12992. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12993. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12994. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12995. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12996. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12997. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12998. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12999. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  13000. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13001. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13002. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13003. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13004. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13005. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13006. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  13007. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13008. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13009. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13010. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13011. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13012. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13013. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13014. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13015. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13016. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13017. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13018. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13019. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13020. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13021. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13022. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13023. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13024. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13025. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13026. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13027. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13028. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13029. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13030. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13031. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13032. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13033. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13034. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13035. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13036. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13037. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13038. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13039. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13040. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13041. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13042. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13043. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13044. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13045. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13046. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13047. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13048. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  13049. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13050. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13051. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13052. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13053. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13054. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13055. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13056. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13057. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13058. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13059. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13060. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13061. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13062. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13063. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13064. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  13065. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13066. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13067. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13068. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13069. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13070. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13071. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13072. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13073. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13074. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13075. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13076. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13077. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13078. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13079. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  13080. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13081. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13082. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13083. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13084. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13085. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13086. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13087. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13088. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13089. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13090. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13091. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13092. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13093. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13094. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  13095. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13096. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  13097. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13098. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13099. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13100. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13101. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13102. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13103. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13104. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13105. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13106. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13107. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13108. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13109. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13110. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13111. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13112. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13113. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13114. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  13115. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13116. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13117. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13118. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13119. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13120. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13121. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13122. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13123. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13124. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13125. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13126. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13127. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13128. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13129. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13130. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  13131. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13132. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13133. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13134. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13135. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13136. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13137. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13138. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13139. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13140. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13141. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13142. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13143. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13144. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13145. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13146. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  13147. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13148. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13149. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13150. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13151. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13152. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13153. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13154. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13155. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13156. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13157. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13158. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13159. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13160. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13161. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13162. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13163. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13164. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  13165. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13166. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13167. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13168. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13169. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13170. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13171. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13172. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13173. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13174. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13175. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13176. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13177. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13178. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13179. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13180. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13181. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  13182. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13183. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13184. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13185. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13186. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13187. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13188. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13189. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13190. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13191. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13192. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13193. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13194. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13195. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13196. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13197. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13198. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  13199. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13200. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13201. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13202. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13203. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13204. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13205. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13206. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13207. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13208. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13209. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13210. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13211. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13212. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13213. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13214. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13215. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  13216. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13217. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13218. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13219. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13220. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13221. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13222. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13223. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13224. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13225. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13226. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13227. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13228. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13229. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13230. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13231. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13232. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  13233. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13234. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13235. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13236. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13237. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13238. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13239. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13240. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13241. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13242. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13243. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13244. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13245. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13246. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13247. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13248. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13249. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  13250. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13251. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13252. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13253. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13254. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13255. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13256. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13257. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13258. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13259. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13260. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13261. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13262. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13263. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13264. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13265. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13266. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  13267. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13268. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13269. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13270. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13271. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13272. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13273. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13274. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13275. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13276. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13277. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13278. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13279. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13280. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13281. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13282. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13283. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  13284. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13285. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13286. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13287. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13288. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13289. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13290. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13291. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13292. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13293. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13294. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13295. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13296. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13297. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13298. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13299. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13300. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  13301. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13302. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13303. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13304. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13305. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13306. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13307. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13308. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13309. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13310. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13311. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13312. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13313. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13314. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13315. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13316. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13317. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  13318. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13319. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13320. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13321. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13322. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13323. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13324. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13325. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13326. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13327. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13328. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13329. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13330. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13331. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13332. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13333. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13334. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  13335. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13336. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13337. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13338. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13339. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13340. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13341. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13342. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13343. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13344. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13345. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13346. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13347. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13348. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13349. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13350. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13351. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  13352. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13353. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13354. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13355. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13356. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13357. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13358. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13359. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13360. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13361. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13362. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13363. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13364. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13365. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13366. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13367. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13368. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  13369. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13370. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13371. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13372. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13373. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13374. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13375. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13376. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13377. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13378. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13379. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13380. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13381. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13382. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13383. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13384. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13385. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  13386. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13387. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13388. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13389. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13390. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13391. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13392. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13393. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13394. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13395. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13396. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13397. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13398. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13399. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13400. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13401. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13402. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  13403. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13404. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13405. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13406. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13407. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13408. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13409. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13410. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13411. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13412. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13413. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13414. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13415. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13416. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13417. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13418. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13419. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  13420. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13421. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13422. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13423. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13424. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13425. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13426. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13427. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13428. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13429. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13430. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13431. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13432. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13433. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13434. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13435. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13436. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  13437. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13438. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13439. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13440. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13441. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13442. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13443. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13444. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13445. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13446. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13447. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13448. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13449. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13450. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13451. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13452. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13453. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13454. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  13455. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13456. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13457. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13458. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13459. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13460. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13461. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13462. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13463. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13464. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13465. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13466. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13467. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13468. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13469. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13470. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13471. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  13472. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13473. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13474. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13475. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13476. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13477. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13478. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13479. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13480. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13481. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13482. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13483. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13484. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13485. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13486. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13487. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13488. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13489. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  13490. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13491. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13492. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13493. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13494. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13495. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13496. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13497. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13498. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13499. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13500. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13501. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13502. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13503. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13504. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13505. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13506. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13507. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  13508. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13509. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13510. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13511. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13512. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13513. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13514. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13515. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13516. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13517. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13518. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13519. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13520. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13521. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13522. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13523. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13524. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13525. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  13526. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13527. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13528. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13529. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13530. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13531. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13532. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13533. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13534. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13535. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13536. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13537. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13538. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13539. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13540. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13541. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13542. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13543. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  13544. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13545. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13546. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13547. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13548. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13549. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13550. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13551. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13552. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13553. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13554. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13555. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13556. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13557. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13558. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13559. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13560. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  13561. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13562. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13563. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13564. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13565. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13566. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13567. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13568. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13569. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13570. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13571. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13572. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13573. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13574. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13575. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13576. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13577. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13578. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  13579. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13580. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13581. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13582. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13583. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13584. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13585. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13586. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13587. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13588. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13589. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13590. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13591. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13592. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13593. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13594. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13595. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13596. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  13597. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13598. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13599. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13600. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13601. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13602. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13603. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13604. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13605. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13606. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13607. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13608. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13609. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13610. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13611. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13612. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13613. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13614. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  13615. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  13616. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  13617. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  13618. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  13619. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  13620. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  13621. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  13622. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13623. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13624. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13625. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13626. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13627. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13628. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13629. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13630. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13631. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13632. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13633. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13634. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13635. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13636. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13637. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13638. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13639. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13640. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13641. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13642. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13643. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13644. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13645. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13646. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13647. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13648. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13649. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13650. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13651. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13652. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13653. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  13654. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13655. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13656. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13657. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13658. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13659. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13660. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13661. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13662. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13663. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13664. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13665. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13666. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13667. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13668. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13669. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13670. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13671. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13672. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13673. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13674. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13675. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13676. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13677. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13678. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13679. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13680. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13681. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13682. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13683. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13684. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13685. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13686. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13687. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13688. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13689. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13690. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13691. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13692. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13693. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13694. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13695. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13696. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13697. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13698. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13699. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13700. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13701. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13702. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13703. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13704. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13705. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13706. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13707. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13708. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13709. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13710. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13711. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13712. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13713. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13714. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13715. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13716. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13717. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13718. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13719. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13720. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13721. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13722. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13723. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13724. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13725. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13726. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13727. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13728. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13729. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13730. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13731. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13732. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13733. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13734. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13735. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13736. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13737. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13738. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13739. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13740. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13741. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13742. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13743. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13744. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13745. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13746. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13747. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13748. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13749. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13750. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13751. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13752. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13753. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13754. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13755. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13756. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13757. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13758. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13759. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13760. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13761. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13762. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13763. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13764. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13765. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13766. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13767. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13768. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13769. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13770. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13771. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13772. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13773. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13774. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13775. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13776. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13777. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13778. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13779. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13780. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13781. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13782. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13783. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13784. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13785. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13786. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13787. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13788. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13789. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13790. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13791. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13792. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13793. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13794. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13795. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13796. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13797. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13798. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13799. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13800. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13801. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13802. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13803. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13804. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13805. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13806. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13807. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13808. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13809. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13810. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13811. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13812. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13813. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13814. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13815. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13816. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13817. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13818. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13819. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13820. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13821. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13822. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13823. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13824. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13825. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13826. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13827. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13828. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13829. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13830. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13831. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13832. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13833. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13834. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13835. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13836. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13837. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13838. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13839. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13840. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13841. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13842. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13843. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13844. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13845. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13846. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13847. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13848. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13849. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13850. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13851. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13852. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13853. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13854. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13855. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13856. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13857. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13858. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13859. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13860. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13861. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13862. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13863. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13864. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13865. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13866. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13867. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13868. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13869. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13870. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13871. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13872. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13873. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13874. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13875. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13876. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13877. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13878. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13879. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13880. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13881. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13882. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13883. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13884. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13885. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13886. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13887. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13888. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13889. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13890. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13891. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13892. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13893. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13894. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13895. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13896. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13897. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13898. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13899. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13900. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13901. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13902. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13903. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13904. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13905. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13906. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13907. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13908. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13909. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  13910. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13911. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13912. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13913. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13914. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13915. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13916. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13917. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13918. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13919. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13920. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13921. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13922. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13923. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13924. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13925. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13926. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13927. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  13928. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13929. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13930. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13931. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13932. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13933. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13934. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13935. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13936. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13937. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13938. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13939. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13940. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13941. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13942. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13943. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13944. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  13945. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13946. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13947. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13948. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13949. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13950. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13951. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13952. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13953. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13954. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13955. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13956. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13957. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13958. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13959. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13960. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13961. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  13962. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13963. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13964. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13965. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13966. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13967. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13968. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13969. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13970. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13971. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13972. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13973. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13974. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13975. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13976. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13977. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13978. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13979. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13980. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13981. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13982. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13983. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13984. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13985. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13986. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13987. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13988. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13989. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13990. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13991. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  13992. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13993. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  13994. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  13995. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  13996. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  13997. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  13998. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  13999. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  14000. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  14001. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  14002. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  14003. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  14004. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  14005. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  14006. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14007. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14008. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14009. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14010. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14011. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14012. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14013. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14014. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14015. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14016. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14017. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14018. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14019. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14020. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14021. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14022. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  14023. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14024. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14025. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14026. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14027. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14028. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14029. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14030. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14031. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14032. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14033. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14034. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14035. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14036. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14037. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14038. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14039. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  14040. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14041. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14042. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14043. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14044. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14045. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14046. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14047. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14048. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14049. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14050. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14051. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14052. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14053. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14054. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14055. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14056. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  14057. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14058. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14059. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14060. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14061. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14062. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14063. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14064. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14065. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14066. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14067. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14068. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14069. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14070. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14071. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14072. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14073. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  14074. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14075. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14076. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14077. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14078. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14079. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14080. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14081. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14082. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14083. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14084. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14085. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14086. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14087. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14088. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14089. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14090. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  14091. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14092. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14093. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14094. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14095. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14096. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  14097. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14098. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14099. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14100. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  14101. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14102. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14103. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14104. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14105. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14106. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  14107. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14108. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14109. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14110. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14111. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14112. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  14113. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14114. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14115. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14116. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14117. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14118. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  14119. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14120. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14121. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14122. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14123. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14124. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  14125. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14126. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14127. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14128. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14129. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14130. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  14131. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14132. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14133. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14134. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14135. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14136. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  14137. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14138. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14139. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14140. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14141. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14142. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  14143. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14144. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14145. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14146. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14147. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14148. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  14149. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14150. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14151. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14152. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14153. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14154. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  14155. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14156. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14157. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14158. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14159. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14160. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  14161. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14162. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14163. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14164. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14165. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14166. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  14167. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14168. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14169. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14170. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14171. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14172. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  14173. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14174. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14175. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14176. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14177. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14178. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  14179. {"HDMI", NULL, "HDMI_DL_HL"},
  14180. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14181. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14182. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14183. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14184. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14185. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14186. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14187. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14188. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14189. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14190. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14191. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  14192. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14193. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14194. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14195. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14196. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14197. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  14198. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14199. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14200. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14201. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14202. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14203. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  14204. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14205. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14206. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14207. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14208. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14209. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  14210. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14211. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14212. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14213. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14214. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  14215. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14216. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14217. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14218. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14219. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  14220. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14221. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  14222. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14223. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14224. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14225. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14226. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14227. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14228. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  14229. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  14230. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  14231. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14232. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14233. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14234. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14235. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14236. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14237. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14238. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14239. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14240. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14241. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14242. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14243. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14244. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14245. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14246. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14247. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14248. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14249. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14250. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14251. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14252. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14253. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14254. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14255. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14256. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14257. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14258. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14259. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14260. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14261. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14262. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14263. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14264. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14265. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14266. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14267. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14268. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14269. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14270. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14271. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14272. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14273. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14274. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14275. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14276. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14277. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14278. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14279. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14280. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14281. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14282. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14283. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14284. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14285. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14286. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14287. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14288. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14289. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14290. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14291. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14292. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14293. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14294. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14295. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14296. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14297. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14298. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14299. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14300. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14301. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14302. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14303. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14304. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  14305. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  14306. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  14307. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  14308. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  14309. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  14310. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  14311. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  14312. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  14313. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  14314. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  14315. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  14316. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  14317. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  14318. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  14319. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  14320. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  14321. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  14322. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  14323. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  14324. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  14325. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  14326. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  14327. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  14328. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  14329. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  14330. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  14331. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  14332. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  14333. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  14334. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  14335. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  14336. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  14337. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  14338. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  14339. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  14340. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  14341. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  14342. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  14343. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  14344. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  14345. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  14346. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  14347. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  14348. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  14349. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  14350. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  14351. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  14352. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  14353. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  14354. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  14355. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  14356. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  14357. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  14358. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  14359. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  14360. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  14361. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  14362. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  14363. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  14364. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  14365. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  14366. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  14367. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  14368. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  14369. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  14370. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  14371. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  14372. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  14373. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  14374. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  14375. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  14376. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  14377. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  14378. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  14379. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  14380. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  14381. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  14382. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  14383. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14384. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14385. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14386. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14387. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14388. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14389. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14390. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14391. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  14392. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14393. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14394. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14395. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14396. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14397. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14398. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14399. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14400. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  14401. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14402. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14403. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14404. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14405. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14406. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14407. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14408. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14409. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  14410. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14411. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14412. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14413. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14414. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14415. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14416. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14417. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14418. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  14419. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14420. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14421. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14422. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14423. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14424. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14425. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14426. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14427. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  14428. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14429. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14430. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14431. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14432. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14433. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14434. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  14435. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14436. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14437. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14438. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14439. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14440. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14441. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  14442. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14443. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14444. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14445. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14446. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14447. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14448. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  14449. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  14450. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  14451. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  14452. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  14453. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  14454. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  14455. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  14456. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  14457. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  14458. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  14459. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  14460. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  14461. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  14462. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  14463. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  14464. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  14465. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  14466. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  14467. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  14468. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  14469. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  14470. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  14471. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  14472. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  14473. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  14474. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  14475. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  14476. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  14477. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  14478. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  14479. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  14480. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  14481. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  14482. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  14483. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  14484. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  14485. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14486. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  14487. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14488. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  14489. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  14490. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  14491. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  14492. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  14493. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  14494. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  14495. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  14496. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  14497. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  14498. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  14499. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14500. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  14501. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14502. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  14503. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  14504. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  14505. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  14506. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  14507. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  14508. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  14509. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  14510. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  14511. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  14512. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  14513. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  14514. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  14515. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  14516. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  14517. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  14518. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  14519. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  14520. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  14521. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  14522. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  14523. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  14524. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  14525. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  14526. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  14527. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  14528. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  14529. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  14530. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  14531. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  14532. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  14533. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  14534. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  14535. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  14536. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  14537. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  14538. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  14539. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  14540. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  14541. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  14542. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  14543. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  14544. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  14545. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  14546. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  14547. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  14548. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  14549. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14550. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14551. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14552. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14553. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14554. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14555. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14556. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14557. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14558. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14559. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14560. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14561. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14562. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14563. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14564. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14565. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14566. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14567. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14568. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14569. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  14570. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14571. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14572. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14573. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14574. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14575. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14576. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14577. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14578. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14579. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14580. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14581. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14582. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14583. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14584. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14585. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14586. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14587. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14588. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14589. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14590. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  14591. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14592. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14593. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14594. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14595. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14596. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14597. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14598. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14599. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14600. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14601. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14602. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14603. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14604. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14605. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14606. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14607. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14608. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14609. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14610. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14611. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  14612. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14613. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14614. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14615. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14616. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14617. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14618. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14619. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14620. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14621. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14622. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14623. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14624. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14625. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14626. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14627. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14628. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14629. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14630. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14631. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14632. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  14633. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14634. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14635. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14636. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14637. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14638. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14639. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14640. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14641. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14642. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14643. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14644. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14645. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14646. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14647. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14648. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14649. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14650. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14651. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14652. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14653. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  14654. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14655. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14656. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14657. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14658. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14659. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14660. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14661. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14662. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14663. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14664. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14665. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14666. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14667. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14668. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14669. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14670. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14671. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14672. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14673. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14674. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  14675. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14676. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14677. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14678. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14679. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14680. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14681. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14682. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14683. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14684. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14685. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14686. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14687. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14688. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14689. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14690. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14691. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14692. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14693. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14694. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14695. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  14696. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14697. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14698. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14699. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14700. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14701. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14702. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14703. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14704. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14705. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14706. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14707. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14708. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14709. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14710. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14711. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14712. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14713. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14714. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14715. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14716. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  14717. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14718. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14719. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14720. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14721. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14722. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14723. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14724. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14725. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14726. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14727. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14728. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14729. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14730. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14731. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14732. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14733. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14734. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14735. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14736. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14737. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  14738. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14739. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14740. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14741. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14742. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14743. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14744. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14745. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14746. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14747. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14748. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14749. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14750. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14751. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14752. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14753. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14754. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14755. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14756. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14757. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14758. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  14759. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14760. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14761. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14762. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14763. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14764. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14765. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14766. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14767. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14768. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14769. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14770. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14771. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14772. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14773. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14774. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14775. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14776. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14777. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14778. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14779. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  14780. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14781. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14782. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14783. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14784. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14785. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14786. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14787. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14788. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14789. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14790. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14791. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14792. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14793. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14794. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14795. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14796. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14797. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14798. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14799. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14800. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  14801. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14802. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14803. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14804. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14805. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14806. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14807. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14808. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14809. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14810. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14811. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14812. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14813. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14814. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14815. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14816. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14817. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14818. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14819. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14820. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14821. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  14822. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14823. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14824. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14825. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14826. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14827. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14828. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14829. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14830. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14831. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14832. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14833. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14834. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14835. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14836. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14837. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14838. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14839. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14840. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14841. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14842. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  14843. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14844. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14845. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14846. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14847. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14848. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14849. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14850. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14851. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14852. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14853. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14854. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14855. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14856. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14857. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14858. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14859. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14860. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14861. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14862. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14863. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  14864. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14865. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14866. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14867. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14868. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14869. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14870. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14871. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14872. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14873. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14874. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14875. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14876. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14877. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14878. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14879. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14880. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14881. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14882. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14883. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14884. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  14885. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14886. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14887. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14888. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14889. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14890. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14891. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14892. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14893. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14894. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14895. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14896. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14897. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14898. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14899. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14900. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14901. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14902. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14903. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14904. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14905. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  14906. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14907. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14908. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14909. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14910. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14911. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14912. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14913. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14914. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14915. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14916. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14917. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14918. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14919. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14920. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14921. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14922. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14923. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14924. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14925. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14926. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  14927. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14928. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14929. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14930. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14931. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14932. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14933. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14934. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14935. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14936. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14937. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14938. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14939. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14940. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14941. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14942. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14943. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14944. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14945. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14946. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14947. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  14948. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14949. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14950. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14951. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14952. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14953. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14954. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14955. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14956. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14957. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14958. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14959. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14960. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14961. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14962. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14963. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14964. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14965. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14966. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14967. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14968. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  14969. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14970. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14971. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14972. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14973. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14974. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14975. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14976. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14977. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14978. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14979. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  14980. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14981. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14982. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14983. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14984. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14985. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14986. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14987. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14988. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14989. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14990. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  14991. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14992. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  14993. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14994. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14995. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14996. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14997. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14998. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  14999. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15000. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15001. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15002. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15003. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15004. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15005. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15006. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15007. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15008. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  15009. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15010. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15011. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  15012. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  15013. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  15014. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  15015. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  15016. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  15017. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15018. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15019. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15020. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15021. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15022. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  15023. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15024. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15025. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15026. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  15027. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15028. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15029. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15030. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  15031. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15032. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15033. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15034. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  15035. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15036. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15037. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15038. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  15039. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15040. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15041. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15042. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15043. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15044. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15045. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15046. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15047. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15048. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  15049. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15050. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15051. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15052. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15053. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15054. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15055. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15056. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15057. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15058. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  15059. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15060. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15061. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15062. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15063. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15064. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15065. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15066. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15067. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15068. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15069. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15070. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  15071. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15072. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15073. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15074. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15075. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15076. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15077. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15078. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15079. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15080. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15081. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15082. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  15083. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15084. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15085. {"STUB_RX", NULL, "STUB_RX Mixer"},
  15086. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15087. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15088. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  15089. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15090. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15091. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  15092. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15093. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15094. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15095. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15096. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15097. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  15098. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15099. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15100. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15101. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15102. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15103. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  15104. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15105. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15106. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15107. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  15108. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15109. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15110. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  15111. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  15112. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15113. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  15114. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  15115. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  15116. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  15117. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15118. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15119. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15120. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15121. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15122. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15123. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15124. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15125. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15126. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15127. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15128. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15129. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  15130. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15131. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  15132. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15133. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  15134. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15135. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  15136. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15137. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15138. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  15139. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15140. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15141. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15142. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15143. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15144. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15145. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15146. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15147. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15148. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  15149. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15150. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15151. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15152. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15153. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15154. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15155. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15156. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15157. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  15158. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15159. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15160. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15161. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15162. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15163. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15164. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15165. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  15166. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15167. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15168. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15169. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15170. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15171. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15172. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15173. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15174. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15175. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  15176. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15177. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15178. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15179. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15180. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15181. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15182. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15183. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  15184. /* Backend Enablement */
  15185. {"BE_OUT", NULL, "PRI_I2S_RX"},
  15186. {"BE_OUT", NULL, "SEC_I2S_RX"},
  15187. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  15188. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  15189. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  15190. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15191. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  15192. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  15193. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  15194. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  15195. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  15196. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  15197. {"BE_OUT", NULL, "HDMI"},
  15198. {"BE_OUT", NULL, "DISPLAY_PORT"},
  15199. {"BE_OUT", NULL, "SPDIF_RX"},
  15200. {"BE_OUT", NULL, "MI2S_RX"},
  15201. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  15202. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  15203. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  15204. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  15205. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  15206. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  15207. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  15208. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  15209. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  15210. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  15211. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  15212. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15213. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  15214. {"BE_OUT", NULL, "INT_FM_RX"},
  15215. {"BE_OUT", NULL, "PCM_RX"},
  15216. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15217. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15218. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  15219. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  15220. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  15221. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  15222. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15223. {"BE_OUT", NULL, "INT_FM_RX"},
  15224. {"BE_OUT", NULL, "PCM_RX"},
  15225. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15226. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  15227. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  15228. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  15229. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  15230. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  15231. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  15232. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  15233. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  15234. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  15235. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  15236. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  15237. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  15238. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  15239. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  15240. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  15241. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  15242. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  15243. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  15244. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  15245. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  15246. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  15247. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  15248. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  15249. {"PRI_I2S_TX", NULL, "BE_IN"},
  15250. {"MI2S_TX", NULL, "BE_IN"},
  15251. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  15252. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  15253. {"PRI_MI2S_TX", NULL, "BE_IN"},
  15254. {"TERT_MI2S_TX", NULL, "BE_IN"},
  15255. {"INT0_MI2S_TX", NULL, "BE_IN"},
  15256. {"INT2_MI2S_TX", NULL, "BE_IN"},
  15257. {"INT3_MI2S_TX", NULL, "BE_IN"},
  15258. {"INT4_MI2S_TX", NULL, "BE_IN"},
  15259. {"INT5_MI2S_TX", NULL, "BE_IN"},
  15260. {"SEC_MI2S_TX", NULL, "BE_IN"},
  15261. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  15262. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  15263. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  15264. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  15265. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  15266. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  15267. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  15268. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  15269. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  15270. {"USB_AUDIO_TX", NULL, "BE_IN" },
  15271. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  15272. {"INT_FM_TX", NULL, "BE_IN"},
  15273. {"PCM_TX", NULL, "BE_IN"},
  15274. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15275. {"BE_OUT", NULL, "STUB_RX"},
  15276. {"STUB_TX", NULL, "BE_IN"},
  15277. {"STUB_1_TX", NULL, "BE_IN"},
  15278. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15279. {"AUX_PCM_TX", NULL, "BE_IN"},
  15280. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  15281. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  15282. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  15283. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  15284. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  15285. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  15286. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15287. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15288. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  15289. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15290. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15291. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  15292. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  15293. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  15294. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  15295. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  15296. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  15297. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  15298. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  15299. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  15300. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  15301. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  15302. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  15303. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  15304. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  15305. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  15306. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  15307. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  15308. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  15309. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  15310. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  15311. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  15312. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  15313. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  15314. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  15315. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  15316. };
  15317. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  15318. struct snd_pcm_hw_params *params)
  15319. {
  15320. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15321. unsigned int be_id = rtd->dai_link->id;
  15322. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15323. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15324. return -EINVAL;
  15325. }
  15326. mutex_lock(&routing_lock);
  15327. msm_bedais[be_id].sample_rate = params_rate(params);
  15328. msm_bedais[be_id].channel = params_channels(params);
  15329. msm_bedais[be_id].format = params_format(params);
  15330. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  15331. __func__, msm_bedais[be_id].sample_rate,
  15332. msm_bedais[be_id].format, be_id);
  15333. mutex_unlock(&routing_lock);
  15334. return 0;
  15335. }
  15336. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  15337. {
  15338. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15339. unsigned int be_id = rtd->dai_link->id;
  15340. int i, session_type, path_type, topology;
  15341. struct msm_pcm_routing_bdai_data *bedai;
  15342. struct msm_pcm_routing_fdai_data *fdai;
  15343. pr_debug("%s: substream->pcm->id:%s\n",
  15344. __func__, substream->pcm->id);
  15345. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15346. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15347. return -EINVAL;
  15348. }
  15349. bedai = &msm_bedais[be_id];
  15350. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  15351. 0 : 1);
  15352. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15353. path_type = ADM_PATH_PLAYBACK;
  15354. else
  15355. path_type = ADM_PATH_LIVE_REC;
  15356. mutex_lock(&routing_lock);
  15357. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15358. if (!is_mm_lsm_fe_id(i))
  15359. continue;
  15360. fdai = &fe_dai_map[i][session_type];
  15361. if (fdai->strm_id != INVALID_SESSION) {
  15362. int idx;
  15363. int port_id;
  15364. unsigned long copp =
  15365. session_copp_map[i][session_type][be_id];
  15366. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  15367. if (test_bit(idx, &copp))
  15368. break;
  15369. fdai->be_srate = bedai->sample_rate;
  15370. port_id = bedai->port_id;
  15371. topology = adm_get_topology_for_port_copp_idx(port_id,
  15372. idx);
  15373. adm_close(bedai->port_id, fdai->perf_mode, idx);
  15374. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  15375. __func__, copp, i, session_type, be_id,
  15376. topology);
  15377. clear_bit(idx,
  15378. &session_copp_map[i][session_type][be_id]);
  15379. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15380. (bedai->passthr_mode[i] == LEGACY_PCM))
  15381. msm_pcm_routing_deinit_pp(bedai->port_id,
  15382. topology);
  15383. }
  15384. }
  15385. bedai->active = 0;
  15386. bedai->sample_rate = 0;
  15387. bedai->channel = 0;
  15388. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  15389. if (bedai->passthr_mode[i] != LISTEN)
  15390. bedai->passthr_mode[i] = LEGACY_PCM;
  15391. }
  15392. mutex_unlock(&routing_lock);
  15393. return 0;
  15394. }
  15395. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  15396. {
  15397. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15398. unsigned int be_id = rtd->dai_link->id;
  15399. int i, path_type, topology;
  15400. int session_type = INVALID_SESSION;
  15401. struct msm_pcm_routing_bdai_data *bedai;
  15402. u32 channels, sample_rate;
  15403. uint16_t bits_per_sample = 16, voc_path_type;
  15404. struct msm_pcm_routing_fdai_data *fdai;
  15405. u32 session_id;
  15406. struct media_format_info voc_be_media_format;
  15407. bool is_lsm;
  15408. pr_debug("%s: substream->pcm->id:%s\n",
  15409. __func__, substream->pcm->id);
  15410. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15411. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15412. return -EINVAL;
  15413. }
  15414. bedai = &msm_bedais[be_id];
  15415. mutex_lock(&routing_lock);
  15416. if (bedai->active == 1)
  15417. goto done; /* Ignore prepare if back-end already active */
  15418. /* AFE port is not active at this point. However, still
  15419. * go ahead setting active flag under the notion that
  15420. * QDSP6 is able to handle ADM starting before AFE port
  15421. * is started.
  15422. */
  15423. bedai->active = 1;
  15424. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15425. if (!(is_mm_lsm_fe_id(i) &&
  15426. route_check_fe_id_adm_support(i)))
  15427. continue;
  15428. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  15429. if (bedai->passthr_mode[i] != LEGACY_PCM)
  15430. path_type = ADM_PATH_COMPRESSED_RX;
  15431. else
  15432. path_type = ADM_PATH_PLAYBACK;
  15433. session_type = SESSION_TYPE_RX;
  15434. } else {
  15435. path_type = ADM_PATH_LIVE_REC;
  15436. session_type = SESSION_TYPE_TX;
  15437. }
  15438. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  15439. (i <= MSM_FRONTEND_DAI_LSM8);
  15440. fdai = &fe_dai_map[i][session_type];
  15441. if (fdai->strm_id != INVALID_SESSION) {
  15442. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  15443. if (session_type == SESSION_TYPE_TX &&
  15444. fdai->be_srate &&
  15445. (fdai->be_srate != bedai->sample_rate)) {
  15446. pr_debug("%s: flush strm %d diff BE rates\n",
  15447. __func__,
  15448. fdai->strm_id);
  15449. if (fdai->event_info.event_func)
  15450. fdai->event_info.event_func(
  15451. MSM_PCM_RT_EVT_BUF_RECFG,
  15452. fdai->event_info.priv_data);
  15453. fdai->be_srate = 0; /* might not need it */
  15454. }
  15455. bits_per_sample = msm_routing_get_bit_width(
  15456. bedai->format);
  15457. app_type =
  15458. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  15459. if (app_type && is_lsm) {
  15460. app_type_idx =
  15461. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  15462. sample_rate =
  15463. fe_dai_app_type_cfg[i][session_type][be_id]
  15464. .sample_rate;
  15465. bits_per_sample =
  15466. lsm_app_type_cfg[app_type_idx].bit_width;
  15467. } else if (app_type) {
  15468. app_type_idx =
  15469. msm_pcm_routing_get_app_type_idx(app_type);
  15470. sample_rate =
  15471. fe_dai_app_type_cfg[i][session_type]
  15472. [be_id].sample_rate;
  15473. bits_per_sample =
  15474. app_type_cfg[app_type_idx].bit_width;
  15475. } else
  15476. sample_rate = bedai->sample_rate;
  15477. /*
  15478. * check if ADM needs to be configured with different
  15479. * channel mapping than backend
  15480. */
  15481. if (!bedai->adm_override_ch)
  15482. channels = bedai->channel;
  15483. else
  15484. channels = bedai->adm_override_ch;
  15485. acdb_dev_id =
  15486. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  15487. topology = msm_routing_get_adm_topology(i, session_type,
  15488. be_id);
  15489. copp_idx = adm_open(bedai->port_id, path_type,
  15490. sample_rate, channels, topology,
  15491. fdai->perf_mode, bits_per_sample,
  15492. app_type, acdb_dev_id);
  15493. if ((copp_idx < 0) ||
  15494. (copp_idx >= MAX_COPPS_PER_PORT)) {
  15495. pr_err("%s: adm open failed\n", __func__);
  15496. mutex_unlock(&routing_lock);
  15497. return -EINVAL;
  15498. }
  15499. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  15500. __func__, i, session_type, be_id);
  15501. set_bit(copp_idx,
  15502. &session_copp_map[i][session_type][be_id]);
  15503. if (msm_is_resample_needed(
  15504. sample_rate,
  15505. bedai->sample_rate))
  15506. adm_copp_mfc_cfg(
  15507. bedai->port_id, copp_idx,
  15508. bedai->sample_rate);
  15509. msm_pcm_routing_build_matrix(i, session_type, path_type,
  15510. fdai->perf_mode,
  15511. bedai->passthr_mode[i]);
  15512. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15513. (bedai->passthr_mode[i] == LEGACY_PCM))
  15514. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  15515. topology, channels);
  15516. }
  15517. }
  15518. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15519. session_id = msm_pcm_routing_get_voc_sessionid(i);
  15520. if (session_id) {
  15521. pr_debug("%s voice session_id: 0x%x\n", __func__,
  15522. session_id);
  15523. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15524. voc_path_type = RX_PATH;
  15525. else
  15526. voc_path_type = TX_PATH;
  15527. voc_set_route_flag(session_id, voc_path_type, 1);
  15528. memset(&voc_be_media_format, 0,
  15529. sizeof(struct media_format_info));
  15530. voc_be_media_format.port_id = bedai->port_id;
  15531. voc_be_media_format.num_channels = bedai->channel;
  15532. voc_be_media_format.sample_rate = bedai->sample_rate;
  15533. voc_be_media_format.bits_per_sample = bedai->format;
  15534. /* Defaulting this to 1 for voice call usecases */
  15535. voc_be_media_format.channel_mapping[0] = 1;
  15536. voc_set_device_config(session_id, voc_path_type,
  15537. &voc_be_media_format);
  15538. if (voc_get_route_flag(session_id, RX_PATH) &&
  15539. voc_get_route_flag(session_id, TX_PATH))
  15540. voc_enable_device(session_id);
  15541. }
  15542. }
  15543. /* Check if backend is an external ec ref port and set as needed */
  15544. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  15545. memset(&voc_be_media_format, 0,
  15546. sizeof(struct media_format_info));
  15547. /* Get format info for ec ref port from msm_bedais[] */
  15548. voc_be_media_format.port_id = bedai->port_id;
  15549. voc_be_media_format.num_channels = bedai->channel;
  15550. voc_be_media_format.bits_per_sample = bedai->format;
  15551. voc_be_media_format.sample_rate = bedai->sample_rate;
  15552. /* Defaulting this to 1 for voice call usecases */
  15553. voc_be_media_format.channel_mapping[0] = 1;
  15554. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  15555. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  15556. __func__, voc_be_media_format.port_id,
  15557. voc_be_media_format.num_channels,
  15558. voc_be_media_format.bits_per_sample,
  15559. voc_be_media_format.sample_rate);
  15560. }
  15561. done:
  15562. mutex_unlock(&routing_lock);
  15563. return 0;
  15564. }
  15565. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  15566. int fe_id)
  15567. {
  15568. int index, topo_id, be_idx;
  15569. unsigned long pp_config = 0;
  15570. bool mute_on;
  15571. int latency;
  15572. bool compr_passthr_mode = true;
  15573. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  15574. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  15575. pr_err("%s: Device pp params on invalid port %d\n",
  15576. __func__, port_id);
  15577. return -EINVAL;
  15578. }
  15579. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15580. if (port_id == msm_bedais[be_idx].port_id)
  15581. break;
  15582. }
  15583. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15584. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15585. return -EINVAL;
  15586. }
  15587. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15588. if (msm_bedais_pp_params[index].port_id == port_id)
  15589. break;
  15590. }
  15591. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15592. pr_err("%s: Invalid backend pp params index %d\n",
  15593. __func__, index);
  15594. return -EINVAL;
  15595. }
  15596. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  15597. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  15598. pr_err("%s: Invalid passthrough topology 0x%x\n",
  15599. __func__, topo_id);
  15600. return -EINVAL;
  15601. }
  15602. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  15603. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  15604. compr_passthr_mode = false;
  15605. pp_config = msm_bedais_pp_params[index].pp_params_config;
  15606. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  15607. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15608. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  15609. mute_on = msm_bedais_pp_params[index].mute_on;
  15610. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15611. adm_send_compressed_device_mute(port_id,
  15612. copp_idx,
  15613. mute_on);
  15614. }
  15615. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  15616. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15617. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  15618. &pp_config);
  15619. latency = msm_bedais_pp_params[index].latency;
  15620. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15621. adm_send_compressed_device_latency(port_id,
  15622. copp_idx,
  15623. latency);
  15624. }
  15625. return 0;
  15626. }
  15627. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15628. struct snd_ctl_elem_value *ucontrol)
  15629. {
  15630. int pp_id = ucontrol->value.integer.value[0];
  15631. int port_id = 0;
  15632. int index, be_idx, i, topo_id, idx;
  15633. bool mute;
  15634. int latency;
  15635. bool compr_passthr_mode = true;
  15636. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  15637. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15638. port_id = msm_bedais[be_idx].port_id;
  15639. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  15640. break;
  15641. }
  15642. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15643. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15644. return -EINVAL;
  15645. }
  15646. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15647. if (msm_bedais_pp_params[index].port_id == port_id)
  15648. break;
  15649. }
  15650. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15651. pr_err("%s: Invalid pp params backend index %d\n",
  15652. __func__, index);
  15653. return -EINVAL;
  15654. }
  15655. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  15656. MSM_FRONTEND_DAI_MM_SIZE) {
  15657. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  15658. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  15659. compr_passthr_mode = false;
  15660. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15661. unsigned long copp =
  15662. session_copp_map[i]
  15663. [SESSION_TYPE_RX][be_idx];
  15664. if (!test_bit(idx, &copp))
  15665. continue;
  15666. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  15667. idx);
  15668. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  15669. continue;
  15670. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  15671. __func__, port_id, copp, msm_bedais[be_idx].active,
  15672. msm_bedais[be_idx].passthr_mode[i]);
  15673. switch (pp_id) {
  15674. case ADM_PP_PARAM_MUTE_ID:
  15675. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15676. mute = ucontrol->value.integer.value[1] ? true : false;
  15677. msm_bedais_pp_params[index].mute_on = mute;
  15678. set_bit(ADM_PP_PARAM_MUTE_BIT,
  15679. &msm_bedais_pp_params[index].pp_params_config);
  15680. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15681. adm_send_compressed_device_mute(port_id,
  15682. idx, mute);
  15683. break;
  15684. case ADM_PP_PARAM_LATENCY_ID:
  15685. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15686. msm_bedais_pp_params[index].latency =
  15687. ucontrol->value.integer.value[1];
  15688. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  15689. &msm_bedais_pp_params[index].pp_params_config);
  15690. latency = msm_bedais_pp_params[index].latency =
  15691. ucontrol->value.integer.value[1];
  15692. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15693. adm_send_compressed_device_latency(port_id,
  15694. idx, latency);
  15695. break;
  15696. default:
  15697. pr_info("%s, device pp param %d not supported\n",
  15698. __func__, pp_id);
  15699. break;
  15700. }
  15701. }
  15702. }
  15703. return 0;
  15704. }
  15705. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15706. struct snd_ctl_elem_value *ucontrol)
  15707. {
  15708. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  15709. return 0;
  15710. }
  15711. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  15712. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  15713. 0, 3, msm_routing_get_device_pp_params_mixer,
  15714. msm_routing_put_device_pp_params_mixer),
  15715. };
  15716. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  15717. struct snd_ctl_elem_value *ucontrol)
  15718. {
  15719. ucontrol->value.integer.value[0] =
  15720. core_get_license_status(ASM_MEDIA_FMT_APTX);
  15721. pr_debug("%s: status %ld\n", __func__,
  15722. ucontrol->value.integer.value[0]);
  15723. return 0;
  15724. }
  15725. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  15726. struct snd_ctl_elem_value *ucontrol)
  15727. {
  15728. int32_t status = 0;
  15729. status = core_set_license(ucontrol->value.integer.value[0],
  15730. APTX_CLASSIC_DEC_LICENSE_ID);
  15731. pr_debug("%s: status %d\n", __func__, status);
  15732. return status;
  15733. }
  15734. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  15735. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  15736. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  15737. msm_aptx_dec_license_control_put),
  15738. };
  15739. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  15740. struct snd_ctl_elem_info *uinfo)
  15741. {
  15742. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  15743. uinfo->count = sizeof(be_dai_name_table);
  15744. return 0;
  15745. }
  15746. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  15747. unsigned int __user *bytes,
  15748. unsigned int size)
  15749. {
  15750. int i;
  15751. int ret;
  15752. if (size < sizeof(be_dai_name_table)) {
  15753. pr_err("%s: invalid size %d requested, returning\n",
  15754. __func__, size);
  15755. ret = -EINVAL;
  15756. goto done;
  15757. }
  15758. /*
  15759. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  15760. * needed when adding new backends
  15761. */
  15762. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15763. be_dai_name_table[i].be_id = i;
  15764. strlcpy(be_dai_name_table[i].be_name,
  15765. msm_bedais[i].name,
  15766. LPASS_BE_NAME_MAX_LENGTH);
  15767. }
  15768. ret = copy_to_user(bytes, &be_dai_name_table,
  15769. sizeof(be_dai_name_table));
  15770. if (ret) {
  15771. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  15772. ret = -EFAULT;
  15773. }
  15774. done:
  15775. return ret;
  15776. }
  15777. static const struct snd_kcontrol_new
  15778. msm_routing_be_dai_name_table_mixer_controls[] = {
  15779. {
  15780. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  15781. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  15782. .info = msm_routing_be_dai_name_table_info,
  15783. .name = "Backend DAI Name Table",
  15784. .tlv.c = snd_soc_bytes_tlv_callback,
  15785. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  15786. .max = sizeof(be_dai_name_table),
  15787. .get = msm_routing_be_dai_name_table_tlv_get,
  15788. }
  15789. },
  15790. };
  15791. static int msm_routing_stereo_channel_reverse_control_get(
  15792. struct snd_kcontrol *kcontrol,
  15793. struct snd_ctl_elem_value *ucontrol)
  15794. {
  15795. ucontrol->value.integer.value[0] = swap_ch;
  15796. pr_debug("%s: Swap channel value: %ld\n", __func__,
  15797. ucontrol->value.integer.value[0]);
  15798. return 0;
  15799. }
  15800. static int msm_routing_stereo_channel_reverse_control_put(
  15801. struct snd_kcontrol *kcontrol,
  15802. struct snd_ctl_elem_value *ucontrol)
  15803. {
  15804. int i, idx, be_index, port_id;
  15805. int ret = 0;
  15806. unsigned long copp;
  15807. pr_debug("%s Swap channel value:%ld\n", __func__,
  15808. ucontrol->value.integer.value[0]);
  15809. swap_ch = ucontrol->value.integer.value[0];
  15810. mutex_lock(&routing_lock);
  15811. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  15812. port_id = msm_bedais[be_index].port_id;
  15813. if (!msm_bedais[be_index].active)
  15814. continue;
  15815. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  15816. MSM_FRONTEND_DAI_MM_SIZE) {
  15817. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  15818. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15819. if (!test_bit(idx, &copp))
  15820. continue;
  15821. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  15822. __func__, port_id, idx);
  15823. ret = adm_swap_speaker_channels(
  15824. port_id, idx,
  15825. msm_bedais[be_index].sample_rate,
  15826. swap_ch);
  15827. if (ret) {
  15828. pr_err("%s:Swap_channel failed, err=%d\n",
  15829. __func__, ret);
  15830. goto done;
  15831. }
  15832. }
  15833. }
  15834. }
  15835. done:
  15836. mutex_unlock(&routing_lock);
  15837. return ret;
  15838. }
  15839. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  15840. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  15841. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  15842. msm_routing_stereo_channel_reverse_control_put),
  15843. };
  15844. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  15845. .hw_params = msm_pcm_routing_hw_params,
  15846. .close = msm_pcm_routing_close,
  15847. .prepare = msm_pcm_routing_prepare,
  15848. };
  15849. /* Not used but frame seems to require it */
  15850. static int msm_routing_probe(struct snd_soc_platform *platform)
  15851. {
  15852. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  15853. ARRAY_SIZE(msm_qdsp6_widgets));
  15854. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  15855. ARRAY_SIZE(intercon));
  15856. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  15857. snd_soc_add_platform_controls(platform, lsm_controls,
  15858. ARRAY_SIZE(lsm_controls));
  15859. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  15860. ARRAY_SIZE(aanc_slim_0_rx_mux));
  15861. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  15862. ARRAY_SIZE(msm_voc_session_controls));
  15863. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  15864. ARRAY_SIZE(app_type_cfg_controls));
  15865. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  15866. ARRAY_SIZE(lsm_app_type_cfg_controls));
  15867. snd_soc_add_platform_controls(platform, module_cfg_controls,
  15868. ARRAY_SIZE(module_cfg_controls));
  15869. snd_soc_add_platform_controls(platform,
  15870. stereo_to_custom_stereo_controls,
  15871. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  15872. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  15873. ARRAY_SIZE(ec_ref_param_controls));
  15874. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  15875. ARRAY_SIZE(channel_mixer_controls));
  15876. msm_qti_pp_add_controls(platform);
  15877. msm_dts_srs_tm_add_controls(platform);
  15878. msm_dolby_dap_add_controls(platform);
  15879. snd_soc_add_platform_controls(platform,
  15880. use_ds1_or_ds2_controls,
  15881. ARRAY_SIZE(use_ds1_or_ds2_controls));
  15882. snd_soc_add_platform_controls(platform,
  15883. device_pp_params_mixer_controls,
  15884. ARRAY_SIZE(device_pp_params_mixer_controls));
  15885. snd_soc_add_platform_controls(platform,
  15886. msm_routing_be_dai_name_table_mixer_controls,
  15887. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  15888. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  15889. ARRAY_SIZE(msm_source_tracking_controls));
  15890. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  15891. ARRAY_SIZE(adm_channel_config_controls));
  15892. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  15893. ARRAY_SIZE(aptx_dec_license_controls));
  15894. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  15895. ARRAY_SIZE(stereo_channel_reverse_control));
  15896. return 0;
  15897. }
  15898. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  15899. {
  15900. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  15901. }
  15902. void msm_routing_pcm_free(struct snd_pcm *pcm)
  15903. {
  15904. msm_pcm_routing_hwdep_free(pcm);
  15905. }
  15906. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  15907. .ops = &msm_routing_pcm_ops,
  15908. .probe = msm_routing_probe,
  15909. .pcm_new = msm_routing_pcm_new,
  15910. .pcm_free = msm_routing_pcm_free,
  15911. };
  15912. static int msm_routing_pcm_probe(struct platform_device *pdev)
  15913. {
  15914. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  15915. return snd_soc_register_platform(&pdev->dev,
  15916. &msm_soc_routing_platform);
  15917. }
  15918. static int msm_routing_pcm_remove(struct platform_device *pdev)
  15919. {
  15920. snd_soc_unregister_platform(&pdev->dev);
  15921. return 0;
  15922. }
  15923. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  15924. {.compatible = "qcom,msm-pcm-routing"},
  15925. {}
  15926. };
  15927. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  15928. static struct platform_driver msm_routing_pcm_driver = {
  15929. .driver = {
  15930. .name = "msm-pcm-routing",
  15931. .owner = THIS_MODULE,
  15932. .of_match_table = msm_pcm_routing_dt_match,
  15933. },
  15934. .probe = msm_routing_pcm_probe,
  15935. .remove = msm_routing_pcm_remove,
  15936. };
  15937. int msm_routing_check_backend_enabled(int fedai_id)
  15938. {
  15939. int i;
  15940. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  15941. /* bad ID assigned in machine driver */
  15942. pr_err("%s: bad MM ID\n", __func__);
  15943. return 0;
  15944. }
  15945. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15946. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  15947. return msm_bedais[i].active;
  15948. }
  15949. return 0;
  15950. }
  15951. static int get_cal_type_index(int32_t cal_type)
  15952. {
  15953. int ret = -EINVAL;
  15954. switch (cal_type) {
  15955. case ADM_TOPOLOGY_CAL_TYPE:
  15956. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  15957. break;
  15958. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  15959. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  15960. break;
  15961. default:
  15962. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  15963. }
  15964. return ret;
  15965. }
  15966. static int msm_routing_set_cal(int32_t cal_type,
  15967. size_t data_size, void *data)
  15968. {
  15969. int ret = 0;
  15970. int cal_index;
  15971. pr_debug("%s\n", __func__);
  15972. cal_index = get_cal_type_index(cal_type);
  15973. if (cal_index < 0) {
  15974. pr_err("%s: Could not get cal index %d\n",
  15975. __func__, cal_index);
  15976. ret = -EINVAL;
  15977. goto done;
  15978. }
  15979. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  15980. if (ret < 0) {
  15981. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  15982. __func__, ret, cal_type);
  15983. ret = -EINVAL;
  15984. goto done;
  15985. }
  15986. done:
  15987. return ret;
  15988. }
  15989. static void msm_routing_delete_cal_data(void)
  15990. {
  15991. pr_debug("%s\n", __func__);
  15992. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  15993. }
  15994. static int msm_routing_init_cal_data(void)
  15995. {
  15996. int ret = 0;
  15997. struct cal_type_info cal_type_info[] = {
  15998. {{ADM_TOPOLOGY_CAL_TYPE,
  15999. {NULL, NULL, NULL,
  16000. msm_routing_set_cal, NULL, NULL} },
  16001. {NULL, NULL, cal_utils_match_buf_num} },
  16002. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  16003. {NULL, NULL, NULL,
  16004. msm_routing_set_cal, NULL, NULL} },
  16005. {NULL, NULL, cal_utils_match_buf_num} },
  16006. };
  16007. pr_debug("%s\n", __func__);
  16008. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  16009. &cal_type_info[0]);
  16010. if (ret < 0) {
  16011. pr_err("%s: could not create cal type!\n",
  16012. __func__);
  16013. ret = -EINVAL;
  16014. goto err;
  16015. }
  16016. return ret;
  16017. err:
  16018. msm_routing_delete_cal_data();
  16019. return ret;
  16020. }
  16021. int __init msm_soc_routing_platform_init(void)
  16022. {
  16023. mutex_init(&routing_lock);
  16024. if (msm_routing_init_cal_data())
  16025. pr_err("%s: could not init cal data!\n", __func__);
  16026. afe_set_routing_callback(
  16027. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  16028. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16029. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  16030. return platform_driver_register(&msm_routing_pcm_driver);
  16031. }
  16032. void msm_soc_routing_platform_exit(void)
  16033. {
  16034. msm_routing_delete_cal_data();
  16035. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16036. mutex_destroy(&routing_lock);
  16037. platform_driver_unregister(&msm_routing_pcm_driver);
  16038. }
  16039. MODULE_DESCRIPTION("MSM routing platform driver");
  16040. MODULE_LICENSE("GPL v2");