msm-pcm-routing-v2.c 712 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070
  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. int ret = 0;
  11140. struct source_tracking_param sourceTrackingData;
  11141. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  11142. ret = voc_get_source_tracking(&sourceTrackingData);
  11143. if (ret) {
  11144. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11145. __func__, ret);
  11146. ret = -EINVAL;
  11147. goto done;
  11148. }
  11149. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11150. sizeof(struct source_tracking_param));
  11151. done:
  11152. return ret;
  11153. }
  11154. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  11155. int *copp_idx)
  11156. {
  11157. int i, idx, be_idx;
  11158. int ret = 0;
  11159. unsigned long copp;
  11160. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  11161. ret = q6audio_validate_port(port_id);
  11162. if (ret < 0) {
  11163. pr_err("%s: port validation failed id 0x%x ret %d\n",
  11164. __func__, port_id, ret);
  11165. ret = -EINVAL;
  11166. goto done;
  11167. }
  11168. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  11169. if (msm_bedais[be_idx].port_id == port_id)
  11170. break;
  11171. }
  11172. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  11173. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  11174. ret = -EINVAL;
  11175. goto done;
  11176. }
  11177. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  11178. MSM_FRONTEND_DAI_MM_SIZE) {
  11179. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  11180. copp = session_copp_map[i]
  11181. [session_type][be_idx];
  11182. if (test_bit(idx, &copp))
  11183. break;
  11184. }
  11185. if (idx >= MAX_COPPS_PER_PORT)
  11186. continue;
  11187. else
  11188. break;
  11189. }
  11190. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  11191. pr_err("%s: Invalid FE, exiting\n", __func__);
  11192. ret = -EINVAL;
  11193. goto done;
  11194. }
  11195. *copp_idx = idx;
  11196. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  11197. done:
  11198. return ret;
  11199. }
  11200. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  11201. const char *prefix, int *port_id)
  11202. {
  11203. int ret = 0;
  11204. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  11205. /*
  11206. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  11207. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  11208. * and compare the string with the backend name to derive the port id.
  11209. */
  11210. if (!strcmp(kcontrol->id.name + strlen(prefix),
  11211. "SLIMBUS_0")) {
  11212. *port_id = SLIMBUS_0_TX;
  11213. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11214. "TERT_MI2S")) {
  11215. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  11216. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  11217. "INT3_MI2S")) {
  11218. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  11219. } else {
  11220. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  11221. __func__, kcontrol->id.name);
  11222. ret = -EINVAL;
  11223. goto done;
  11224. }
  11225. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  11226. __func__, kcontrol->id.name, *port_id);
  11227. done:
  11228. return ret;
  11229. }
  11230. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  11231. struct snd_ctl_elem_value *ucontrol)
  11232. {
  11233. int ret = 0;
  11234. struct sound_focus_param soundFocusData;
  11235. int port_id, copp_idx;
  11236. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11237. "Sound Focus Audio Tx ", &port_id);
  11238. if (ret != 0) {
  11239. pr_err("%s: Error in deriving port id, err=%d\n",
  11240. __func__, ret);
  11241. ret = -EINVAL;
  11242. goto done;
  11243. }
  11244. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11245. &copp_idx);
  11246. if (ret) {
  11247. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11248. __func__, port_id);
  11249. ret = -EINVAL;
  11250. goto done;
  11251. }
  11252. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  11253. sizeof(struct sound_focus_param));
  11254. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  11255. if (ret) {
  11256. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  11257. __func__, ret);
  11258. ret = -EINVAL;
  11259. goto done;
  11260. }
  11261. done:
  11262. return ret;
  11263. }
  11264. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  11265. struct snd_ctl_elem_value *ucontrol)
  11266. {
  11267. int ret = 0;
  11268. struct sound_focus_param soundFocusData;
  11269. int port_id, copp_idx;
  11270. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11271. "Sound Focus Audio Tx ", &port_id);
  11272. if (ret) {
  11273. pr_err("%s: Error in deriving port id, err=%d\n",
  11274. __func__, ret);
  11275. ret = -EINVAL;
  11276. goto done;
  11277. }
  11278. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11279. &copp_idx);
  11280. if (ret) {
  11281. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11282. __func__, port_id);
  11283. ret = -EINVAL;
  11284. goto done;
  11285. }
  11286. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  11287. if (ret) {
  11288. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  11289. __func__, ret);
  11290. ret = -EINVAL;
  11291. goto done;
  11292. }
  11293. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  11294. sizeof(struct sound_focus_param));
  11295. done:
  11296. return ret;
  11297. }
  11298. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  11299. struct snd_ctl_elem_value *ucontrol)
  11300. {
  11301. int ret = 0;
  11302. struct source_tracking_param sourceTrackingData;
  11303. int port_id, copp_idx;
  11304. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  11305. "Source Tracking Audio Tx ", &port_id);
  11306. if (ret) {
  11307. pr_err("%s: Error in deriving port id, err=%d\n",
  11308. __func__, ret);
  11309. ret = -EINVAL;
  11310. goto done;
  11311. }
  11312. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  11313. &copp_idx);
  11314. if (ret) {
  11315. pr_err("%s: Could not get copp idx for port_id=%d\n",
  11316. __func__, port_id);
  11317. ret = -EINVAL;
  11318. goto done;
  11319. }
  11320. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  11321. if (ret) {
  11322. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  11323. __func__, ret);
  11324. ret = -EINVAL;
  11325. goto done;
  11326. }
  11327. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  11328. sizeof(struct source_tracking_param));
  11329. done:
  11330. return ret;
  11331. }
  11332. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  11333. {
  11334. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11335. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11336. .name = "Sound Focus Voice Tx SLIMBUS_0",
  11337. .info = msm_sound_focus_info,
  11338. .get = msm_voice_sound_focus_get,
  11339. .put = msm_voice_sound_focus_put,
  11340. },
  11341. {
  11342. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11343. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11344. .name = "Source Tracking Voice Tx SLIMBUS_0",
  11345. .info = msm_source_tracking_info,
  11346. .get = msm_voice_source_tracking_get,
  11347. },
  11348. {
  11349. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11350. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11351. .name = "Sound Focus Audio Tx SLIMBUS_0",
  11352. .info = msm_sound_focus_info,
  11353. .get = msm_audio_sound_focus_get,
  11354. .put = msm_audio_sound_focus_put,
  11355. },
  11356. {
  11357. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11358. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11359. .name = "Source Tracking Audio Tx SLIMBUS_0",
  11360. .info = msm_source_tracking_info,
  11361. .get = msm_audio_source_tracking_get,
  11362. },
  11363. {
  11364. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11365. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11366. .name = "Sound Focus Voice Tx TERT_MI2S",
  11367. .info = msm_sound_focus_info,
  11368. .get = msm_voice_sound_focus_get,
  11369. .put = msm_voice_sound_focus_put,
  11370. },
  11371. {
  11372. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11373. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11374. .name = "Source Tracking Voice Tx TERT_MI2S",
  11375. .info = msm_source_tracking_info,
  11376. .get = msm_voice_source_tracking_get,
  11377. },
  11378. {
  11379. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11380. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11381. .name = "Sound Focus Audio Tx TERT_MI2S",
  11382. .info = msm_sound_focus_info,
  11383. .get = msm_audio_sound_focus_get,
  11384. .put = msm_audio_sound_focus_put,
  11385. },
  11386. {
  11387. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11388. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11389. .name = "Source Tracking Audio Tx TERT_MI2S",
  11390. .info = msm_source_tracking_info,
  11391. .get = msm_audio_source_tracking_get,
  11392. },
  11393. {
  11394. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11395. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11396. .name = "Sound Focus Voice Tx INT3_MI2S",
  11397. .info = msm_sound_focus_info,
  11398. .get = msm_voice_sound_focus_get,
  11399. .put = msm_voice_sound_focus_put,
  11400. },
  11401. {
  11402. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11403. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11404. .name = "Source Tracking Voice Tx INT3_MI2S",
  11405. .info = msm_source_tracking_info,
  11406. .get = msm_voice_source_tracking_get,
  11407. },
  11408. {
  11409. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  11410. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11411. .name = "Sound Focus Audio Tx INT3_MI2S",
  11412. .info = msm_sound_focus_info,
  11413. .get = msm_audio_sound_focus_get,
  11414. .put = msm_audio_sound_focus_put,
  11415. },
  11416. {
  11417. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  11418. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  11419. .name = "Source Tracking Audio Tx INT3_MI2S",
  11420. .info = msm_source_tracking_info,
  11421. .get = msm_audio_source_tracking_get,
  11422. },
  11423. };
  11424. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  11425. struct snd_ctl_elem_value *ucontrol)
  11426. {
  11427. int ret = 0;
  11428. int item;
  11429. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11430. pr_debug("%s item is %d\n", __func__,
  11431. ucontrol->value.enumerated.item[0]);
  11432. mutex_lock(&routing_lock);
  11433. item = ucontrol->value.enumerated.item[0];
  11434. if (item < e->items) {
  11435. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11436. __func__, e->shift_l, e->values[item]);
  11437. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11438. e->values[item] < MSM_BACKEND_DAI_MAX)
  11439. /* Enable feedback TX path */
  11440. ret = afe_spk_prot_feed_back_cfg(
  11441. msm_bedais[e->values[item]].port_id,
  11442. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  11443. else {
  11444. pr_debug("%s values are out of range item %d\n",
  11445. __func__, e->values[item]);
  11446. /* Disable feedback TX path */
  11447. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11448. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  11449. else
  11450. ret = -EINVAL;
  11451. }
  11452. } else {
  11453. pr_err("%s item value is out of range item\n", __func__);
  11454. ret = -EINVAL;
  11455. }
  11456. mutex_unlock(&routing_lock);
  11457. return ret;
  11458. }
  11459. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  11460. struct snd_ctl_elem_value *ucontrol)
  11461. {
  11462. int ret = 0;
  11463. int item;
  11464. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  11465. pr_debug("%s item is %d\n", __func__,
  11466. ucontrol->value.enumerated.item[0]);
  11467. mutex_lock(&routing_lock);
  11468. item = ucontrol->value.enumerated.item[0];
  11469. if (item < e->items) {
  11470. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  11471. __func__, e->shift_l, e->values[item]);
  11472. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  11473. e->values[item] < MSM_BACKEND_DAI_MAX)
  11474. /* Enable feedback TX path */
  11475. ret = afe_spk_prot_feed_back_cfg(
  11476. msm_bedais[e->values[item]].port_id,
  11477. msm_bedais[e->shift_l].port_id,
  11478. 1, 1, 1);
  11479. else {
  11480. pr_debug("%s values are out of range item %d\n",
  11481. __func__, e->values[item]);
  11482. /* Disable feedback TX path */
  11483. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  11484. ret = afe_spk_prot_feed_back_cfg(0,
  11485. 0, 0, 0, 0);
  11486. else
  11487. ret = -EINVAL;
  11488. }
  11489. } else {
  11490. pr_err("%s item value is out of range item\n", __func__);
  11491. ret = -EINVAL;
  11492. }
  11493. mutex_unlock(&routing_lock);
  11494. return ret;
  11495. }
  11496. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  11497. struct snd_ctl_elem_value *ucontrol)
  11498. {
  11499. pr_debug("%s\n", __func__);
  11500. return 0;
  11501. }
  11502. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  11503. struct snd_ctl_elem_value *ucontrol)
  11504. {
  11505. pr_debug("%s\n", __func__);
  11506. ucontrol->value.enumerated.item[0] = 0;
  11507. return 0;
  11508. }
  11509. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  11510. "ZERO", "SLIM4_TX"
  11511. };
  11512. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  11513. "ZERO", "SLIM4_TX"
  11514. };
  11515. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  11516. "ZERO", "SENARY_TX"
  11517. };
  11518. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  11519. "ZERO", "INT5_MI2S_TX"
  11520. };
  11521. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  11522. "ZERO", "INT5_MI2S_TX"
  11523. };
  11524. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  11525. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11526. };
  11527. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  11528. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  11529. };
  11530. static const int const mi2s_rx_vi_fb_tx_value[] = {
  11531. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  11532. };
  11533. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  11534. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11535. };
  11536. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  11537. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  11538. };
  11539. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  11540. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11541. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  11542. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  11543. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  11544. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  11545. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  11546. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  11547. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  11548. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  11549. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  11550. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  11551. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  11552. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11553. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  11554. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  11555. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  11556. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  11557. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  11558. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  11559. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  11560. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  11561. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  11562. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  11563. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  11564. spkr_prot_put_vi_lch_port);
  11565. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  11566. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  11567. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  11568. spkr_prot_put_vi_rch_port);
  11569. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  11570. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  11571. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  11572. spkr_prot_put_vi_lch_port);
  11573. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  11574. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  11575. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  11576. spkr_prot_put_vi_lch_port);
  11577. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  11578. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  11579. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  11580. spkr_prot_put_vi_rch_port);
  11581. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  11582. /* Frontend AIF */
  11583. /* Widget name equals to Front-End DAI name<Need confirmation>,
  11584. * Stream name must contains substring of front-end dai name
  11585. */
  11586. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  11587. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  11588. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  11589. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  11590. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  11591. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  11592. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  11593. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  11594. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  11595. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  11596. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  11597. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  11598. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  11599. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  11600. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  11601. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  11602. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  11603. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  11604. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  11605. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  11606. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  11607. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  11608. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  11609. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  11610. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  11611. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  11612. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  11613. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  11614. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  11615. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  11616. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  11617. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  11618. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  11619. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  11620. "VoiceMMode1 Playback", 0, 0, 0, 0),
  11621. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  11622. "VoiceMMode1 Capture", 0, 0, 0, 0),
  11623. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  11624. "VoiceMMode2 Playback", 0, 0, 0, 0),
  11625. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  11626. "VoiceMMode2 Capture", 0, 0, 0, 0),
  11627. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  11628. 0, 0, 0, 0),
  11629. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  11630. 0, 0, 0, 0),
  11631. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  11632. 0, 0, 0, 0),
  11633. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  11634. 0, 0, 0, 0),
  11635. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  11636. 0, 0, 0, 0),
  11637. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  11638. 0, 0, 0, 0),
  11639. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  11640. 0, 0, 0, 0),
  11641. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  11642. 0, 0, 0, 0),
  11643. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  11644. 0, 0, 0, 0),
  11645. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  11646. 0, 0, 0, 0),
  11647. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  11648. 0, 0, 0, 0),
  11649. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  11650. 0, 0, 0, 0),
  11651. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  11652. 0, 0, 0, 0),
  11653. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  11654. 0, 0, 0, 0),
  11655. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  11656. 0, 0, 0, 0),
  11657. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  11658. 0, 0, 0, 0),
  11659. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  11660. 0, 0, 0, 0),
  11661. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  11662. 0, 0, 0, 0),
  11663. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  11664. 0, 0, 0, 0),
  11665. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  11666. 0, 0, 0, 0),
  11667. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  11668. 0, 0, 0, 0),
  11669. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  11670. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  11671. 0, 0, 0, 0),
  11672. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  11673. "INT0 MI2S_RX Hostless Playback",
  11674. 0, 0, 0, 0),
  11675. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  11676. "INT4 MI2S_RX Hostless Playback",
  11677. 0, 0, 0, 0),
  11678. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  11679. "Primary MI2S_RX Hostless Playback",
  11680. 0, 0, 0, 0),
  11681. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  11682. "Secondary MI2S_RX Hostless Playback",
  11683. 0, 0, 0, 0),
  11684. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  11685. "Tertiary MI2S_RX Hostless Playback",
  11686. 0, 0, 0, 0),
  11687. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  11688. "Quaternary MI2S_RX Hostless Playback",
  11689. 0, 0, 0, 0),
  11690. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  11691. "Quinary MI2S_RX Hostless Playback",
  11692. 0, 0, 0, 0),
  11693. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  11694. 0, 0, 0, 0),
  11695. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  11696. 0, 0, 0, 0),
  11697. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  11698. 0, 0, 0, 0),
  11699. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  11700. "INT3 MI2S_TX Hostless Capture",
  11701. 0, 0, 0, 0),
  11702. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  11703. "Tertiary MI2S_TX Hostless Capture",
  11704. 0, 0, 0, 0),
  11705. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  11706. "Secondary MI2S_TX Hostless Capture",
  11707. 0, 0, 0, 0),
  11708. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  11709. "Primary MI2S_TX Hostless Capture",
  11710. 0, 0, 0, 0),
  11711. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  11712. 0, 0, 0, 0),
  11713. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  11714. 0, 0, 0, 0),
  11715. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  11716. "Quaternary MI2S_TX Hostless Capture",
  11717. 0, 0, 0, 0),
  11718. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  11719. "Quinary MI2S_TX Hostless Capture",
  11720. 0, 0, 0, 0),
  11721. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  11722. "Primary TDM0 Hostless Playback",
  11723. 0, 0, 0, 0),
  11724. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  11725. "Primary TDM0 Hostless Capture",
  11726. 0, 0, 0, 0),
  11727. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  11728. "Primary TDM1 Hostless Playback",
  11729. 0, 0, 0, 0),
  11730. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  11731. "Primary TDM1 Hostless Capture",
  11732. 0, 0, 0, 0),
  11733. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  11734. "Primary TDM2 Hostless Playback",
  11735. 0, 0, 0, 0),
  11736. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  11737. "Primary TDM2 Hostless Capture",
  11738. 0, 0, 0, 0),
  11739. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  11740. "Primary TDM3 Hostless Playback",
  11741. 0, 0, 0, 0),
  11742. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  11743. "Primary TDM3 Hostless Capture",
  11744. 0, 0, 0, 0),
  11745. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  11746. "Primary TDM4 Hostless Playback",
  11747. 0, 0, 0, 0),
  11748. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  11749. "Primary TDM4 Hostless Capture",
  11750. 0, 0, 0, 0),
  11751. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  11752. "Primary TDM5 Hostless Playback",
  11753. 0, 0, 0, 0),
  11754. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  11755. "Primary TDM5 Hostless Capture",
  11756. 0, 0, 0, 0),
  11757. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  11758. "Primary TDM6 Hostless Playback",
  11759. 0, 0, 0, 0),
  11760. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  11761. "Primary TDM6 Hostless Capture",
  11762. 0, 0, 0, 0),
  11763. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  11764. "Primary TDM7 Hostless Playback",
  11765. 0, 0, 0, 0),
  11766. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  11767. "Primary TDM7 Hostless Capture",
  11768. 0, 0, 0, 0),
  11769. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  11770. "Secondary TDM0 Hostless Playback",
  11771. 0, 0, 0, 0),
  11772. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  11773. "Secondary TDM0 Hostless Capture",
  11774. 0, 0, 0, 0),
  11775. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  11776. "Secondary TDM1 Hostless Playback",
  11777. 0, 0, 0, 0),
  11778. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  11779. "Secondary TDM1 Hostless Capture",
  11780. 0, 0, 0, 0),
  11781. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  11782. "Secondary TDM2 Hostless Playback",
  11783. 0, 0, 0, 0),
  11784. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  11785. "Secondary TDM2 Hostless Capture",
  11786. 0, 0, 0, 0),
  11787. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  11788. "Secondary TDM3 Hostless Playback",
  11789. 0, 0, 0, 0),
  11790. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  11791. "Secondary TDM3 Hostless Capture",
  11792. 0, 0, 0, 0),
  11793. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  11794. "Secondary TDM4 Hostless Playback",
  11795. 0, 0, 0, 0),
  11796. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  11797. "Secondary TDM4 Hostless Capture",
  11798. 0, 0, 0, 0),
  11799. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  11800. "Secondary TDM5 Hostless Playback",
  11801. 0, 0, 0, 0),
  11802. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  11803. "Secondary TDM5 Hostless Capture",
  11804. 0, 0, 0, 0),
  11805. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  11806. "Secondary TDM6 Hostless Playback",
  11807. 0, 0, 0, 0),
  11808. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  11809. "Secondary TDM6 Hostless Capture",
  11810. 0, 0, 0, 0),
  11811. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  11812. "Secondary TDM7 Hostless Playback",
  11813. 0, 0, 0, 0),
  11814. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  11815. "Secondary TDM7 Hostless Capture",
  11816. 0, 0, 0, 0),
  11817. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  11818. "Tertiary TDM0 Hostless Playback",
  11819. 0, 0, 0, 0),
  11820. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  11821. "Tertiary TDM0 Hostless Capture",
  11822. 0, 0, 0, 0),
  11823. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  11824. "Tertiary TDM1 Hostless Playback",
  11825. 0, 0, 0, 0),
  11826. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  11827. "Tertiary TDM1 Hostless Capture",
  11828. 0, 0, 0, 0),
  11829. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  11830. "Tertiary TDM2 Hostless Playback",
  11831. 0, 0, 0, 0),
  11832. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  11833. "Tertiary TDM2 Hostless Capture",
  11834. 0, 0, 0, 0),
  11835. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  11836. "Tertiary TDM3 Hostless Playback",
  11837. 0, 0, 0, 0),
  11838. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  11839. "Tertiary TDM3 Hostless Capture",
  11840. 0, 0, 0, 0),
  11841. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  11842. "Tertiary TDM4 Hostless Playback",
  11843. 0, 0, 0, 0),
  11844. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  11845. "Tertiary TDM4 Hostless Capture",
  11846. 0, 0, 0, 0),
  11847. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  11848. "Tertiary TDM5 Hostless Playback",
  11849. 0, 0, 0, 0),
  11850. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  11851. "Tertiary TDM5 Hostless Capture",
  11852. 0, 0, 0, 0),
  11853. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  11854. "Tertiary TDM6 Hostless Playback",
  11855. 0, 0, 0, 0),
  11856. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  11857. "Tertiary TDM6 Hostless Capture",
  11858. 0, 0, 0, 0),
  11859. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  11860. "Tertiary TDM7 Hostless Playback",
  11861. 0, 0, 0, 0),
  11862. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  11863. "Tertiary TDM7 Hostless Capture",
  11864. 0, 0, 0, 0),
  11865. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  11866. "Quaternary TDM0 Hostless Playback",
  11867. 0, 0, 0, 0),
  11868. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  11869. "Quaternary TDM0 Hostless Capture",
  11870. 0, 0, 0, 0),
  11871. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  11872. "Quaternary TDM1 Hostless Playback",
  11873. 0, 0, 0, 0),
  11874. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  11875. "Quaternary TDM1 Hostless Capture",
  11876. 0, 0, 0, 0),
  11877. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  11878. "Quaternary TDM2 Hostless Playback",
  11879. 0, 0, 0, 0),
  11880. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  11881. "Quaternary TDM2 Hostless Capture",
  11882. 0, 0, 0, 0),
  11883. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  11884. "Quaternary TDM3 Hostless Playback",
  11885. 0, 0, 0, 0),
  11886. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  11887. "Quaternary TDM3 Hostless Capture",
  11888. 0, 0, 0, 0),
  11889. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  11890. "Quaternary TDM4 Hostless Playback",
  11891. 0, 0, 0, 0),
  11892. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  11893. "Quaternary TDM4 Hostless Capture",
  11894. 0, 0, 0, 0),
  11895. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  11896. "Quaternary TDM5 Hostless Playback",
  11897. 0, 0, 0, 0),
  11898. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  11899. "Quaternary TDM5 Hostless Capture",
  11900. 0, 0, 0, 0),
  11901. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  11902. "Quaternary TDM6 Hostless Playback",
  11903. 0, 0, 0, 0),
  11904. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  11905. "Quaternary TDM6 Hostless Capture",
  11906. 0, 0, 0, 0),
  11907. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  11908. "Quaternary TDM7 Hostless Playback",
  11909. 0, 0, 0, 0),
  11910. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  11911. "Quaternary TDM7 Hostless Capture",
  11912. 0, 0, 0, 0),
  11913. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  11914. "Quinary TDM0 Hostless Playback",
  11915. 0, 0, 0, 0),
  11916. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  11917. "Quinary TDM0 Hostless Capture",
  11918. 0, 0, 0, 0),
  11919. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  11920. "Quinary TDM1 Hostless Playback",
  11921. 0, 0, 0, 0),
  11922. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  11923. "Quinary TDM1 Hostless Capture",
  11924. 0, 0, 0, 0),
  11925. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  11926. "Quinary TDM2 Hostless Playback",
  11927. 0, 0, 0, 0),
  11928. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  11929. "Quinary TDM2 Hostless Capture",
  11930. 0, 0, 0, 0),
  11931. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  11932. "Quinary TDM3 Hostless Playback",
  11933. 0, 0, 0, 0),
  11934. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  11935. "Quinary TDM3 Hostless Capture",
  11936. 0, 0, 0, 0),
  11937. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  11938. "Quinary TDM4 Hostless Playback",
  11939. 0, 0, 0, 0),
  11940. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  11941. "Quinary TDM4 Hostless Capture",
  11942. 0, 0, 0, 0),
  11943. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  11944. "Quinary TDM5 Hostless Playback",
  11945. 0, 0, 0, 0),
  11946. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  11947. "Quinary TDM5 Hostless Capture",
  11948. 0, 0, 0, 0),
  11949. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  11950. "Quinary TDM6 Hostless Playback",
  11951. 0, 0, 0, 0),
  11952. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  11953. "Quinary TDM6 Hostless Capture",
  11954. 0, 0, 0, 0),
  11955. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  11956. "Quinary TDM7 Hostless Playback",
  11957. 0, 0, 0, 0),
  11958. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  11959. "Quinary TDM7 Hostless Capture",
  11960. 0, 0, 0, 0),
  11961. /* LSM */
  11962. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  11963. 0, 0, 0, 0),
  11964. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  11965. 0, 0, 0, 0),
  11966. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  11967. 0, 0, 0, 0),
  11968. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  11969. 0, 0, 0, 0),
  11970. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  11971. 0, 0, 0, 0),
  11972. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  11973. 0, 0, 0, 0),
  11974. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  11975. 0, 0, 0, 0),
  11976. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  11977. 0, 0, 0, 0),
  11978. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  11979. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  11980. /* Backend AIF */
  11981. /* Stream name equals to backend dai link stream name */
  11982. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  11983. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  11984. 0, 0, 0, 0),
  11985. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  11986. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  11987. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  11988. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  11989. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  11990. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  11991. 0, 0, 0, 0),
  11992. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  11993. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  11994. 0, 0, 0, 0),
  11995. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  11996. 0, 0, 0, 0),
  11997. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  11998. 0, 0, 0, 0),
  11999. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  12000. "Secondary MI2S Playback SD1",
  12001. 0, 0, 0, 0),
  12002. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  12003. 0, 0, 0, 0),
  12004. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  12005. 0, 0, 0, 0),
  12006. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  12007. 0, 0, 0, 0),
  12008. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  12009. 0, 0, 0, 0),
  12010. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  12011. 0, 0, 0, 0),
  12012. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  12013. 0, 0, 0, 0),
  12014. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  12015. 0, 0, 0, 0),
  12016. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  12017. 0, 0, 0, 0),
  12018. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  12019. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  12020. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  12021. 0, 0, 0, 0),
  12022. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  12023. 0, 0, 0, 0),
  12024. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  12025. 0, 0, 0, 0),
  12026. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  12027. 0, 0, 0, 0),
  12028. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  12029. 0, 0, 0, 0),
  12030. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  12031. 0, 0, 0, 0),
  12032. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  12033. 0, 0, 0, 0),
  12034. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  12035. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  12036. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  12037. 0, 0, 0, 0),
  12038. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  12039. 0, 0, 0, 0),
  12040. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  12041. 0, 0, 0, 0),
  12042. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  12043. 0, 0, 0, 0),
  12044. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  12045. 0, 0, 0, 0),
  12046. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  12047. 0, 0, 0, 0),
  12048. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  12049. 0, 0, 0, 0),
  12050. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  12051. 0, 0, 0, 0),
  12052. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  12053. 0, 0, 0, 0),
  12054. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  12055. 0, 0, 0, 0),
  12056. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  12057. 0, 0, 0, 0),
  12058. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  12059. 0, 0, 0, 0),
  12060. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  12061. 0, 0, 0, 0),
  12062. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  12063. 0, 0, 0, 0),
  12064. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  12065. 0, 0, 0, 0),
  12066. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  12067. 0, 0, 0, 0),
  12068. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  12069. 0, 0, 0, 0),
  12070. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  12071. 0, 0, 0, 0),
  12072. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  12073. 0, 0, 0, 0),
  12074. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  12075. 0, 0, 0, 0),
  12076. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  12077. 0, 0, 0, 0),
  12078. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  12079. 0, 0, 0, 0),
  12080. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  12081. 0, 0, 0, 0),
  12082. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  12083. 0, 0, 0, 0),
  12084. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  12085. 0, 0, 0, 0),
  12086. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  12087. 0, 0, 0, 0),
  12088. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  12089. 0, 0, 0, 0),
  12090. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  12091. 0, 0, 0, 0),
  12092. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  12093. 0, 0, 0, 0),
  12094. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  12095. 0, 0, 0, 0),
  12096. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  12097. 0, 0, 0, 0),
  12098. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  12099. 0, 0, 0, 0),
  12100. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  12101. 0, 0, 0, 0),
  12102. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  12103. 0, 0, 0, 0),
  12104. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  12105. 0, 0, 0, 0),
  12106. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  12107. 0, 0, 0, 0),
  12108. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  12109. 0, 0, 0, 0),
  12110. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  12111. 0, 0, 0, 0),
  12112. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  12113. 0, 0, 0, 0),
  12114. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  12115. 0, 0, 0, 0),
  12116. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  12117. 0, 0, 0, 0),
  12118. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  12119. 0, 0, 0, 0),
  12120. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  12121. 0, 0, 0, 0),
  12122. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  12123. 0, 0, 0, 0),
  12124. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  12125. 0, 0, 0, 0),
  12126. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  12127. 0, 0, 0, 0),
  12128. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  12129. 0, 0, 0, 0),
  12130. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  12131. 0, 0, 0, 0),
  12132. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  12133. 0, 0, 0, 0),
  12134. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  12135. 0, 0, 0, 0),
  12136. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  12137. 0, 0, 0, 0),
  12138. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  12139. 0, 0, 0, 0),
  12140. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  12141. 0, 0, 0, 0),
  12142. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  12143. 0, 0, 0, 0),
  12144. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  12145. 0, 0, 0, 0),
  12146. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  12147. 0, 0, 0, 0),
  12148. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  12149. 0, 0, 0, 0),
  12150. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  12151. 0, 0, 0, 0),
  12152. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  12153. 0, 0, 0, 0),
  12154. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  12155. 0, 0, 0, 0),
  12156. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  12157. 0, 0, 0, 0),
  12158. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  12159. 0, 0, 0, 0),
  12160. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  12161. 0, 0, 0, 0),
  12162. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  12163. 0, 0, 0, 0),
  12164. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  12165. 0, 0, 0, 0),
  12166. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  12167. 0, 0, 0, 0),
  12168. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  12169. 0, 0, 0, 0),
  12170. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  12171. 0, 0, 0, 0),
  12172. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  12173. 0, 0, 0, 0),
  12174. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  12175. 0, 0, 0, 0),
  12176. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  12177. 0, 0, 0, 0),
  12178. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  12179. 0, 0, 0, 0),
  12180. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  12181. 0, 0, 0, 0),
  12182. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  12183. 0, 0, 0, 0),
  12184. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  12185. 0, 0, 0, 0),
  12186. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  12187. 0, 0, 0, 0),
  12188. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  12189. 0, 0, 0, 0),
  12190. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  12191. 0, 0, 0, 0),
  12192. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  12193. 0, 0, 0, 0),
  12194. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  12195. 0, 0, 0, 0),
  12196. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  12197. 0, 0, 0, 0),
  12198. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  12199. 0, 0, 0, 0),
  12200. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  12201. 0, 0, 0, 0),
  12202. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  12203. 0, 0, 0, 0),
  12204. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  12205. 0, 0, 0, 0),
  12206. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  12207. 0, 0, 0, 0),
  12208. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  12209. 0, 0, 0, 0),
  12210. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  12211. 0, 0, 0, 0),
  12212. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  12213. 0, 0, 0, 0),
  12214. /* incall */
  12215. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  12216. 0, 0, 0, 0),
  12217. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  12218. 0, 0, 0, 0),
  12219. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  12220. 0, 0, 0, 0),
  12221. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  12222. 0, 0, 0, 0),
  12223. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  12224. 0, 0, 0, 0),
  12225. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  12226. 0, 0, 0, 0),
  12227. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  12228. 0, 0, 0, 0),
  12229. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  12230. 0, 0, 0, 0),
  12231. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  12232. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  12233. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  12234. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  12235. 0, 0, 0, 0),
  12236. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  12237. 0, 0, 0, 0),
  12238. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  12239. 0, 0, 0, 0),
  12240. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  12241. 0, 0, 0, 0),
  12242. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  12243. 0, 0, 0, 0),
  12244. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  12245. 0, 0, 0, 0),
  12246. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  12247. 0, 0, 0, 0),
  12248. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  12249. 0, 0, 0, 0),
  12250. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  12251. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  12252. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  12253. 0, 0, 0, 0),
  12254. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  12255. 0, 0, 0, 0),
  12256. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  12257. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  12258. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  12259. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  12260. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  12261. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  12262. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  12263. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  12264. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  12265. /* In- call recording */
  12266. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  12267. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  12268. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  12269. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  12270. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  12271. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  12272. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  12273. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  12274. /* Switch Definitions */
  12275. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  12276. &slim_fm_switch_mixer_controls),
  12277. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  12278. &slim1_fm_switch_mixer_controls),
  12279. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  12280. &slim3_fm_switch_mixer_controls),
  12281. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  12282. &slim4_fm_switch_mixer_controls),
  12283. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  12284. &slim6_fm_switch_mixer_controls),
  12285. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12286. &pcm_rx_switch_mixer_controls),
  12287. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12288. &int0_mi2s_rx_switch_mixer_controls),
  12289. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12290. &int4_mi2s_rx_switch_mixer_controls),
  12291. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12292. &pri_mi2s_rx_switch_mixer_controls),
  12293. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12294. &sec_mi2s_rx_switch_mixer_controls),
  12295. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12296. &tert_mi2s_rx_switch_mixer_controls),
  12297. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12298. &quat_mi2s_rx_switch_mixer_controls),
  12299. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  12300. &quin_mi2s_rx_switch_mixer_controls),
  12301. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12302. &hfp_pri_aux_switch_mixer_controls),
  12303. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  12304. &hfp_aux_switch_mixer_controls),
  12305. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  12306. &hfp_int_switch_mixer_controls),
  12307. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  12308. &hfp_slim7_switch_mixer_controls),
  12309. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  12310. &usb_switch_mixer_controls),
  12311. /* Mixer definitions */
  12312. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12313. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  12314. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12315. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  12316. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12317. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  12318. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12319. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  12320. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12321. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  12322. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12323. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  12324. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  12325. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  12326. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  12327. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  12328. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12329. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  12330. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12331. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  12332. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12333. quaternary_mi2s_rx_mixer_controls,
  12334. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  12335. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12336. tertiary_mi2s_rx_mixer_controls,
  12337. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  12338. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12339. secondary_mi2s_rx_mixer_controls,
  12340. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  12341. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12342. secondary_mi2s_rx2_mixer_controls,
  12343. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  12344. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12345. primary_mi2s_rx_mixer_controls,
  12346. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  12347. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12348. int0_mi2s_rx_mixer_controls,
  12349. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  12350. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12351. int4_mi2s_rx_mixer_controls,
  12352. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  12353. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12354. quinary_mi2s_rx_mixer_controls,
  12355. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  12356. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12357. pri_tdm_rx_0_mixer_controls,
  12358. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  12359. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12360. pri_tdm_rx_1_mixer_controls,
  12361. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  12362. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12363. pri_tdm_rx_2_mixer_controls,
  12364. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  12365. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12366. pri_tdm_rx_3_mixer_controls,
  12367. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  12368. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12369. pri_tdm_tx_0_mixer_controls,
  12370. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  12371. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12372. sec_tdm_rx_0_mixer_controls,
  12373. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  12374. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12375. sec_tdm_rx_1_mixer_controls,
  12376. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  12377. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12378. sec_tdm_rx_2_mixer_controls,
  12379. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  12380. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12381. sec_tdm_rx_3_mixer_controls,
  12382. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  12383. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12384. sec_tdm_tx_0_mixer_controls,
  12385. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  12386. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12387. tert_tdm_rx_0_mixer_controls,
  12388. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  12389. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12390. tert_tdm_tx_0_mixer_controls,
  12391. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  12392. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12393. tert_tdm_rx_1_mixer_controls,
  12394. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  12395. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12396. tert_tdm_rx_2_mixer_controls,
  12397. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  12398. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12399. tert_tdm_rx_3_mixer_controls,
  12400. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  12401. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12402. tert_tdm_rx_4_mixer_controls,
  12403. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  12404. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12405. quat_tdm_rx_0_mixer_controls,
  12406. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  12407. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12408. quat_tdm_tx_0_mixer_controls,
  12409. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  12410. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12411. quat_tdm_rx_1_mixer_controls,
  12412. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  12413. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12414. quat_tdm_rx_2_mixer_controls,
  12415. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  12416. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12417. quat_tdm_rx_3_mixer_controls,
  12418. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  12419. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12420. quin_tdm_rx_0_mixer_controls,
  12421. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  12422. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12423. quin_tdm_tx_0_mixer_controls,
  12424. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  12425. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12426. quin_tdm_rx_1_mixer_controls,
  12427. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  12428. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12429. quin_tdm_rx_2_mixer_controls,
  12430. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  12431. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12432. quin_tdm_rx_3_mixer_controls,
  12433. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  12434. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  12435. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  12436. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  12437. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  12438. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  12439. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  12440. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  12441. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  12442. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  12443. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  12444. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  12445. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  12446. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  12447. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  12448. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  12449. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  12450. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  12451. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  12452. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  12453. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  12454. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  12455. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  12456. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  12457. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  12458. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  12459. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  12460. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  12461. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  12462. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12463. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  12464. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12465. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  12466. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12467. tert_auxpcm_rx_mixer_controls,
  12468. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  12469. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12470. quat_auxpcm_rx_mixer_controls,
  12471. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  12472. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12473. quin_auxpcm_rx_mixer_controls,
  12474. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  12475. /* incall */
  12476. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  12477. incall_music_delivery_mixer_controls,
  12478. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  12479. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  12480. incall_music2_delivery_mixer_controls,
  12481. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  12482. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12483. slimbus_4_rx_mixer_controls,
  12484. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  12485. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12486. slimbus_6_rx_mixer_controls,
  12487. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  12488. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12489. usb_audio_rx_mixer_controls,
  12490. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  12491. /* Voice Mixer */
  12492. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  12493. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  12494. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  12495. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  12496. SND_SOC_NOPM, 0, 0,
  12497. sec_i2s_rx_voice_mixer_controls,
  12498. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  12499. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  12500. SND_SOC_NOPM, 0, 0,
  12501. sec_mi2s_rx_voice_mixer_controls,
  12502. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  12503. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  12504. SND_SOC_NOPM, 0, 0,
  12505. slimbus_rx_voice_mixer_controls,
  12506. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  12507. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  12508. SND_SOC_NOPM, 0, 0,
  12509. bt_sco_rx_voice_mixer_controls,
  12510. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  12511. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  12512. SND_SOC_NOPM, 0, 0,
  12513. afe_pcm_rx_voice_mixer_controls,
  12514. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  12515. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  12516. SND_SOC_NOPM, 0, 0,
  12517. aux_pcm_rx_voice_mixer_controls,
  12518. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  12519. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  12520. SND_SOC_NOPM, 0, 0,
  12521. sec_aux_pcm_rx_voice_mixer_controls,
  12522. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  12523. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  12524. SND_SOC_NOPM, 0, 0,
  12525. tert_aux_pcm_rx_voice_mixer_controls,
  12526. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  12527. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  12528. SND_SOC_NOPM, 0, 0,
  12529. quat_aux_pcm_rx_voice_mixer_controls,
  12530. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  12531. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  12532. SND_SOC_NOPM, 0, 0,
  12533. quin_aux_pcm_rx_voice_mixer_controls,
  12534. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  12535. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  12536. SND_SOC_NOPM, 0, 0,
  12537. hdmi_rx_voice_mixer_controls,
  12538. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  12539. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  12540. SND_SOC_NOPM, 0, 0,
  12541. mi2s_rx_voice_mixer_controls,
  12542. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  12543. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  12544. SND_SOC_NOPM, 0, 0,
  12545. pri_mi2s_rx_voice_mixer_controls,
  12546. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  12547. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  12548. SND_SOC_NOPM, 0, 0,
  12549. int0_mi2s_rx_voice_mixer_controls,
  12550. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  12551. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  12552. SND_SOC_NOPM, 0, 0,
  12553. int4_mi2s_rx_voice_mixer_controls,
  12554. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  12555. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  12556. SND_SOC_NOPM, 0, 0,
  12557. tert_mi2s_rx_voice_mixer_controls,
  12558. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  12559. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  12560. SND_SOC_NOPM, 0, 0,
  12561. quat_mi2s_rx_voice_mixer_controls,
  12562. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  12563. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  12564. SND_SOC_NOPM, 0, 0,
  12565. quin_mi2s_rx_voice_mixer_controls,
  12566. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  12567. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  12568. SND_SOC_NOPM, 0, 0,
  12569. quat_tdm_rx_2_voice_mixer_controls,
  12570. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  12571. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  12572. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  12573. ARRAY_SIZE(tx_voip_mixer_controls)),
  12574. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  12575. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  12576. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  12577. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  12578. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  12579. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  12580. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12581. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  12582. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12583. int_bt_a2dp_rx_mixer_controls,
  12584. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  12585. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12586. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  12587. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  12588. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  12589. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12590. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  12591. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12592. tx_voice2_stub_mixer_controls,
  12593. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  12594. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  12595. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  12596. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  12597. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  12598. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  12599. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  12600. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12601. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  12602. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  12603. SND_SOC_NOPM, 0, 0,
  12604. slimbus_6_rx_voice_mixer_controls,
  12605. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  12606. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12607. slimbus_7_rx_voice_mixer_controls,
  12608. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  12609. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  12610. slimbus_8_rx_voice_mixer_controls,
  12611. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  12612. /* port mixer */
  12613. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  12614. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  12615. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  12616. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  12617. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  12618. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  12619. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  12620. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  12621. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  12622. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  12623. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  12624. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  12625. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  12626. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  12627. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  12628. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  12629. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  12630. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  12631. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12632. sbus_1_rx_port_mixer_controls,
  12633. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  12634. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12635. bt_sco_rx_port_mixer_controls,
  12636. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  12637. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  12638. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  12639. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  12640. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  12641. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  12642. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  12643. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  12644. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  12645. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  12646. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  12647. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  12648. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  12649. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  12650. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  12651. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  12652. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  12653. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  12654. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  12655. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12656. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  12657. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12658. primary_mi2s_rx_port_mixer_controls,
  12659. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  12660. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12661. sec_mi2s_rx_port_mixer_controls,
  12662. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  12663. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12664. tert_mi2s_rx_port_mixer_controls,
  12665. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  12666. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12667. quat_mi2s_rx_port_mixer_controls,
  12668. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  12669. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12670. quin_mi2s_rx_port_mixer_controls,
  12671. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  12672. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12673. pri_tdm_rx_0_port_mixer_controls,
  12674. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  12675. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12676. pri_tdm_rx_1_port_mixer_controls,
  12677. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  12678. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12679. pri_tdm_rx_2_port_mixer_controls,
  12680. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  12681. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12682. pri_tdm_rx_3_port_mixer_controls,
  12683. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  12684. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12685. sec_tdm_rx_0_port_mixer_controls,
  12686. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  12687. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12688. sec_tdm_rx_1_port_mixer_controls,
  12689. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  12690. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12691. sec_tdm_rx_2_port_mixer_controls,
  12692. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  12693. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12694. sec_tdm_rx_3_port_mixer_controls,
  12695. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  12696. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12697. tert_tdm_rx_0_port_mixer_controls,
  12698. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  12699. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12700. tert_tdm_rx_1_port_mixer_controls,
  12701. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  12702. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12703. tert_tdm_rx_2_port_mixer_controls,
  12704. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  12705. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12706. tert_tdm_rx_3_port_mixer_controls,
  12707. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  12708. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12709. quat_tdm_rx_0_port_mixer_controls,
  12710. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  12711. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12712. quat_tdm_rx_1_port_mixer_controls,
  12713. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  12714. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12715. quat_tdm_rx_2_port_mixer_controls,
  12716. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  12717. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12718. quat_tdm_rx_3_port_mixer_controls,
  12719. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  12720. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  12721. quin_tdm_rx_0_port_mixer_controls,
  12722. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  12723. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  12724. quin_tdm_rx_1_port_mixer_controls,
  12725. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  12726. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  12727. quin_tdm_rx_2_port_mixer_controls,
  12728. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  12729. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  12730. quin_tdm_rx_3_port_mixer_controls,
  12731. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  12732. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12733. int0_mi2s_rx_port_mixer_controls,
  12734. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  12735. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  12736. int4_mi2s_rx_port_mixer_controls,
  12737. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  12738. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  12739. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  12740. ARRAY_SIZE(tx_qchat_mixer_controls)),
  12741. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  12742. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  12743. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  12744. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  12745. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  12746. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  12747. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  12748. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  12749. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  12750. /* lsm mixer definitions */
  12751. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  12752. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  12753. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  12754. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  12755. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  12756. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  12757. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  12758. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  12759. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  12760. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  12761. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  12762. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  12763. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  12764. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  12765. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  12766. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  12767. /* Virtual Pins to force backends ON atm */
  12768. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  12769. SND_SOC_DAPM_INPUT("BE_IN"),
  12770. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  12771. &slim0_rx_vi_fb_lch_mux),
  12772. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  12773. &slim0_rx_vi_fb_rch_mux),
  12774. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  12775. &mi2s_rx_vi_fb_mux),
  12776. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12777. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  12778. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  12779. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  12780. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  12781. &voc_ext_ec_mux),
  12782. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  12783. &ext_ec_ref_mux_ul1),
  12784. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  12785. &ext_ec_ref_mux_ul2),
  12786. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  12787. &ext_ec_ref_mux_ul3),
  12788. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  12789. &ext_ec_ref_mux_ul4),
  12790. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  12791. &ext_ec_ref_mux_ul5),
  12792. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  12793. &ext_ec_ref_mux_ul6),
  12794. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  12795. &ext_ec_ref_mux_ul8),
  12796. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  12797. &ext_ec_ref_mux_ul9),
  12798. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  12799. &ext_ec_ref_mux_ul10),
  12800. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  12801. &ext_ec_ref_mux_ul16),
  12802. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  12803. &ext_ec_ref_mux_ul17),
  12804. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  12805. &ext_ec_ref_mux_ul18),
  12806. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  12807. &ext_ec_ref_mux_ul19),
  12808. };
  12809. static const struct snd_soc_dapm_route intercon[] = {
  12810. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12811. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12812. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12813. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12814. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12815. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12816. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12817. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12818. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12819. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12820. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12821. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12822. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12823. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12824. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12825. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12826. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  12827. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12828. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12829. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12830. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12831. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12832. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12833. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12834. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12835. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12836. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12837. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12838. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12839. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12840. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12841. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12842. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12843. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  12844. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12845. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12846. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12847. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12848. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12849. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12850. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12851. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12852. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12853. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12854. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12855. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12856. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12857. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12858. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12859. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12860. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  12861. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12862. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12863. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12864. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12865. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12866. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12867. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12868. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12869. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12870. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12871. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12872. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12873. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12874. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12875. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12876. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12877. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  12878. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12879. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12880. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12881. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12882. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12883. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12884. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12885. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12886. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12887. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12888. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12889. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12890. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12891. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12892. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12893. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12894. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  12895. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  12896. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  12897. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  12898. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  12899. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  12900. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  12901. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  12902. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  12903. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  12904. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  12905. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  12906. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  12907. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  12908. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  12909. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  12910. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  12911. {"HDMI", NULL, "HDMI Mixer"},
  12912. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  12913. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  12914. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  12915. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  12916. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  12917. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  12918. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  12919. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  12920. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  12921. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  12922. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  12923. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  12924. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  12925. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  12926. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  12927. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  12928. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  12929. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12930. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12931. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12932. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12933. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12934. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12935. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12936. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12937. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12938. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12939. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12940. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12941. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12942. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12943. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12944. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12945. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  12946. /* incall */
  12947. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  12948. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  12949. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  12950. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  12951. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  12952. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  12953. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  12954. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  12955. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  12956. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  12957. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12958. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12959. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12960. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12961. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  12962. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12963. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12964. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12965. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12966. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12967. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12968. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12969. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12970. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12971. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12972. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12973. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12974. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12975. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12976. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12977. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12978. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  12979. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12980. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12981. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12982. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  12983. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  12984. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  12985. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  12986. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  12987. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  12988. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  12989. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  12990. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  12991. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  12992. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  12993. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  12994. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  12995. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  12996. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  12997. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  12998. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  12999. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13000. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13001. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13002. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13003. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13004. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13005. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13006. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13007. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13008. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13009. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13010. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13011. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13012. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  13013. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13014. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13015. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  13016. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13017. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13018. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  13019. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  13020. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13021. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13022. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13023. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13024. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13025. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13026. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13027. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13028. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13029. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13030. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13031. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13032. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13033. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13034. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13035. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13036. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13037. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13038. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13039. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13040. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13041. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13042. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13043. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13044. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  13045. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13046. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13047. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13048. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13049. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13050. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13051. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13052. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13053. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13054. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13055. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13056. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13057. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13058. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13059. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13060. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13061. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  13062. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13063. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13064. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13065. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13066. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13067. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13068. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13069. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13070. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13071. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13072. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13073. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13074. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13075. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13076. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13077. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  13078. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13079. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13080. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13081. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13082. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13083. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13084. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13085. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13086. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13087. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13088. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13089. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13090. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13091. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13092. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  13093. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13094. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13095. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13096. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13097. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13098. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13099. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13100. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13101. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13102. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13103. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13104. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13105. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13106. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13107. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  13108. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13109. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  13110. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13111. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13112. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13113. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13114. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13115. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13116. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13117. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13118. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13119. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13120. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13121. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13122. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13123. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13124. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13125. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13126. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13127. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  13128. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13129. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13130. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13131. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13132. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13133. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13134. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13135. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13136. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13137. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13138. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13139. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13140. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13141. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13142. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13143. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  13144. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13145. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13146. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13147. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13148. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13149. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13150. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13151. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13152. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13153. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13154. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13155. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13156. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13157. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13158. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13159. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  13160. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13161. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13162. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13163. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13164. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13165. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13166. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13167. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13168. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13169. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13170. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13171. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13172. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13173. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13174. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13175. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13176. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13177. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  13178. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13179. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13180. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13181. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13182. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13183. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13184. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13185. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13186. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13187. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13188. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13189. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13190. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13191. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13192. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13193. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13194. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  13195. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13196. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13197. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13198. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13199. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13200. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13201. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13202. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13203. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13204. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13205. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13206. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13207. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13208. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13209. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13210. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13211. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  13212. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13213. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13214. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13215. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13216. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13217. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13218. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13219. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13220. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13221. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13222. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13223. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13224. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13225. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13226. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13227. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13228. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  13229. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13230. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13231. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13232. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13233. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13234. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13235. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13236. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13237. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13238. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13239. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13240. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13241. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13242. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13243. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13244. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13245. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  13246. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13247. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13248. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13249. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13250. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13251. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13252. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13253. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13254. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13255. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13256. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13257. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13258. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13259. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13260. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13261. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13262. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  13263. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13264. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13265. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13266. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13267. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13268. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13269. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13270. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13271. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13272. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13273. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13274. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13275. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13276. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13277. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13278. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13279. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  13280. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13281. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13282. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13283. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13284. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13285. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13286. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13287. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13288. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13289. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13290. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13291. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13292. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13293. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13294. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13295. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13296. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  13297. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13298. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13299. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13300. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13301. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13302. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13303. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13304. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13305. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13306. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13307. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13308. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13309. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13310. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13311. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13312. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13313. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  13314. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13315. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13316. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13317. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13318. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13319. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13320. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13321. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13322. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13323. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13324. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13325. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13326. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13327. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13328. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13329. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13330. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  13331. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13332. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13333. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13334. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13335. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13336. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13337. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13338. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13339. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13340. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13341. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13342. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13343. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13344. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13345. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13346. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13347. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  13348. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13349. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13350. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13351. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13352. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13353. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13354. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13355. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13356. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13357. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13358. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13359. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13360. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13361. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13362. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13363. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13364. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  13365. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13366. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13367. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13368. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13369. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13370. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13371. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13372. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13373. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13374. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13375. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13376. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13377. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13378. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13379. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13380. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13381. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  13382. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13383. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13384. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13385. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13386. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13387. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13388. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13389. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13390. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13391. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13392. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13393. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13394. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13395. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13396. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13397. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13398. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  13399. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13400. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13401. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13402. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13403. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13404. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13405. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13406. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13407. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13408. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13409. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13410. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13411. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13412. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13413. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13414. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13415. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  13416. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13417. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13418. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13419. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13420. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13421. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13422. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13423. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13424. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13425. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13426. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13427. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13428. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13429. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13430. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13431. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13432. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  13433. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13434. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13435. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13436. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13437. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13438. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13439. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13440. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13441. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13442. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13443. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13444. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13445. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13446. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13447. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13448. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13449. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  13450. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13451. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13452. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13453. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13454. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13455. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13456. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13457. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13458. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13459. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13460. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13461. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13462. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13463. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13464. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13465. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13466. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13467. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  13468. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13469. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13470. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13471. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13472. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13473. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13474. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13475. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13476. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13477. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13478. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13479. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13480. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13481. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13482. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13483. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13484. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  13485. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13486. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13487. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13488. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13489. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13490. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13491. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13492. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13493. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13494. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13495. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13496. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13497. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13498. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13499. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13500. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13501. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13502. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  13503. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13504. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13505. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13506. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13507. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13508. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13509. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13510. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13511. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13512. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13513. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13514. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13515. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13516. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13517. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13518. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13519. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13520. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  13521. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13522. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13523. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13524. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13525. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13526. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13527. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13528. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13529. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13530. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13531. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13532. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13533. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13534. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13535. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13536. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13537. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13538. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  13539. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13540. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13541. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13542. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13543. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13544. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13545. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13546. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13547. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13548. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13549. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13550. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13551. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13552. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13553. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13554. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13555. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13556. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  13557. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13558. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13559. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13560. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13561. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13562. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13563. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13564. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13565. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13566. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13567. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13568. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13569. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13570. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13571. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13572. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13573. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  13574. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13575. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13576. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13577. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13578. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13579. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13580. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13581. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13582. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13583. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13584. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13585. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13586. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13587. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13588. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13589. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13590. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13591. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  13592. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13593. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13594. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13595. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13596. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13597. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13598. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13599. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13600. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13601. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13602. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13603. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13604. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13605. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13606. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13607. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13608. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13609. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  13610. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  13611. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  13612. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  13613. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  13614. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  13615. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  13616. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  13617. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  13618. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  13619. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  13620. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  13621. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  13622. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  13623. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  13624. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  13625. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  13626. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  13627. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  13628. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  13629. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  13630. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  13631. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  13632. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  13633. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  13634. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  13635. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13636. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13637. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13638. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13639. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13640. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13641. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13642. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13643. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13644. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13645. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13646. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13647. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13648. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13649. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13650. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13651. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13652. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13653. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13654. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13655. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  13656. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  13657. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  13658. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13659. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13660. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  13661. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  13662. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13663. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13664. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13665. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  13666. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  13667. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13668. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  13669. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13670. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  13671. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  13672. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  13673. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13674. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13675. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13676. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  13677. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13678. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13679. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13680. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13681. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13682. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13683. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13684. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13685. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  13686. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13687. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13688. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13689. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13690. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  13691. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13692. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  13693. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  13694. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13695. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13696. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13697. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13698. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13699. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13700. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13701. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13702. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13703. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13704. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13705. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13706. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13707. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13708. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13709. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13710. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13711. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13712. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13713. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13714. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13715. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13716. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13717. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13718. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13719. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13720. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13721. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13722. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13723. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13724. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13725. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13726. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13727. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13728. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13729. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13730. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13731. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13732. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13733. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13734. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13735. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13736. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13737. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13738. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13739. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13740. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13741. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13742. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13743. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13744. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13745. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13746. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13747. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13748. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13749. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13750. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13751. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13752. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13753. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13754. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13755. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13756. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13757. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13758. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13759. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13760. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13761. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13762. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13763. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13764. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13765. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13766. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13767. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13768. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13769. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13770. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13771. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13772. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13773. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13774. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13775. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13776. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13777. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13778. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13779. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13780. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13781. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13782. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13783. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13784. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13785. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13786. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13787. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13788. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13789. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13790. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13791. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13792. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13793. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13794. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13795. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13796. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13797. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13798. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13799. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13800. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13801. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13802. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13803. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13804. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13805. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13806. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13807. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13808. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13809. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13810. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13811. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13812. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13813. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13814. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13815. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13816. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13817. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13818. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13819. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13820. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13821. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13822. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13823. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13824. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13825. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13826. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13827. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13828. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13829. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13830. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13831. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13832. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13833. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13834. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13835. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13836. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13837. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13838. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13839. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13840. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13841. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13842. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13843. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13844. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13845. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13846. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13847. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13848. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13849. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13850. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13851. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13852. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13853. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13854. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13855. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13856. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  13857. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  13858. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  13859. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  13860. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  13861. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13862. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13863. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13864. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13865. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13866. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13867. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13868. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13869. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13870. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13871. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13872. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13873. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13874. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13875. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13876. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13877. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  13878. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  13879. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  13880. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  13881. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13882. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13883. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13884. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13885. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13886. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13887. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13888. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  13889. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  13890. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  13891. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  13892. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  13893. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  13894. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  13895. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  13896. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  13897. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  13898. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  13899. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  13900. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  13901. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  13902. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  13903. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  13904. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  13905. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13906. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13907. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13908. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13909. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13910. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13911. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13912. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13913. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13914. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13915. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13916. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13917. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13918. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13919. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13920. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13921. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13922. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  13923. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13924. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13925. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13926. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13927. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13928. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13929. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13930. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13931. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13932. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13933. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13934. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13935. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13936. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13937. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13938. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13939. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  13940. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  13941. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13942. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13943. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13944. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13945. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13946. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13947. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13948. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13949. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13950. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13951. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13952. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13953. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13954. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13955. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13956. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13957. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  13958. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  13959. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  13960. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  13961. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  13962. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  13963. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  13964. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  13965. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  13966. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  13967. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  13968. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  13969. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  13970. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  13971. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  13972. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  13973. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  13974. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  13975. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13976. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13977. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13978. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13979. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13980. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13981. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13982. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13983. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13984. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  13985. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13986. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13987. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13988. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13989. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13990. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13991. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13992. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13993. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  13994. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13995. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13996. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13997. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13998. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  13999. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14000. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14001. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14002. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14003. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  14004. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  14005. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14006. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  14007. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  14008. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  14009. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  14010. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  14011. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  14012. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  14013. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  14014. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  14015. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  14016. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  14017. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  14018. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  14019. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14020. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14021. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14022. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14023. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14024. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14025. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14026. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14027. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14028. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14029. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14030. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14031. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14032. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14033. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14034. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14035. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  14036. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14037. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14038. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14039. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14040. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14041. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14042. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14043. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14044. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14045. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14046. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14047. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14048. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14049. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14050. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14051. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14052. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  14053. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14054. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14055. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14056. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14057. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14058. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14059. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14060. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14061. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14062. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14063. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14064. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14065. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14066. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14067. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14068. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14069. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  14070. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14071. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14072. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14073. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14074. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14075. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14076. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14077. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14078. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14079. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14080. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14081. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14082. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14083. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14084. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14085. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14086. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  14087. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  14088. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  14089. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  14090. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  14091. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  14092. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  14093. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  14094. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  14095. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  14096. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  14097. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  14098. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  14099. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  14100. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  14101. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  14102. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  14103. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  14104. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14105. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14106. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14107. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14108. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14109. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  14110. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14111. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14112. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14113. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  14114. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14115. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14116. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14117. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14118. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14119. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  14120. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14121. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14122. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14123. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14124. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14125. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  14126. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14127. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14128. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14129. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14130. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14131. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  14132. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14133. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14134. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14135. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14136. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14137. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  14138. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14139. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14140. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14141. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14142. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14143. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  14144. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14145. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14146. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14147. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14148. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14149. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  14150. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14151. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14152. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14153. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14154. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14155. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  14156. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14157. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14158. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14159. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14160. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14161. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  14162. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14163. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14164. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14165. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14166. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14167. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  14168. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14169. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14170. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14171. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14172. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14173. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  14174. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14175. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14176. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14177. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14178. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14179. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  14180. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14181. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14182. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14183. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14184. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14185. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  14186. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14187. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14188. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14189. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14190. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14191. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  14192. {"HDMI", NULL, "HDMI_DL_HL"},
  14193. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14194. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14195. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14196. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14197. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14198. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  14199. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14200. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14201. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14202. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14203. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14204. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  14205. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14206. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14207. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14208. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14209. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14210. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  14211. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14212. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14213. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14214. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14215. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14216. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  14217. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14218. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14219. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  14220. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14221. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14222. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  14223. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14224. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14225. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14226. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14227. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  14228. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  14229. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  14230. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14231. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  14232. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  14233. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  14234. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  14235. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14236. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14237. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14238. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14239. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14240. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14241. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  14242. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  14243. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  14244. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14245. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14246. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14247. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14248. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14249. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14250. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14251. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14252. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14253. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14254. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14255. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14256. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14257. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14258. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14259. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14260. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14261. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14262. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14263. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14264. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14265. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14266. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14267. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14268. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14269. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14270. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14271. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14272. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14273. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14274. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14275. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14276. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14277. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14278. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14279. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14280. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14281. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14282. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14283. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14284. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14285. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14286. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  14287. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14288. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  14289. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  14290. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  14291. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14292. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14293. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14294. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14295. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14296. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14297. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14298. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14299. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14300. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14301. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14302. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14303. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14304. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14305. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14306. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14307. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14308. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14309. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14310. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14311. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14312. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14313. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14314. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14315. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14316. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  14317. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  14318. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  14319. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  14320. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  14321. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  14322. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  14323. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  14324. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  14325. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  14326. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  14327. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  14328. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  14329. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  14330. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  14331. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  14332. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  14333. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  14334. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  14335. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  14336. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  14337. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  14338. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  14339. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  14340. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  14341. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  14342. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  14343. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  14344. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  14345. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  14346. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  14347. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  14348. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  14349. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  14350. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  14351. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  14352. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  14353. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  14354. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  14355. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  14356. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  14357. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  14358. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  14359. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  14360. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  14361. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  14362. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  14363. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  14364. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  14365. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  14366. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  14367. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  14368. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  14369. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  14370. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  14371. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  14372. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  14373. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  14374. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  14375. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  14376. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  14377. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  14378. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  14379. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  14380. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  14381. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  14382. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  14383. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  14384. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  14385. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  14386. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  14387. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  14388. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  14389. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  14390. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  14391. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  14392. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  14393. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  14394. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  14395. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  14396. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14397. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14398. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14399. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14400. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14401. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14402. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14403. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14404. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  14405. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14406. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14407. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14408. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14409. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14410. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14411. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14412. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14413. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  14414. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14415. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14416. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14417. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14418. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14419. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14420. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14421. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14422. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  14423. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14424. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14425. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14426. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14427. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14428. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14429. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14430. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14431. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  14432. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14433. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14434. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14435. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14436. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14437. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14438. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14439. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14440. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  14441. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14442. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14443. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14444. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14445. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14446. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14447. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  14448. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14449. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14450. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14451. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14452. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14453. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14454. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  14455. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  14456. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  14457. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  14458. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  14459. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  14460. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14461. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  14462. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  14463. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  14464. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  14465. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  14466. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  14467. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  14468. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  14469. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  14470. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  14471. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  14472. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  14473. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  14474. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  14475. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  14476. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  14477. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  14478. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  14479. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  14480. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  14481. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  14482. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  14483. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  14484. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  14485. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  14486. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  14487. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  14488. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  14489. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  14490. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  14491. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  14492. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  14493. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  14494. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  14495. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  14496. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  14497. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  14498. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14499. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  14500. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  14501. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  14502. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  14503. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  14504. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  14505. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  14506. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  14507. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  14508. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  14509. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  14510. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  14511. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  14512. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14513. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  14514. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  14515. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  14516. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  14517. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  14518. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  14519. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  14520. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  14521. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  14522. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  14523. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  14524. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  14525. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  14526. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  14527. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  14528. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  14529. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  14530. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  14531. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  14532. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  14533. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  14534. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  14535. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  14536. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  14537. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  14538. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  14539. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  14540. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  14541. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  14542. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  14543. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  14544. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  14545. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  14546. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  14547. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  14548. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  14549. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  14550. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  14551. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  14552. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  14553. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  14554. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  14555. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  14556. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  14557. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  14558. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  14559. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  14560. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  14561. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  14562. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14563. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14564. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14565. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14566. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14567. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14568. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14569. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14570. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14571. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14572. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14573. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14574. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14575. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14576. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14577. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14578. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14579. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14580. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14581. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14582. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  14583. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14584. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14585. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14586. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14587. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14588. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14589. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14590. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14591. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14592. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14593. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14594. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14595. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14596. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14597. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14598. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14599. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14600. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14601. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14602. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14603. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  14604. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14605. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14606. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14607. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14608. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14609. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14610. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14611. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14612. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14613. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14614. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14615. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14616. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14617. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14618. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14619. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14620. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14621. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14622. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14623. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14624. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  14625. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14626. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14627. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14628. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14629. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14630. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14631. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14632. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14633. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  14634. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  14635. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  14636. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  14637. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14638. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14639. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14640. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14641. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14642. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14643. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14644. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14645. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  14646. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14647. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14648. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14649. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14650. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14651. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14652. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14653. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14654. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14655. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14656. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14657. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14658. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14659. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14660. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14661. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14662. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14663. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14664. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14665. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14666. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  14667. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14668. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14669. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14670. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14671. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14672. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14673. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14674. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14675. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14676. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14677. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14678. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14679. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14680. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14681. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14682. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14683. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14684. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14685. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14686. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14687. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  14688. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14689. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14690. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14691. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14692. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14693. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14694. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14695. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14696. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14697. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14698. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14699. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14700. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14701. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14702. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14703. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14704. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14705. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14706. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14707. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14708. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  14709. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14710. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14711. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14712. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14713. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14714. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14715. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14716. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14717. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  14718. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  14719. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  14720. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  14721. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14722. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14723. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14724. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14725. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14726. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14727. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14728. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14729. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  14730. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14731. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14732. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14733. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14734. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14735. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14736. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14737. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14738. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14739. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14740. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14741. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14742. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14743. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14744. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14745. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14746. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14747. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14748. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14749. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14750. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  14751. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14752. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14753. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14754. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14755. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14756. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14757. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14758. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14759. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14760. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14761. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14762. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14763. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14764. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14765. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14766. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14767. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14768. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14769. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14770. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14771. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  14772. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14773. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14774. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14775. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14776. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14777. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14778. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14779. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14780. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14781. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14782. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14783. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14784. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14785. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14786. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14787. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14788. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14789. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14790. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14791. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14792. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  14793. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14794. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14795. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14796. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14797. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14798. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14799. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14800. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14801. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14802. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14803. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14804. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14805. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14806. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14807. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14808. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14809. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14810. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14811. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14812. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14813. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  14814. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14815. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14816. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14817. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14818. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14819. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14820. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14821. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14822. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14823. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14824. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14825. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14826. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14827. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14828. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14829. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14830. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14831. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14832. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14833. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14834. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  14835. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14836. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14837. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14838. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14839. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14840. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14841. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14842. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14843. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14844. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14845. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14846. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14847. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14848. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14849. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14850. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14851. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14852. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14853. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14854. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14855. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  14856. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14857. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14858. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14859. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14860. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14861. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14862. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14863. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14864. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14865. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14866. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14867. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14868. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14869. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14870. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14871. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14872. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14873. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14874. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14875. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14876. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  14877. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14878. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14879. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14880. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14881. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14882. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14883. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14884. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14885. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14886. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14887. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14888. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14889. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14890. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14891. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14892. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14893. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14894. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14895. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14896. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14897. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  14898. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14899. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14900. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14901. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14902. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14903. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14904. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14905. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14906. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14907. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14908. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14909. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14910. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14911. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14912. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14913. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14914. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14915. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14916. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14917. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14918. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  14919. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14920. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14921. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14922. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14923. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14924. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14925. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14926. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14927. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14928. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14929. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14930. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14931. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14932. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14933. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14934. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14935. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14936. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14937. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14938. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14939. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  14940. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14941. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14942. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14943. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14944. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14945. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14946. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14947. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14948. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14949. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14950. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14951. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14952. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14953. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14954. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14955. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14956. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14957. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14958. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14959. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14960. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  14961. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14962. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14963. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14964. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14965. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14966. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  14967. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  14968. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  14969. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  14970. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  14971. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  14972. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  14973. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  14974. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  14975. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  14976. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  14977. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  14978. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  14979. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  14980. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  14981. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  14982. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14983. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14984. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14985. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14986. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14987. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14988. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  14989. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  14990. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  14991. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  14992. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  14993. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  14994. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  14995. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  14996. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  14997. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  14998. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  14999. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15000. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15001. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15002. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15003. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  15004. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15005. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15006. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15007. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15008. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15009. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15010. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15011. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15012. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15013. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15014. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15015. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15016. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15017. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15018. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15019. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15020. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15021. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  15022. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15023. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15024. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  15025. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  15026. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  15027. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  15028. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  15029. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  15030. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15031. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15032. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15033. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15034. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  15035. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  15036. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15037. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15038. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15039. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  15040. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15041. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15042. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15043. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  15044. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15045. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15046. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15047. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  15048. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15049. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15050. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15051. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  15052. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15053. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15054. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15055. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15056. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15057. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15058. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  15059. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  15060. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  15061. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  15062. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15063. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15064. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  15065. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15066. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15067. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15068. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15069. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15070. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15071. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  15072. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15073. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15074. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15075. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15076. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15077. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15078. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15079. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15080. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15081. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15082. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15083. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  15084. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  15085. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15086. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  15087. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15088. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15089. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  15090. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15091. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15092. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  15093. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15094. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15095. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  15096. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15097. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15098. {"STUB_RX", NULL, "STUB_RX Mixer"},
  15099. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15100. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15101. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  15102. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15103. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15104. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  15105. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15106. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15107. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15108. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15109. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15110. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  15111. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  15112. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  15113. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  15114. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  15115. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  15116. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  15117. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15118. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  15119. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15120. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  15121. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15122. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15123. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  15124. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  15125. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15126. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  15127. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  15128. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  15129. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  15130. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15131. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15132. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15133. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  15134. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15135. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15136. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  15137. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15138. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15139. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15140. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15141. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15142. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  15143. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15144. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  15145. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15146. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  15147. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15148. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  15149. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  15150. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  15151. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  15152. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15153. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15154. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15155. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15156. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15157. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15158. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15159. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  15160. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15161. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  15162. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15163. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15164. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15165. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15166. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15167. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15168. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15169. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15170. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  15171. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15172. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15173. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15174. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15175. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15176. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15177. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15178. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  15179. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15180. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15181. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15182. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15183. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15184. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15185. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  15186. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  15187. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15188. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  15189. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  15190. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  15191. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  15192. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  15193. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  15194. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  15195. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  15196. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  15197. /* Backend Enablement */
  15198. {"BE_OUT", NULL, "PRI_I2S_RX"},
  15199. {"BE_OUT", NULL, "SEC_I2S_RX"},
  15200. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  15201. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  15202. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  15203. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15204. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  15205. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  15206. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  15207. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  15208. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  15209. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  15210. {"BE_OUT", NULL, "HDMI"},
  15211. {"BE_OUT", NULL, "DISPLAY_PORT"},
  15212. {"BE_OUT", NULL, "SPDIF_RX"},
  15213. {"BE_OUT", NULL, "MI2S_RX"},
  15214. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  15215. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  15216. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  15217. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  15218. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  15219. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  15220. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  15221. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  15222. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  15223. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  15224. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  15225. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15226. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  15227. {"BE_OUT", NULL, "INT_FM_RX"},
  15228. {"BE_OUT", NULL, "PCM_RX"},
  15229. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15230. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15231. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  15232. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  15233. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  15234. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  15235. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  15236. {"BE_OUT", NULL, "INT_FM_RX"},
  15237. {"BE_OUT", NULL, "PCM_RX"},
  15238. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15239. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  15240. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  15241. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  15242. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  15243. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  15244. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  15245. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  15246. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  15247. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  15248. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  15249. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  15250. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  15251. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  15252. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  15253. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  15254. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  15255. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  15256. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  15257. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  15258. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  15259. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  15260. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  15261. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  15262. {"PRI_I2S_TX", NULL, "BE_IN"},
  15263. {"MI2S_TX", NULL, "BE_IN"},
  15264. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  15265. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  15266. {"PRI_MI2S_TX", NULL, "BE_IN"},
  15267. {"TERT_MI2S_TX", NULL, "BE_IN"},
  15268. {"INT0_MI2S_TX", NULL, "BE_IN"},
  15269. {"INT2_MI2S_TX", NULL, "BE_IN"},
  15270. {"INT3_MI2S_TX", NULL, "BE_IN"},
  15271. {"INT4_MI2S_TX", NULL, "BE_IN"},
  15272. {"INT5_MI2S_TX", NULL, "BE_IN"},
  15273. {"SEC_MI2S_TX", NULL, "BE_IN"},
  15274. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  15275. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  15276. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  15277. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  15278. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  15279. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  15280. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  15281. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  15282. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  15283. {"USB_AUDIO_TX", NULL, "BE_IN" },
  15284. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  15285. {"INT_FM_TX", NULL, "BE_IN"},
  15286. {"PCM_TX", NULL, "BE_IN"},
  15287. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  15288. {"BE_OUT", NULL, "STUB_RX"},
  15289. {"STUB_TX", NULL, "BE_IN"},
  15290. {"STUB_1_TX", NULL, "BE_IN"},
  15291. {"BE_OUT", NULL, "AUX_PCM_RX"},
  15292. {"AUX_PCM_TX", NULL, "BE_IN"},
  15293. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  15294. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  15295. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  15296. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  15297. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  15298. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  15299. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15300. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  15301. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  15302. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15303. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  15304. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  15305. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  15306. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  15307. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  15308. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  15309. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  15310. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  15311. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  15312. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  15313. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  15314. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  15315. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  15316. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  15317. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  15318. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  15319. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  15320. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  15321. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  15322. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  15323. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  15324. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  15325. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  15326. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  15327. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  15328. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  15329. };
  15330. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  15331. struct snd_pcm_hw_params *params)
  15332. {
  15333. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15334. unsigned int be_id = rtd->dai_link->id;
  15335. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15336. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15337. return -EINVAL;
  15338. }
  15339. mutex_lock(&routing_lock);
  15340. msm_bedais[be_id].sample_rate = params_rate(params);
  15341. msm_bedais[be_id].channel = params_channels(params);
  15342. msm_bedais[be_id].format = params_format(params);
  15343. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  15344. __func__, msm_bedais[be_id].sample_rate,
  15345. msm_bedais[be_id].format, be_id);
  15346. mutex_unlock(&routing_lock);
  15347. return 0;
  15348. }
  15349. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  15350. {
  15351. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15352. unsigned int be_id = rtd->dai_link->id;
  15353. int i, session_type, path_type, topology;
  15354. struct msm_pcm_routing_bdai_data *bedai;
  15355. struct msm_pcm_routing_fdai_data *fdai;
  15356. pr_debug("%s: substream->pcm->id:%s\n",
  15357. __func__, substream->pcm->id);
  15358. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15359. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15360. return -EINVAL;
  15361. }
  15362. bedai = &msm_bedais[be_id];
  15363. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  15364. 0 : 1);
  15365. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15366. path_type = ADM_PATH_PLAYBACK;
  15367. else
  15368. path_type = ADM_PATH_LIVE_REC;
  15369. mutex_lock(&routing_lock);
  15370. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15371. if (!is_mm_lsm_fe_id(i))
  15372. continue;
  15373. fdai = &fe_dai_map[i][session_type];
  15374. if (fdai->strm_id != INVALID_SESSION) {
  15375. int idx;
  15376. int port_id;
  15377. unsigned long copp =
  15378. session_copp_map[i][session_type][be_id];
  15379. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  15380. if (test_bit(idx, &copp))
  15381. break;
  15382. fdai->be_srate = bedai->sample_rate;
  15383. port_id = bedai->port_id;
  15384. topology = adm_get_topology_for_port_copp_idx(port_id,
  15385. idx);
  15386. adm_close(bedai->port_id, fdai->perf_mode, idx);
  15387. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  15388. __func__, copp, i, session_type, be_id,
  15389. topology);
  15390. clear_bit(idx,
  15391. &session_copp_map[i][session_type][be_id]);
  15392. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15393. (bedai->passthr_mode[i] == LEGACY_PCM))
  15394. msm_pcm_routing_deinit_pp(bedai->port_id,
  15395. topology);
  15396. }
  15397. }
  15398. bedai->active = 0;
  15399. bedai->sample_rate = 0;
  15400. bedai->channel = 0;
  15401. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  15402. if (bedai->passthr_mode[i] != LISTEN)
  15403. bedai->passthr_mode[i] = LEGACY_PCM;
  15404. }
  15405. mutex_unlock(&routing_lock);
  15406. return 0;
  15407. }
  15408. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  15409. {
  15410. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  15411. unsigned int be_id = rtd->dai_link->id;
  15412. int i, path_type, topology;
  15413. int session_type = INVALID_SESSION;
  15414. struct msm_pcm_routing_bdai_data *bedai;
  15415. u32 channels, sample_rate;
  15416. uint16_t bits_per_sample = 16, voc_path_type;
  15417. struct msm_pcm_routing_fdai_data *fdai;
  15418. u32 session_id;
  15419. struct media_format_info voc_be_media_format;
  15420. bool is_lsm;
  15421. pr_debug("%s: substream->pcm->id:%s\n",
  15422. __func__, substream->pcm->id);
  15423. if (be_id >= MSM_BACKEND_DAI_MAX) {
  15424. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  15425. return -EINVAL;
  15426. }
  15427. bedai = &msm_bedais[be_id];
  15428. mutex_lock(&routing_lock);
  15429. if (bedai->active == 1)
  15430. goto done; /* Ignore prepare if back-end already active */
  15431. /* AFE port is not active at this point. However, still
  15432. * go ahead setting active flag under the notion that
  15433. * QDSP6 is able to handle ADM starting before AFE port
  15434. * is started.
  15435. */
  15436. bedai->active = 1;
  15437. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15438. if (!(is_mm_lsm_fe_id(i) &&
  15439. route_check_fe_id_adm_support(i)))
  15440. continue;
  15441. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  15442. if (bedai->passthr_mode[i] != LEGACY_PCM)
  15443. path_type = ADM_PATH_COMPRESSED_RX;
  15444. else
  15445. path_type = ADM_PATH_PLAYBACK;
  15446. session_type = SESSION_TYPE_RX;
  15447. } else {
  15448. path_type = ADM_PATH_LIVE_REC;
  15449. session_type = SESSION_TYPE_TX;
  15450. }
  15451. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  15452. (i <= MSM_FRONTEND_DAI_LSM8);
  15453. fdai = &fe_dai_map[i][session_type];
  15454. if (fdai->strm_id != INVALID_SESSION) {
  15455. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  15456. if (session_type == SESSION_TYPE_TX &&
  15457. fdai->be_srate &&
  15458. (fdai->be_srate != bedai->sample_rate)) {
  15459. pr_debug("%s: flush strm %d diff BE rates\n",
  15460. __func__,
  15461. fdai->strm_id);
  15462. if (fdai->event_info.event_func)
  15463. fdai->event_info.event_func(
  15464. MSM_PCM_RT_EVT_BUF_RECFG,
  15465. fdai->event_info.priv_data);
  15466. fdai->be_srate = 0; /* might not need it */
  15467. }
  15468. bits_per_sample = msm_routing_get_bit_width(
  15469. bedai->format);
  15470. app_type =
  15471. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  15472. if (app_type && is_lsm) {
  15473. app_type_idx =
  15474. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  15475. sample_rate =
  15476. fe_dai_app_type_cfg[i][session_type][be_id]
  15477. .sample_rate;
  15478. bits_per_sample =
  15479. lsm_app_type_cfg[app_type_idx].bit_width;
  15480. } else if (app_type) {
  15481. app_type_idx =
  15482. msm_pcm_routing_get_app_type_idx(app_type);
  15483. sample_rate =
  15484. fe_dai_app_type_cfg[i][session_type]
  15485. [be_id].sample_rate;
  15486. bits_per_sample =
  15487. app_type_cfg[app_type_idx].bit_width;
  15488. } else
  15489. sample_rate = bedai->sample_rate;
  15490. /*
  15491. * check if ADM needs to be configured with different
  15492. * channel mapping than backend
  15493. */
  15494. if (!bedai->adm_override_ch)
  15495. channels = bedai->channel;
  15496. else
  15497. channels = bedai->adm_override_ch;
  15498. acdb_dev_id =
  15499. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  15500. topology = msm_routing_get_adm_topology(i, session_type,
  15501. be_id);
  15502. copp_idx = adm_open(bedai->port_id, path_type,
  15503. sample_rate, channels, topology,
  15504. fdai->perf_mode, bits_per_sample,
  15505. app_type, acdb_dev_id);
  15506. if ((copp_idx < 0) ||
  15507. (copp_idx >= MAX_COPPS_PER_PORT)) {
  15508. pr_err("%s: adm open failed\n", __func__);
  15509. mutex_unlock(&routing_lock);
  15510. return -EINVAL;
  15511. }
  15512. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  15513. __func__, i, session_type, be_id);
  15514. set_bit(copp_idx,
  15515. &session_copp_map[i][session_type][be_id]);
  15516. if (msm_is_resample_needed(
  15517. sample_rate,
  15518. bedai->sample_rate))
  15519. adm_copp_mfc_cfg(
  15520. bedai->port_id, copp_idx,
  15521. bedai->sample_rate);
  15522. msm_pcm_routing_build_matrix(i, session_type, path_type,
  15523. fdai->perf_mode,
  15524. bedai->passthr_mode[i]);
  15525. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  15526. (bedai->passthr_mode[i] == LEGACY_PCM))
  15527. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  15528. topology, channels);
  15529. }
  15530. }
  15531. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  15532. session_id = msm_pcm_routing_get_voc_sessionid(i);
  15533. if (session_id) {
  15534. pr_debug("%s voice session_id: 0x%x\n", __func__,
  15535. session_id);
  15536. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  15537. voc_path_type = RX_PATH;
  15538. else
  15539. voc_path_type = TX_PATH;
  15540. voc_set_route_flag(session_id, voc_path_type, 1);
  15541. memset(&voc_be_media_format, 0,
  15542. sizeof(struct media_format_info));
  15543. voc_be_media_format.port_id = bedai->port_id;
  15544. voc_be_media_format.num_channels = bedai->channel;
  15545. voc_be_media_format.sample_rate = bedai->sample_rate;
  15546. voc_be_media_format.bits_per_sample = bedai->format;
  15547. /* Defaulting this to 1 for voice call usecases */
  15548. voc_be_media_format.channel_mapping[0] = 1;
  15549. voc_set_device_config(session_id, voc_path_type,
  15550. &voc_be_media_format);
  15551. if (voc_get_route_flag(session_id, RX_PATH) &&
  15552. voc_get_route_flag(session_id, TX_PATH))
  15553. voc_enable_device(session_id);
  15554. }
  15555. }
  15556. /* Check if backend is an external ec ref port and set as needed */
  15557. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  15558. memset(&voc_be_media_format, 0,
  15559. sizeof(struct media_format_info));
  15560. /* Get format info for ec ref port from msm_bedais[] */
  15561. voc_be_media_format.port_id = bedai->port_id;
  15562. voc_be_media_format.num_channels = bedai->channel;
  15563. voc_be_media_format.bits_per_sample = bedai->format;
  15564. voc_be_media_format.sample_rate = bedai->sample_rate;
  15565. /* Defaulting this to 1 for voice call usecases */
  15566. voc_be_media_format.channel_mapping[0] = 1;
  15567. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  15568. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  15569. __func__, voc_be_media_format.port_id,
  15570. voc_be_media_format.num_channels,
  15571. voc_be_media_format.bits_per_sample,
  15572. voc_be_media_format.sample_rate);
  15573. }
  15574. done:
  15575. mutex_unlock(&routing_lock);
  15576. return 0;
  15577. }
  15578. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  15579. int fe_id)
  15580. {
  15581. int index, topo_id, be_idx;
  15582. unsigned long pp_config = 0;
  15583. bool mute_on;
  15584. int latency;
  15585. bool compr_passthr_mode = true;
  15586. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  15587. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  15588. pr_err("%s: Device pp params on invalid port %d\n",
  15589. __func__, port_id);
  15590. return -EINVAL;
  15591. }
  15592. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15593. if (port_id == msm_bedais[be_idx].port_id)
  15594. break;
  15595. }
  15596. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15597. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15598. return -EINVAL;
  15599. }
  15600. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15601. if (msm_bedais_pp_params[index].port_id == port_id)
  15602. break;
  15603. }
  15604. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15605. pr_err("%s: Invalid backend pp params index %d\n",
  15606. __func__, index);
  15607. return -EINVAL;
  15608. }
  15609. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  15610. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  15611. pr_err("%s: Invalid passthrough topology 0x%x\n",
  15612. __func__, topo_id);
  15613. return -EINVAL;
  15614. }
  15615. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  15616. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  15617. compr_passthr_mode = false;
  15618. pp_config = msm_bedais_pp_params[index].pp_params_config;
  15619. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  15620. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15621. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  15622. mute_on = msm_bedais_pp_params[index].mute_on;
  15623. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15624. adm_send_compressed_device_mute(port_id,
  15625. copp_idx,
  15626. mute_on);
  15627. }
  15628. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  15629. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15630. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  15631. &pp_config);
  15632. latency = msm_bedais_pp_params[index].latency;
  15633. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15634. adm_send_compressed_device_latency(port_id,
  15635. copp_idx,
  15636. latency);
  15637. }
  15638. return 0;
  15639. }
  15640. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15641. struct snd_ctl_elem_value *ucontrol)
  15642. {
  15643. int pp_id = ucontrol->value.integer.value[0];
  15644. int port_id = 0;
  15645. int index, be_idx, i, topo_id, idx;
  15646. bool mute;
  15647. int latency;
  15648. bool compr_passthr_mode = true;
  15649. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  15650. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  15651. port_id = msm_bedais[be_idx].port_id;
  15652. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  15653. break;
  15654. }
  15655. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  15656. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  15657. return -EINVAL;
  15658. }
  15659. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  15660. if (msm_bedais_pp_params[index].port_id == port_id)
  15661. break;
  15662. }
  15663. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  15664. pr_err("%s: Invalid pp params backend index %d\n",
  15665. __func__, index);
  15666. return -EINVAL;
  15667. }
  15668. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  15669. MSM_FRONTEND_DAI_MM_SIZE) {
  15670. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  15671. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  15672. compr_passthr_mode = false;
  15673. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15674. unsigned long copp =
  15675. session_copp_map[i]
  15676. [SESSION_TYPE_RX][be_idx];
  15677. if (!test_bit(idx, &copp))
  15678. continue;
  15679. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  15680. idx);
  15681. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  15682. continue;
  15683. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  15684. __func__, port_id, copp, msm_bedais[be_idx].active,
  15685. msm_bedais[be_idx].passthr_mode[i]);
  15686. switch (pp_id) {
  15687. case ADM_PP_PARAM_MUTE_ID:
  15688. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  15689. mute = ucontrol->value.integer.value[1] ? true : false;
  15690. msm_bedais_pp_params[index].mute_on = mute;
  15691. set_bit(ADM_PP_PARAM_MUTE_BIT,
  15692. &msm_bedais_pp_params[index].pp_params_config);
  15693. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15694. adm_send_compressed_device_mute(port_id,
  15695. idx, mute);
  15696. break;
  15697. case ADM_PP_PARAM_LATENCY_ID:
  15698. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  15699. msm_bedais_pp_params[index].latency =
  15700. ucontrol->value.integer.value[1];
  15701. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  15702. &msm_bedais_pp_params[index].pp_params_config);
  15703. latency = msm_bedais_pp_params[index].latency =
  15704. ucontrol->value.integer.value[1];
  15705. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  15706. adm_send_compressed_device_latency(port_id,
  15707. idx, latency);
  15708. break;
  15709. default:
  15710. pr_info("%s, device pp param %d not supported\n",
  15711. __func__, pp_id);
  15712. break;
  15713. }
  15714. }
  15715. }
  15716. return 0;
  15717. }
  15718. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  15719. struct snd_ctl_elem_value *ucontrol)
  15720. {
  15721. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  15722. return 0;
  15723. }
  15724. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  15725. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  15726. 0, 3, msm_routing_get_device_pp_params_mixer,
  15727. msm_routing_put_device_pp_params_mixer),
  15728. };
  15729. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  15730. struct snd_ctl_elem_value *ucontrol)
  15731. {
  15732. ucontrol->value.integer.value[0] =
  15733. core_get_license_status(ASM_MEDIA_FMT_APTX);
  15734. pr_debug("%s: status %ld\n", __func__,
  15735. ucontrol->value.integer.value[0]);
  15736. return 0;
  15737. }
  15738. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  15739. struct snd_ctl_elem_value *ucontrol)
  15740. {
  15741. int32_t status = 0;
  15742. status = core_set_license(ucontrol->value.integer.value[0],
  15743. APTX_CLASSIC_DEC_LICENSE_ID);
  15744. pr_debug("%s: status %d\n", __func__, status);
  15745. return status;
  15746. }
  15747. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  15748. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  15749. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  15750. msm_aptx_dec_license_control_put),
  15751. };
  15752. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  15753. struct snd_ctl_elem_info *uinfo)
  15754. {
  15755. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  15756. uinfo->count = sizeof(be_dai_name_table);
  15757. return 0;
  15758. }
  15759. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  15760. unsigned int __user *bytes,
  15761. unsigned int size)
  15762. {
  15763. int i;
  15764. int ret;
  15765. if (size < sizeof(be_dai_name_table)) {
  15766. pr_err("%s: invalid size %d requested, returning\n",
  15767. __func__, size);
  15768. ret = -EINVAL;
  15769. goto done;
  15770. }
  15771. /*
  15772. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  15773. * needed when adding new backends
  15774. */
  15775. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15776. be_dai_name_table[i].be_id = i;
  15777. strlcpy(be_dai_name_table[i].be_name,
  15778. msm_bedais[i].name,
  15779. LPASS_BE_NAME_MAX_LENGTH);
  15780. }
  15781. ret = copy_to_user(bytes, &be_dai_name_table,
  15782. sizeof(be_dai_name_table));
  15783. if (ret) {
  15784. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  15785. ret = -EFAULT;
  15786. }
  15787. done:
  15788. return ret;
  15789. }
  15790. static const struct snd_kcontrol_new
  15791. msm_routing_be_dai_name_table_mixer_controls[] = {
  15792. {
  15793. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  15794. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  15795. .info = msm_routing_be_dai_name_table_info,
  15796. .name = "Backend DAI Name Table",
  15797. .tlv.c = snd_soc_bytes_tlv_callback,
  15798. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  15799. .max = sizeof(be_dai_name_table),
  15800. .get = msm_routing_be_dai_name_table_tlv_get,
  15801. }
  15802. },
  15803. };
  15804. static int msm_routing_stereo_channel_reverse_control_get(
  15805. struct snd_kcontrol *kcontrol,
  15806. struct snd_ctl_elem_value *ucontrol)
  15807. {
  15808. ucontrol->value.integer.value[0] = swap_ch;
  15809. pr_debug("%s: Swap channel value: %ld\n", __func__,
  15810. ucontrol->value.integer.value[0]);
  15811. return 0;
  15812. }
  15813. static int msm_routing_stereo_channel_reverse_control_put(
  15814. struct snd_kcontrol *kcontrol,
  15815. struct snd_ctl_elem_value *ucontrol)
  15816. {
  15817. int i, idx, be_index, port_id;
  15818. int ret = 0;
  15819. unsigned long copp;
  15820. pr_debug("%s Swap channel value:%ld\n", __func__,
  15821. ucontrol->value.integer.value[0]);
  15822. swap_ch = ucontrol->value.integer.value[0];
  15823. mutex_lock(&routing_lock);
  15824. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  15825. port_id = msm_bedais[be_index].port_id;
  15826. if (!msm_bedais[be_index].active)
  15827. continue;
  15828. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  15829. MSM_FRONTEND_DAI_MM_SIZE) {
  15830. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  15831. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15832. if (!test_bit(idx, &copp))
  15833. continue;
  15834. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  15835. __func__, port_id, idx);
  15836. ret = adm_swap_speaker_channels(
  15837. port_id, idx,
  15838. msm_bedais[be_index].sample_rate,
  15839. swap_ch);
  15840. if (ret) {
  15841. pr_err("%s:Swap_channel failed, err=%d\n",
  15842. __func__, ret);
  15843. goto done;
  15844. }
  15845. }
  15846. }
  15847. }
  15848. done:
  15849. mutex_unlock(&routing_lock);
  15850. return ret;
  15851. }
  15852. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  15853. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  15854. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  15855. msm_routing_stereo_channel_reverse_control_put),
  15856. };
  15857. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  15858. .hw_params = msm_pcm_routing_hw_params,
  15859. .close = msm_pcm_routing_close,
  15860. .prepare = msm_pcm_routing_prepare,
  15861. };
  15862. /* Not used but frame seems to require it */
  15863. static int msm_routing_probe(struct snd_soc_platform *platform)
  15864. {
  15865. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  15866. ARRAY_SIZE(msm_qdsp6_widgets));
  15867. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  15868. ARRAY_SIZE(intercon));
  15869. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  15870. snd_soc_add_platform_controls(platform, lsm_controls,
  15871. ARRAY_SIZE(lsm_controls));
  15872. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  15873. ARRAY_SIZE(aanc_slim_0_rx_mux));
  15874. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  15875. ARRAY_SIZE(msm_voc_session_controls));
  15876. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  15877. ARRAY_SIZE(app_type_cfg_controls));
  15878. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  15879. ARRAY_SIZE(lsm_app_type_cfg_controls));
  15880. snd_soc_add_platform_controls(platform, module_cfg_controls,
  15881. ARRAY_SIZE(module_cfg_controls));
  15882. snd_soc_add_platform_controls(platform,
  15883. stereo_to_custom_stereo_controls,
  15884. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  15885. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  15886. ARRAY_SIZE(ec_ref_param_controls));
  15887. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  15888. ARRAY_SIZE(channel_mixer_controls));
  15889. msm_qti_pp_add_controls(platform);
  15890. msm_dts_srs_tm_add_controls(platform);
  15891. msm_dolby_dap_add_controls(platform);
  15892. snd_soc_add_platform_controls(platform,
  15893. use_ds1_or_ds2_controls,
  15894. ARRAY_SIZE(use_ds1_or_ds2_controls));
  15895. snd_soc_add_platform_controls(platform,
  15896. device_pp_params_mixer_controls,
  15897. ARRAY_SIZE(device_pp_params_mixer_controls));
  15898. snd_soc_add_platform_controls(platform,
  15899. msm_routing_be_dai_name_table_mixer_controls,
  15900. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  15901. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  15902. ARRAY_SIZE(msm_source_tracking_controls));
  15903. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  15904. ARRAY_SIZE(adm_channel_config_controls));
  15905. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  15906. ARRAY_SIZE(aptx_dec_license_controls));
  15907. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  15908. ARRAY_SIZE(stereo_channel_reverse_control));
  15909. return 0;
  15910. }
  15911. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  15912. {
  15913. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  15914. }
  15915. void msm_routing_pcm_free(struct snd_pcm *pcm)
  15916. {
  15917. msm_pcm_routing_hwdep_free(pcm);
  15918. }
  15919. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  15920. .ops = &msm_routing_pcm_ops,
  15921. .probe = msm_routing_probe,
  15922. .pcm_new = msm_routing_pcm_new,
  15923. .pcm_free = msm_routing_pcm_free,
  15924. };
  15925. static int msm_routing_pcm_probe(struct platform_device *pdev)
  15926. {
  15927. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  15928. return snd_soc_register_platform(&pdev->dev,
  15929. &msm_soc_routing_platform);
  15930. }
  15931. static int msm_routing_pcm_remove(struct platform_device *pdev)
  15932. {
  15933. snd_soc_unregister_platform(&pdev->dev);
  15934. return 0;
  15935. }
  15936. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  15937. {.compatible = "qcom,msm-pcm-routing"},
  15938. {}
  15939. };
  15940. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  15941. static struct platform_driver msm_routing_pcm_driver = {
  15942. .driver = {
  15943. .name = "msm-pcm-routing",
  15944. .owner = THIS_MODULE,
  15945. .of_match_table = msm_pcm_routing_dt_match,
  15946. },
  15947. .probe = msm_routing_pcm_probe,
  15948. .remove = msm_routing_pcm_remove,
  15949. };
  15950. int msm_routing_check_backend_enabled(int fedai_id)
  15951. {
  15952. int i;
  15953. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  15954. /* bad ID assigned in machine driver */
  15955. pr_err("%s: bad MM ID\n", __func__);
  15956. return 0;
  15957. }
  15958. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  15959. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  15960. return msm_bedais[i].active;
  15961. }
  15962. return 0;
  15963. }
  15964. static int get_cal_type_index(int32_t cal_type)
  15965. {
  15966. int ret = -EINVAL;
  15967. switch (cal_type) {
  15968. case ADM_TOPOLOGY_CAL_TYPE:
  15969. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  15970. break;
  15971. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  15972. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  15973. break;
  15974. default:
  15975. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  15976. }
  15977. return ret;
  15978. }
  15979. static int msm_routing_set_cal(int32_t cal_type,
  15980. size_t data_size, void *data)
  15981. {
  15982. int ret = 0;
  15983. int cal_index;
  15984. pr_debug("%s\n", __func__);
  15985. cal_index = get_cal_type_index(cal_type);
  15986. if (cal_index < 0) {
  15987. pr_err("%s: Could not get cal index %d\n",
  15988. __func__, cal_index);
  15989. ret = -EINVAL;
  15990. goto done;
  15991. }
  15992. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  15993. if (ret < 0) {
  15994. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  15995. __func__, ret, cal_type);
  15996. ret = -EINVAL;
  15997. goto done;
  15998. }
  15999. done:
  16000. return ret;
  16001. }
  16002. static void msm_routing_delete_cal_data(void)
  16003. {
  16004. pr_debug("%s\n", __func__);
  16005. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  16006. }
  16007. static int msm_routing_init_cal_data(void)
  16008. {
  16009. int ret = 0;
  16010. struct cal_type_info cal_type_info[] = {
  16011. {{ADM_TOPOLOGY_CAL_TYPE,
  16012. {NULL, NULL, NULL,
  16013. msm_routing_set_cal, NULL, NULL} },
  16014. {NULL, NULL, cal_utils_match_buf_num} },
  16015. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  16016. {NULL, NULL, NULL,
  16017. msm_routing_set_cal, NULL, NULL} },
  16018. {NULL, NULL, cal_utils_match_buf_num} },
  16019. };
  16020. pr_debug("%s\n", __func__);
  16021. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  16022. &cal_type_info[0]);
  16023. if (ret < 0) {
  16024. pr_err("%s: could not create cal type!\n",
  16025. __func__);
  16026. ret = -EINVAL;
  16027. goto err;
  16028. }
  16029. return ret;
  16030. err:
  16031. msm_routing_delete_cal_data();
  16032. return ret;
  16033. }
  16034. int __init msm_soc_routing_platform_init(void)
  16035. {
  16036. mutex_init(&routing_lock);
  16037. if (msm_routing_init_cal_data())
  16038. pr_err("%s: could not init cal data!\n", __func__);
  16039. afe_set_routing_callback(
  16040. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  16041. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16042. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  16043. return platform_driver_register(&msm_routing_pcm_driver);
  16044. }
  16045. void msm_soc_routing_platform_exit(void)
  16046. {
  16047. msm_routing_delete_cal_data();
  16048. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  16049. mutex_destroy(&routing_lock);
  16050. platform_driver_unregister(&msm_routing_pcm_driver);
  16051. }
  16052. MODULE_DESCRIPTION("MSM routing platform driver");
  16053. MODULE_LICENSE("GPL v2");